Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mask ¶
type Mask uint64
Mask allows filtering by a bitset mask.
func MaskFromMaskable ¶
MaskFromMaskable extracts mask from an interface.
func (*Mask) FromUint64 ¶
FromUint64 will set a mask to the uint64 value.
func (*Mask) MergeMaskable ¶
MergeMaskable will merge other into t.
func (Mask) SingleType ¶
SingleType returns whether t has a single type set.
type Maskable ¶
type Maskable interface {
Mask() uint64
}
Maskable implementations must return their mask as a 64 bit uint.
type PubSub ¶
PubSub holds publishers and subscribers
func (*PubSub) NumSubscribers ¶
NumSubscribers returns the number of current subscribers, If t is non-nil, the type is checked against the active subscribed types, and 0 will be returned if nobody is subscribed for the type, otherwise the *total* number of subscribers is returned.
Click to show internal directories.
Click to hide internal directories.