26 lines
1.0 KiB
Go
26 lines
1.0 KiB
Go
package placement
|
|
|
|
import seat "git.novox.be/novox/mesh-contracts/placement/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 (
|
|
PlacementBucket = Module + "_" + seat.StatePlacement
|
|
ProposalsBucket = Module + "_" + seat.StateProposals
|
|
CandidatesBucket = Module + "_" + seat.StateCandidates
|
|
PulsesBucket = Module + "_" + seat.StatePulses
|
|
SeatHoldersBucket = Module + "_" + seat.StateSeatHolders
|
|
)
|
|
|
|
const (
|
|
// PlacementHistory is the revisions the placement bucket keeps per key: the bus's most (§6).
|
|
PlacementHistory = 64
|
|
// Stream is the holder's stream of the seat's events, kept StreamDays (§6), and declared as the holder's data so the
|
|
// mesh's backups keep it.
|
|
Stream = "placement"
|
|
StreamDays = 30
|
|
)
|