events

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventData

type EventData any

type EventEmitters

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

func Default

func Default() *EventEmitters

func NewEventEmitters

func NewEventEmitters() *EventEmitters

func (*EventEmitters) Clear

func (e *EventEmitters) Clear()

func (*EventEmitters) Emit

func (e *EventEmitters) Emit(key string, data EventData)

func (*EventEmitters) Off

func (e *EventEmitters) Off(key string, handler Handler, target string)

func (*EventEmitters) OffByTarget

func (e *EventEmitters) OffByTarget(target string)

func (*EventEmitters) On

func (e *EventEmitters) On(key string, handler Handler, target string) bool

func (*EventEmitters) Once

func (e *EventEmitters) Once(key string, handler Handler, target string) bool

func (*EventEmitters) SetCatch

func (e *EventEmitters) SetCatch(catch func())

type Handler

type Handler func(EventData)

func (Handler) Address

func (h Handler) Address() int64

type PosElement

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

Jump to

Keyboard shortcuts

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