Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func NewEventBus ¶
func NewEventBus() *EventBus
func (*EventBus) Subscribe ¶
func (e *EventBus) Subscribe(topic string) *Subscriber
func (*EventBus) Unsubscribe ¶
func (e *EventBus) Unsubscribe(s *Subscriber)
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(topic string) *Subscriber
func (*Subscriber) Has ¶
func (s *Subscriber) Has(topic string) bool
func (*Subscriber) Out ¶
func (s *Subscriber) Out() <-chan any
Click to show internal directories.
Click to hide internal directories.