Documentation ¶
Index ¶
- Variables
- type EventArgs
- type EventBus
- func (eb *EventBus) AddWatcher(eventName string) (Watcher, error)
- func (eb *EventBus) Close() error
- func (eb *EventBus) Init(options EventBusOptions) *EventBus
- func (eb *EventBus) IsClosed() bool
- func (eb *EventBus) Open() error
- func (eb *EventBus) RemoveWatcher(eventName string, wrappedWatcher Watcher) error
- type EventBusOptions
- type Watcher
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEventBusClosed error = errors.New("internal: event bus closed")
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func (*EventBus) Init ¶
func (eb *EventBus) Init(options EventBusOptions) *EventBus
type EventBusOptions ¶
type EventBusOptions struct { EventDirName string Go func(func()) }
Click to show internal directories.
Click to hide internal directories.