manager

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventManager

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

EventManager 事件管理器

func NewEventManager

func NewEventManager(
	eventBus bus.EventBus,
	handlers ...bus.EventHandler,
) *EventManager

NewEventManager 接受任意数量的 EventHandler 接口

func (*EventManager) EventBus

func (em *EventManager) EventBus() bus.EventBus

func (*EventManager) Register

func (em *EventManager) Register(handler bus.EventHandler)

Jump to

Keyboard shortcuts

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