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 EventBusInstance ¶
func EventBusInstance() *EventBus
func (*EventBus) AddSubscribers ¶
func (e *EventBus) AddSubscribers(p Publisher, s ...Subscriber)
func (*EventBus) DeleteSubscriber ¶
func (e *EventBus) DeleteSubscriber(p Publisher, s Subscriber)
func (*EventBus) EventHandles ¶
func (e *EventBus) EventHandles() map[Publisher][]Subscriber
type Subscriber ¶
type Subscriber interface {
Notice(data interface{})
}
Click to show internal directories.
Click to hide internal directories.