Documentation
¶
Overview ¶
Package controller advances machines. It reads its inbox and its wakes in the store, takes one step at a time for each instance with something waiting, and writes down the result. Everything it does is a write to the store.
Index ¶
Constants ¶
const MaxMessage = 256 << 10
MaxMessage is the largest a message may be.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
ID *identity.Identity
Store store.Store
// Now is the controller's clock.
Now func() time.Time
// SideBySide bounds how many store requests a pass has open at once,
// however much is owed.
SideBySide int
// AnyRunner has a job carried out whatever tags it names, as under
// corbie test.
AnyRunner bool
}
A Controller brings nothing with it but its key. Who it trusts, its secrets and every instance are in the store.