Documentation ¶
Index ¶
- func AllLocalIPAddresses() []net.IP
- func FirstLocalIP(ips []net.IP) net.IP
- func SaveSecretsToFile(secrets Secrets, file string)
- func TLSConfigWithSelfSignedCert(ips []net.IP) (serverTLSConf *tls.Config)
- type Config
- type GoogleConfig
- type OAuthConfig
- type Secrets
- type SecurityConfig
- type ServicesConfig
- type StorageConfig
- type WebConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllLocalIPAddresses ¶
AllLocalIPAddresses returns all available interfaces' IP.
func FirstLocalIP ¶
FirstLocalIP Returns first none loopback IP available. Returns net.IPv6loopback if nothing is found.
func SaveSecretsToFile ¶
Types ¶
type Config ¶
type Config struct { OAuth OAuthConfig `mapstructure:"oauth"` //nolint:tagliatelle Security SecurityConfig `mapstructure:"security"` Services ServicesConfig `mapstructure:"services"` Storage StorageConfig `mapstructure:"storage"` Web WebConfig `mapstructure:"web"` }
func LoadConfig ¶
type GoogleConfig ¶
type OAuthConfig ¶
type OAuthConfig struct {
Google GoogleConfig `mapstructure:"google"`
}
type Secrets ¶
func LoadSecretsFromFile ¶
type SecurityConfig ¶
type ServicesConfig ¶
type StorageConfig ¶
Click to show internal directories.
Click to hide internal directories.