Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergedConfig ¶
MergedConfig() returns the byte content of the patched configuration file (with .yaml.local).
Types ¶
type BouncerConfig ¶
type BouncerConfig struct {
BinPath string `yaml:"bin_path"` // path to binary
BinArgs []string `yaml:"bin_args"` // arguments for binary
PidDir string `yaml:"piddir"`
UpdateFrequency string `yaml:"update_frequency"`
IncludeScenariosContaining []string `yaml:"include_scenarios_containing"`
ExcludeScenariosContaining []string `yaml:"exclude_scenarios_containing"`
OnlyIncludeDecisionsFrom []string `yaml:"only_include_decisions_from"`
Daemon bool `yaml:"daemonize"`
Logging LoggingConfig `yaml:",inline"`
APIUrl string `yaml:"api_url"`
APIKey string `yaml:"api_key"`
CacheRetentionDuration time.Duration `yaml:"cache_retention_duration"`
FeedViaStdin bool `yaml:"feed_via_stdin"`
TotalRetries int `yaml:"total_retries"`
PrometheusConfig PrometheusConfig `yaml:"prometheus"`
}
type LoggingConfig ¶
type LoggingConfig struct {
LogLevel *log.Level `yaml:"log_level"`
LogMode string `yaml:"log_mode"`
LogDir string `yaml:"log_dir"`
LogMaxSize int `yaml:"log_max_size,omitempty"`
LogMaxFiles int `yaml:"log_max_files,omitempty"`
LogMaxAge int `yaml:"log_max_age,omitempty"`
CompressLogs *bool `yaml:"compress_logs,omitempty"`
}
func (*LoggingConfig) LoggerForFile ¶
func (c *LoggingConfig) LoggerForFile(fileName string) (io.Writer, error)
type PrometheusConfig ¶
Click to show internal directories.
Click to hide internal directories.