observe

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: GPL-3.0 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 interface{ Type() EventType }

type EventType

type EventType = int

type Handle

type Handle func(ev interface{})

type Observer

type Observer interface {
	Dispatch(event Event)
	AddListener(eventType EventType, callback Handle)
	RemoveListener(eventType EventType, callback Handle)
}

func New

func New() Observer

Jump to

Keyboard shortcuts

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