events

package
v2.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBroadcaster

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

func NewEventBroadcaster

func NewEventBroadcaster() *EventBroadcaster

func (*EventBroadcaster) AddListener

func (eb *EventBroadcaster) AddListener(l EventListener)

func (*EventBroadcaster) Push

func (eb *EventBroadcaster) Push(e interface{})

type EventListener

type EventListener interface {
	Handle(event interface{})
}

Jump to

Keyboard shortcuts

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