event

package
v0.2.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2014 License: Apache-2.0 Imports: 4 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 struct {
	Type    string
	Payload interface{}
	Context interface{}
}

type EventBus

type EventBus struct {
	Channel chan *Event
	// contains filtered or unexported fields
}

func NewEventBus

func NewEventBus() *EventBus

func (*EventBus) AddListener

func (self *EventBus) AddListener(name string, m *machine.Machine, l interface{})

func (*EventBus) Listen

func (self *EventBus) Listen()

func (*EventBus) RemoveListener

func (self *EventBus) RemoveListener(name string, m *machine.Machine)

func (*EventBus) Stop

func (self *EventBus) Stop()

type EventListener

type EventListener struct {
	Context *machine.Machine
	Handler interface{}
}

func (*EventListener) String

func (self *EventListener) String() string

Jump to

Keyboard shortcuts

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