25 lines
1014 B
Go
25 lines
1014 B
Go
package assignment
|
|
|
|
import seat "git.novox.be/novox/mesh-contracts/go/seats/meshmoduleassigner"
|
|
|
|
// Module is the module that holds the seat mesh-module-assigner: the states of the seat are named after it, as every
|
|
// module state is (a bucket is `<module>_<state>`), and its manifest declares them.
|
|
const Module = "mesh-delivery-assigner"
|
|
|
|
// The buckets of the seat's states, which only the holder writes (ADR 0567 §1).
|
|
const (
|
|
AssignmentsBucket = Module + "_" + seat.StateAssignments
|
|
ProposalsBucket = Module + "_" + seat.StateProposals
|
|
CandidatesBucket = Module + "_" + seat.StateCandidates
|
|
PulsesBucket = Module + "_" + seat.StatePulses
|
|
SeatHoldersBucket = Module + "_" + seat.StateSeatHolders
|
|
)
|
|
|
|
const (
|
|
// AssignmentsHistory is the revisions the assignments bucket keeps per key: the bus's most (§6).
|
|
AssignmentsHistory = 64
|
|
// EventDays is how long the seat's events are kept: they ride the shared events stream on the seat's own subject
|
|
// (the seat's family, 7 days).
|
|
EventDays = 7
|
|
)
|