Files
mesh-controller/internal/broker/announced_test_helpers_test.go
T

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
}