Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type CacheConfig struct {
Path string `yaml:"path"`
}
CacheConfig represents a cache configuration instance.
type Config ¶
type Config struct { DataDir string `yaml:"data_dir"` Logger *LoggerConfig `yaml:"logger"` HTTP *HTTPConfig `yaml:"http"` Storage *maputil.Map `yaml:"storage"` Cache *CacheConfig `yaml:"cache"` Defaults *DefaultsConfig `yaml:"defaults"` }
Config represents a configuration instance.
type DefaultsConfig ¶
type DefaultsConfig struct {
TimeRange string `json:"time_range" yaml:"time_range"`
}
DefaultsConfig represents a service defaults configuration instance.
type HTTPConfig ¶
type HTTPConfig struct { Listen string `yaml:"listen"` GracefulTimeout int `yaml:"graceful_timeout"` BasePath string `yaml:"base_path"` ReadOnly bool `yaml:"read_only"` EnableUI bool `yaml:"enable_ui"` ExposeVersion bool `yaml:"expose_version"` SocketMode string SocketUser string SocketGroup string }
HTTPConfig represents a HTTP configuration instance.
type LoggerConfig ¶
type LoggerConfig struct { File *LoggerFileConfig `yaml:"file"` Syslog *LoggerSyslogConfig `yaml:"syslog"` }
LoggerConfig represents a logger configuration instance.
type LoggerFileConfig ¶
LoggerFileConfig represents a file logger configuration instance.
Click to show internal directories.
Click to hide internal directories.