Documentation ¶
Index ¶
- type Dispatcher
- func (d *Dispatcher) Dispatch(event contracts.Event, payload any) error
- func (d *Dispatcher) Forget(event contracts.Event)
- func (d *Dispatcher) GetListeners(event contracts.Event) []contracts.Listener
- func (d *Dispatcher) HasListeners(event contracts.Event) bool
- func (d *Dispatcher) Listen(event contracts.Event, listener contracts.Listener)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
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
Click to show internal directories.
Click to hide internal directories.