event

package
v0.0.74 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewDispatcher

func NewDispatcher(app contracts.ApplicationInterface) *Dispatcher

func (*Dispatcher) Dispatch

func (d *Dispatcher) Dispatch(event contracts.Event, payload any) error

func (*Dispatcher) Forget

func (d *Dispatcher) Forget(event contracts.Event)

func (*Dispatcher) GetListeners

func (d *Dispatcher) GetListeners(event contracts.Event) []contracts.Listener

func (*Dispatcher) HasListeners

func (d *Dispatcher) HasListeners(event contracts.Event) bool

func (*Dispatcher) Listen

func (d *Dispatcher) Listen(event contracts.Event, listener contracts.Listener)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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