Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
Handle(mess Message)
}
Handler is an interface for handling Message types.
type HandlerFunc ¶
type HandlerFunc func(mess Message)
HandlerFunc is a function type that takes a Message as a parameter.
func (HandlerFunc) Handle ¶
func (f HandlerFunc) Handle(mess Message)
Handle calls the HandlerFunc with the provided Message.
type Message ¶
type Message []any
Message is a raw representation of a Message as a slice of json.Message.
Click to show internal directories.
Click to hide internal directories.