events

package
v0.0.63-rc55 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus added in v0.0.8

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

func NewEventBus

func NewEventBus() *Bus

func (*Bus) Close added in v0.0.9

func (b *Bus) Close() error

func (*Bus) Emit added in v0.0.8

func (e *Bus) Emit(ev Event)

func (*Bus) Subscribe added in v0.0.8

func (e *Bus) Subscribe(key string, handler func(Event)) func()

type CancelFunc

type CancelFunc func()

type Event

type Event struct {
	Key   string
	Entry interface{}
}

Jump to

Keyboard shortcuts

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