- Parse toml configuration file, see https://github.com/qdm12/gluetun-wiki/blob/main/setup/advanced/control-server.md#authentication - Retro-compatible with existing AND documented routes, until after v3.41 release - Log a warning if an unprotected-by-default route is accessed unprotected - Authentication methods: none, apikey, basic - `genkey` command to generate API keys Co-authored-by: Joe Jose <45399349+joejose97@users.noreply.github.com>
27 lines
316 B
Go
27 lines
316 B
Go
package server
|
|
|
|
type Logger interface {
|
|
Debugf(format string, args ...any)
|
|
infoer
|
|
warner
|
|
Warnf(format string, args ...any)
|
|
errorer
|
|
}
|
|
|
|
type infoWarner interface {
|
|
infoer
|
|
warner
|
|
}
|
|
|
|
type infoer interface {
|
|
Info(s string)
|
|
}
|
|
|
|
type warner interface {
|
|
Warn(s string)
|
|
}
|
|
|
|
type errorer interface {
|
|
Error(s string)
|
|
}
|