14 lines
372 B
Go
14 lines
372 B
Go
package broker
|
|
|
|
// controllerReadableStates are the controller's states its announcement makes readable (ADR 0495 clause 2): what a
|
|
// module may name in `reads` after `mesh-controller.`.
|
|
func controllerReadableStates() []string {
|
|
var out []string
|
|
for _, s := range ControllerAnnouncement("").States {
|
|
if s.Readable {
|
|
out = append(out, s.Name)
|
|
}
|
|
}
|
|
return out
|
|
}
|