Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSubscriber ¶
func AddSubscriber(ctx context.Context, filter FilterParams, tags []string) (<-chan emitter.Event, error)
AddSubscriber adds a new subscriber to receive job events filtered based on the provided filterParams.
func PublishEvent ¶
PublishEvent publishes a new event. It returns a channel which can be used to wait for the delivery of the event to all listeners.
func ShutdownSubscribers ¶
func ShutdownSubscribers()
ShutdownSubscribers disconnects all subscribers.
func SubscriberCount ¶
func SubscriberCount() int
SubscriberCount counts the total number of subscribers across all topics.
Types ¶
type FilterParams ¶
Click to show internal directories.
Click to hide internal directories.