Documentation ¶
Overview ¶
Package server provides the HTTP server and endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var API = Routes{ Secure: map[string]Handlers{}, Insecure: map[string]Handlers{ http.MethodGet: map[string]Handler{ "/ping": endpoint.Ping, "/coffee": endpoint.Coffee, }, http.MethodPost: map[string]Handler{ "/send": endpoint.Send, }, }, }
API for the bot HTTP endpoints.
Functions ¶
Types ¶
type Handler ¶
type Handler func(settings config.Settings) http.HandlerFunc
Handler types can generate a HandlerFunc for the given settings.
Click to show internal directories.
Click to hide internal directories.