Documentation
¶
Overview ¶
Package bus is a fan-out event bus with bounded per-subscriber queues. A slow subscriber loses events (and is told so) instead of stalling the proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
Bus publishes flow events to subscribers.
type Subscriber ¶
Subscriber receives events on C. If its queue fills, older events are dropped and a single EvDropped event is coalesced in front.
func (*Subscriber) Close ¶
func (s *Subscriber) Close()
Close unsubscribes. C is closed; pending events are discarded.
Click to show internal directories.
Click to hide internal directories.