Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscriber ¶
Subscriber allows processes to subscribe to entity events generated from a tagger.
func (*Subscriber) Notify ¶
func (s *Subscriber) Notify(events []types.EntityEvent)
Notify sends a slice of EntityEvents to all registered subscribers at their chosen cardinality.
func (*Subscriber) Subscribe ¶
func (s *Subscriber) Subscribe(cardinality collectors.TagCardinality, events []types.EntityEvent) chan []types.EntityEvent
Subscribe returns a channel that receives a slice of events whenever an entity is added, modified or deleted. It can send an initial burst of events only to the new subscriber, without notifying all of the others.
func (*Subscriber) Unsubscribe ¶
func (s *Subscriber) Unsubscribe(ch chan []types.EntityEvent)
Unsubscribe ends a subscription to entity events and closes its channel.
Click to show internal directories.
Click to hide internal directories.