Kept (toolchains, keys, steps, each read by another module today) is said with stdio.Keeps before the module serves; announcetest.Check holds the announcement equal to the code. The module is pinned to mesh-sdk feat/r4e-sdk 9cb4d59.
21 lines
833 B
Go
21 lines
833 B
Go
package main
|
|
|
|
// What this module keeps on the bus, announced from its code (novox/hq ADR 0495 §2 §5; issue 1790): every state it
|
|
// keeps, each readable by others, since another module reads each today (the builder, the checker and the indexer read toolchains; the builder and the checker read steps; gitea reads keys). A state of its own that it
|
|
// did not name here is refused at the call (stdio.Keeps).
|
|
|
|
import (
|
|
stdio "git.novox.be/novox/mesh-sdk/go"
|
|
"git.novox.be/novox/mesh-sdk/go/announce"
|
|
)
|
|
|
|
// Kept are the states the module keeps.
|
|
var Kept = []announce.State{
|
|
{Name: "toolchains", Readable: true},
|
|
{Name: "keys", Readable: true},
|
|
{Name: "steps", Readable: true},
|
|
}
|
|
|
|
// keepStates announces Kept as this module's (stdio.Keeps): main calls it before it serves.
|
|
func keepStates() error { return stdio.Keeps(Kept...) }
|