events

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 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
}

EventBus ...

func EventBusInstance

func EventBusInstance() *EventBus

EventBusInstance ...

func (*EventBus) AddSubscribers

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

AddSubscribers ...

func (*EventBus) DeleteSubscriber

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

DeleteSubscriber ...

func (*EventBus) EventHandles

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

EventHandles ...

func (*EventBus) Publish

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

Publish ...

type Publisher

type Publisher interface {
}

Publisher ...

type Subscriber

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

Subscriber ...

Jump to

Keyboard shortcuts

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