package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Sep 16, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
ConfigFile string `koanf:"configfile"`
Log Log `koanf:"log"`
Http Http `koanf:"http"`
OpenVpn OpenVpn `koanf:"openvpn"`
Oauth2 OAuth2 `koanf:"oauth2"`
}
type Http struct {
Listen string `koanf:"listen"`
CertFile string `koanf:"cert"`
KeyFile string `koanf:"key"`
Tls bool `koanf:"tls"`
BaseUrl string `koanf:"baseurl"`
SessionSecret string `koanf:"sessionsecret"`
}
type Log struct {
Level string `koanf:"level"`
}
type OAuth2Client struct {
Id string `koanf:"id"`
Secret string `koanf:"secret"`
}
type OAuth2Validate struct {
Groups []string `koanf:"groups"`
Roles []string `koanf:"roles"`
IpAddr bool `koanf:"ipaddr"`
}
type OpenVpn struct {
Addr string `koanf:"addr"`
Password string `koanf:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.