Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogFile string `yaml:"log_file" env:"NCOQ_LOG_FILE" env-default:""` LogLevel string `yaml:"log_level" env:"NCOQ_LOG_LEVEL" env-default:"ERROR"` HTTPServer HTTPServerConfig `yaml:"http_server"` OMNIbus OMNIbus `yaml:"omnibus"` }
func LoadConfig ¶
type HTTPServerConfig ¶
type OMNIbus ¶
type OMNIbus struct { Clusters map[string]SeedList `yaml:"clusters" env:"NCOQ_OMNI_CLUSTERS" env-default:"AGG1:localhost:4100|localhost:4101"` ConnectionLabel string `yaml:"connection_label" env:"NCOQ_OMNI_CONN_LABEL" env-default:"nco-qoordinator"` MaxConnections int `yaml:"max_connections" env:"NCOQ_OMNI_MAX_CONN" env-default:"10"` RandomFailOver bool `yaml:"random_fail_over" env:"NCOQ_OMNI_RAND_FAILOVER" env-default:"false"` FailBack bool `yaml:"fail_back" env:"NCOQ_OMNI_FAILBACK" env-default:"true"` FailBackDelay time.Duration `yaml:"fail_back_delay" env:"NCOQ_OMNI_FAILBACK_DELAY" env-default:"300s"` }
Click to show internal directories.
Click to hide internal directories.