Documentation
¶
Index ¶
Constants ¶
View Source
const Prefix = "otter"
All environment variables will have this prefix unless otherwise defined in struct tags. For example, the conf.LogLevel environment variable will be OTTER_LOG_LEVEL because of this prefix and the split_words struct tag in the conf below.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Maintenance bool `default:"false" yaml:"maintenance"`
LogLevel logger.LevelDecoder `split_words:"true" default:"info" yaml:"log_level"`
ConsoleLog bool `split_words:"true" default:"false" yaml:"console_log"`
Server ServerConfig
Replica ReplicaConfig
Web WebConfig
// contains filtered or unexported fields
}
Config contains all of the configuration parameters for an otterdb instance and is loaded from the environment or a configuration file with reasonable defaults for values that are omitted. The Config should be validated in preparation for running the otterdb instance to ensure that all server operations work as expected.
func (Config) GetLogLevel ¶
type ReplicaConfig ¶
type ReplicaConfig struct{}
type ServerConfig ¶
type ServerConfig struct{}
Click to show internal directories.
Click to hide internal directories.