router

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEventNotSupported = errors.New("this event type is not supported")
)

Functions

This section is empty.

Types

type EventRouter

type EventRouter struct {
	// contains filtered or unexported fields
}

func NewEventRouter

func NewEventRouter() *EventRouter

func (*EventRouter) Handle

func (er *EventRouter) Handle(eventType types.EventType, eventHandler types.EventHandler) types.EventRouter

func (*EventRouter) Handlers

func (er *EventRouter) Handlers() map[types.EventType]types.EventHandler

func (*EventRouter) Route

func (er *EventRouter) Route(event types.Event, client types.Client) error

Jump to

Keyboard shortcuts

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