dispatcheri

package
v0.0.0-...-ce4c9c0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(evname eventtype.EventType, ev interface{})

Callback is the type for Dispatcher callback functions.

type DispatcherI

type DispatcherI interface {
	Subscribe(evname eventtype.EventType, cb Callback)
	SubscribeID(evname eventtype.EventType, id interface{}, cb Callback)
	UnsubscribeID(evname eventtype.EventType, id interface{}) int
	UnsubscribeAllID(id interface{}) int
	Dispatch(evname eventtype.EventType, ev interface{}) int
}

DispatcherI is the interface for event dispatchers.

Jump to

Keyboard shortcuts

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