Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is a Berlin Strength API.
func New ¶
func New(config *Config, reg prometheus.Registerer, gat prometheus.Gatherer) *API
New returns a new ServeMux with app routes.
type Config ¶
type Config struct { // OAuth ID ClientID string // OAuth secret ClientSecret string // Allowed emails Emails []string // File descriptor for the RFID scanner; defaults to os.Stdin File *os.File // URL at which to listen URL *url.URL }
Config represents the configuration for the Berlin Strength API.
Click to show internal directories.
Click to hide internal directories.