Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BindAddr string `split_words:"true" default:":2384"` Maintenance bool `split_words:"true" default:"false"` DirectoryAddr string `split_words:"true" default:"api.trisatest.net:443"` ServerCerts string `split_words:"true" required:"true"` ServerCertPool string `envconfig:"TRISA_SERVER_CERTPOOL" required:"true"` LogLevel LogLevelDecoder `split_words:"true" default:"info"` ConsoleLog bool `split_words:"true" default:"false"` // contains filtered or unexported fields }
func (Config) GetLogLevel ¶
type LogLevelDecoder ¶
LogLevelDecoder deserializes the log level from a config string.
func (*LogLevelDecoder) Decode ¶
func (ll *LogLevelDecoder) Decode(value string) error
Decode implements envconfig.Decoder
Click to show internal directories.
Click to hide internal directories.