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 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址