Documentation
¶
Index ¶
Constants ¶
View Source
const ( KernelEventApplicationLaunched = "kernelEvent.ApplicationLaunched" KernelEventApplicationTermination = "kernelEvent.ApplicationTermination" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
func NewEventBus ¶
func NewEventBus() EventBus
func (EventBus) AppendListener ¶
func (b EventBus) AppendListener(eventObj event.Event, listenerFunc interface{}, priority int) error
eventObj - should be a pointer to the Event object listenerFunc - should be a function with one argument, that argument should be a pointer to the Event object priority - priority of this listener in listeners chain
type EventsRegistry ¶
type EventsRegistry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *EventsRegistry
func (*EventsRegistry) GetEventByName ¶
func (r *EventsRegistry) GetEventByName(name string) (event.Event, error)
Click to show internal directories.
Click to hide internal directories.