event

package module
v0.0.0-...-aeb6479 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: LGPL-3.0 Imports: 0 Imported by: 0

README

event

A simple event manager

License

This project is licensed under the LGPL-3.0 License - see the LICENSE.md file for details

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(...interface{})

type Event

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

func NewEvent

func NewEvent() *Event

func (*Event) Fire

func (e *Event) Fire(name int, l ...interface{})

func (*Event) Off

func (e *Event) Off(evs *EventCb)

func (*Event) On

func (e *Event) On(name int, cb Callback) *EventCb

type EventCb

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

Jump to

Keyboard shortcuts

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