Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
func NewDispatcher ¶
func NewDispatcher(opts ...Option) *Dispatcher
func (*Dispatcher) AddListener ¶
func (d *Dispatcher) AddListener(listener ...Listener)
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(event Event, data any)
type Option ¶
type Option func(*Dispatcher)
func WithRecovery ¶
func WithRecovery(handler RecoveryHandler) Option
type RecoveryHandler ¶ added in v2.3.1
Click to show internal directories.
Click to hide internal directories.