events

package
v0.0.51-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 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