Documentation
¶
Overview ¶
Package eventbus provides the in-process best-effort audit event stream.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub retains recent events and fans new events out without blocking publishers.
func (*Hub) Close ¶
func (hub *Hub) Close()
Close closes every subscriber and makes future operations inert.
func (*Hub) Subscribe ¶
Subscribe returns retained history followed by live events and an idempotent cancel function.
func (*Hub) SubscribeLive ¶
SubscribeLive returns only events published after the subscription is registered. Like Subscribe, delivery is best effort: a subscriber whose buffer fills is removed without blocking publishers. The returned cancel function is idempotent.
func (*Hub) SubscriberCount ¶
SubscriberCount returns the number of currently registered subscribers.
Click to show internal directories.
Click to hide internal directories.