Documentation
¶
Overview ¶
Package input normalizes message, command and callback input for handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Normalized ¶
type Normalized struct {
Kind Kind
Text string
Command string
Args []string
CallbackRoute string
CallbackData map[string]any
RawPayload string
}
Normalized is a platform-independent read model of an event's user input.
func Normalize ¶
func Normalize(ev event.Event) Normalized
Normalize converts an engine event into command, text or callback input.