eventbus

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 0 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 {
	Name      string
	Listeners map[string][]chan interface{}
}

func (*Event) AddListener

func (b *Event) AddListener(e string, ch chan interface{})

func (*Event) Emit

func (b *Event) Emit(e string, response string)

func (*Event) RemoveListener

func (b *Event) RemoveListener(e string, ch chan interface{})

Jump to

Keyboard shortcuts

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