Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type Broadcaster interface { RegisterListener(listener *Listener) RemoveListener(listener *Listener) RemoveAllListeners() BroadcastEvent(ctx context.Context, event Event) }
func NewBroadcaster ¶
func NewBroadcaster() Broadcaster
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func Listen ¶
func Listen[E Event, F ListenerFunc[E]](handler F) *Listener
func (*Listener) Identifier ¶
type ListenerFunc ¶
type ListenerRegistry ¶
Click to show internal directories.
Click to hide internal directories.