bus

package
v0.4.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(event Event)

func Subscribe

func Subscribe(subscriber Handler)

func Unsubscribe

func Unsubscribe(subscriber Handler)

Types

type Event

type Event interface{}

type Handler

type Handler interface {
	ReceiveEvent(event Event)
}

Jump to

Keyboard shortcuts

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