event

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 2 Imported by: 4

README

ares-event

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter added in v0.0.2

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

func (*Emitter) Emit added in v0.0.2

func (e *Emitter) Emit(topic string, args ...interface{})

func (*Emitter) Off added in v0.0.2

func (e *Emitter) Off(topic string, fn interface{})

func (*Emitter) On added in v0.0.2

func (e *Emitter) On(topic string, fn interface{})

func (*Emitter) OnSync added in v0.0.2

func (e *Emitter) OnSync(topic string, fn interface{})

func (*Emitter) Once added in v0.0.2

func (e *Emitter) Once(topic string, fn interface{})

func (*Emitter) OnceSync added in v0.0.2

func (e *Emitter) OnceSync(topic string, fn interface{})

type IEmitter added in v0.0.2

type IEmitter interface {
	On(topic string, fn interface{})
	OnSync(topic string, fn interface{})
	Once(topic string, fn interface{})
	OnceSync(topic string, fn interface{})
	Off(topic string, fn interface{})
	Emit(topic string, args ...interface{})
}

Jump to

Keyboard shortcuts

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