g_event

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NewBlockInsertEvent = "on_new_block"
)

Variables

This section is empty.

Functions

func Add

func Add(name string)

Add event in global

func Send

func Send(to string, v interface{}) (sentN int)

Send event

Types

type Subscription

type Subscription interface {
	Err() <-chan error // returns the error channel
	Unsubscribe()      // cancels sending of events, closing the error channel
}

func Subscribe

func Subscribe(name string, c interface{}) Subscription

Subscribe event

Jump to

Keyboard shortcuts

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