cevents

package
v0.0.0-...-edf0be2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: GPL-3.0 Imports: 3 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 New

func New(c chan events.Event) EventBus

func (*EventBus) Publish

func (eb *EventBus) Publish(payload any, name string) error

func (*EventBus) RegisterHandler

func (eb *EventBus) RegisterHandler(handler events.EventHandler, name string) error

func (*EventBus) Run

func (eb *EventBus) Run()

Jump to

Keyboard shortcuts

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