event

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: MIT Imports: 1 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 uint16

type Handler

type Handler func(data interface{}) error

type Listener

type Listener struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Listener) Fire

func (l *Listener) Fire(e Event, data interface{}) error

func (*Listener) On

func (l *Listener) On(e Event, h Handler)

type Registry

type Registry interface {
	On(Event, Handler)
}

Jump to

Keyboard shortcuts

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