12 lines
506 B
Go
12 lines
506 B
Go
package broker
|
|
|
|
import "strings"
|
|
|
|
// A seat's cancelled set (novox/hq ADR 0219) is a bucket the mesh no longer raises or grants (R4g, ADR 0525 clause 6): the
|
|
// controller asks no work queue, so nothing is cancelled. A bus that still holds one is not reported as state nothing declares.
|
|
|
|
// IsCancelledSet says a bucket is a seat's cancelled set rather than a module's state.
|
|
func IsCancelledSet(bucket string) bool {
|
|
return strings.HasPrefix(bucket, "SEAT_") && strings.HasSuffix(bucket, "_cancelled")
|
|
}
|