event

package
v0.0.0-...-60ec71d Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event uint16

type Handler

type Handler func(Event, any) error

type Listener

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

type Manager

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

func (*Manager) AddListener

func (m *Manager) AddListener(e Event, handler Handler) *Listener

func (*Manager) Dispatch

func (m *Manager) Dispatch(e Event, msg any) (err error)

func (*Manager) RemoveListener

func (m *Manager) RemoveListener(l *Listener)

Jump to

Keyboard shortcuts

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