Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
Handler iimplements both the Hearer, and hugot.Handler interfaces
type HeardFunc ¶
type HeardFunc func(ctx context.Context, w hugot.ResponseWriter, m *hugot.Message, submatches [][]string) error
HeardFunc describes a function that can be used to hear regex matches.
type Hearer ¶
type Hearer interface { hugot.Describer Heard(ctx context.Context, w hugot.ResponseWriter, m *hugot.Message, submatches [][]string) error // Called once a message matches, and is passed any submatches from the regexp capture groups Hears() *regexp.Regexp // Returns the regexp we want to hear }
Hearer descibres a handler that can be used to match regular expressions.
Click to show internal directories.
Click to hide internal directories.