event

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rise

func Rise(t EventType, args interface{})

Rise ...

func Subscribe

func Subscribe(t EventType, c Callback, args interface{}, id string)

Subscribe ...

func SubscribeOnce

func SubscribeOnce(t EventType, c Callback, args interface{}, id string)

SubscribeOnce ...

func UnSubscribe

func UnSubscribe(t EventType, id string)

UnSubscribe ...

Types

type Callback

type Callback func(eventArgs interface{}, subscriberArgs interface{})

Callback ...

type EventBus

type EventBus struct {
	sync.Mutex
	// contains filtered or unexported fields
}

EventBus ...

type EventType

type EventType int

EventType ...

Jump to

Keyboard shortcuts

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