Documentation
¶
Overview ¶
Package config provides settings and configuration for the whipser server by loading the configuration from the environment and specifying reasonable defaults and required settings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Maintenance bool `split_words:"true" default:"false"`
Mode string `split_words:"true" default:"debug"`
BindAddr string `split_words:"true" required:"false"`
LogLevel logger.LevelDecoder `split_words:"true" default:"info"`
ConsoleLog bool `split_words:"true" default:"false"`
AllowOrigins []string `split_words:"true" default:"https://whisper.rotational.dev"`
Google GoogleConfig
Sentry sentry.Config
// contains filtered or unexported fields
}
Config uses envconfig to load required settings from the environment and validate them in preparation for running the whisper service.
func (Config) GetLogLevel ¶
type GoogleConfig ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.