eventManager

package
v0.0.0-...-661f0fa Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 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 EventHandler

type EventHandler func()

type EventManager

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

func NewEventManager

func NewEventManager() *EventManager

func (*EventManager) Emit

func (m *EventManager) Emit(eventType EventType)

func (*EventManager) Subscribe

func (m *EventManager) Subscribe(eventType EventType, handler EventHandler)

type EventType

type EventType string
const (
	ConfigUpdated EventType = "configUpdated"
)

Jump to

Keyboard shortcuts

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