ebus

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EBus

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

func (*EBus) Emit

func (e *EBus) Emit(event string, data interface{})

Emitting event with data. One goroutine per emit will be created.

func (*EBus) InitEBus

func (b *EBus) InitEBus()

func (*EBus) On

func (e *EBus) On(event string, fn EvHandler)

Registering listener for provided event.

type EvHandler

type EvHandler func(interface{})

Handler for event

Jump to

Keyboard shortcuts

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