Documentation ¶
Index ¶
- type Bus
- type BusController
- type BusPublisher
- type BusSubscriber
- type EventBus
- func (bus *EventBus) HasCallback(topic string) bool
- func (bus *EventBus) Publish(topic string, args ...interface{})
- func (bus *EventBus) Subscribe(topic string, fn interface{}) error
- func (bus *EventBus) SubscribeAsync(topic string, fn interface{}, transactional bool) error
- func (bus *EventBus) SubscribeOnce(topic string, fn interface{}) error
- func (bus *EventBus) SubscribeOnceAsync(topic string, fn interface{}) error
- func (bus *EventBus) Unsubscribe(topic string, handler interface{}) error
- func (bus *EventBus) WaitAsync()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus interface { BusController BusSubscriber BusPublisher }
type BusController ¶
type BusPublisher ¶
type BusPublisher interface {
Publish(topic string, args ...interface{})
}
type BusSubscriber ¶
type BusSubscriber interface { Subscribe(topic string, fn interface{}) error SubscribeAsync(topic string, fn interface{}, transactional bool) error SubscribeOnce(topic string, fn interface{}) error SubscribeOnceAsync(topic string, fn interface{}) error Unsubscribe(topic string, handler interface{}) error }
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func (*EventBus) HasCallback ¶
func (*EventBus) SubscribeAsync ¶
func (*EventBus) SubscribeOnce ¶
func (*EventBus) SubscribeOnceAsync ¶
func (*EventBus) Unsubscribe ¶
Click to show internal directories.
Click to hide internal directories.