eventbus

package
v0.0.0-...-b45fbc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EVENT_BUS_MANAGER_ID = "EventBus"

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

type EventBus

type EventBus struct {
	// contains filtered or unexported fields
}

func NewEventBus

func NewEventBus(registry *registry.Container) *EventBus

func RestoreEventBus

func RestoreEventBus(r *registry.Container) *EventBus

func (*EventBus) CreateEvent

func (self *EventBus) CreateEvent(eventName string) Event

func (*EventBus) FireEvent

func (self *EventBus) FireEvent(evt Event)

func (*EventBus) Register

func (self *EventBus) Register(action IEventBusAction)

type IEventBusAction

type IEventBusAction interface {
	HandleEvent(event string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL