events

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventBus

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

func EventBusInstance

func EventBusInstance() *EventBus

func (*EventBus) AddSubscribers

func (e *EventBus) AddSubscribers(p Publisher, s ...Subscriber)

func (*EventBus) DeleteSubscriber

func (e *EventBus) DeleteSubscriber(p Publisher, s Subscriber)

func (*EventBus) EventHandles

func (e *EventBus) EventHandles() map[Publisher][]Subscriber

func (*EventBus) Publish

func (e *EventBus) Publish(p Publisher, data interface{})

type Publisher

type Publisher interface {
}

type Subscriber

type Subscriber interface {
	Notice(data interface{})
}

Jump to

Keyboard shortcuts

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