event

package
v0.0.0-...-68eb7cf Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FireEvent

func FireEvent(eventName string, args ...interface{}) (result [][]interface{}, err error)

FireEvent Fires a given event name with args. Args will be passed to all registered listeners. Returns a slice of results, each result is a slice of interface {}, representing the return value of each call.

func RegisterListener

func RegisterListener(eventName string, listener interface{})

RegisterListener registers a listener with a event name. The listener should be a function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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