Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigFile = "/etc/trafficcontrol/tc-health-client.json" DefaultLogDirectory = "/var/log/trafficcontrol" DefaultLogFile = "tc-health-client.log" DefaultTrafficServerConfigDir = "/opt/trafficserver/etc/trafficserver" DefaultTrafficServerBinDir = "/opt/trafficserver/bin" DefaultTmUpdateCycles = 10 )
Variables ¶
This section is empty.
Functions ¶
func GetRequestTimeout ¶
func GetTMPollingInterval ¶
func GetTrafficMonitors ¶
func LoadConfig ¶
func ReadCredentials ¶
*
- ReadCredentials *
- cfg - the existing config
- updating - when true, existing credentials may be updated from the credential file
func UpdateConfig ¶
Types ¶
type Cfg ¶
type Cfg struct { CDNName string `json:"cdn-name"` EnableActiveMarkdowns bool `json:"enable-active-markdowns"` ReasonCode string `json:"reason-code"` TOCredentialFile string `json:"to-credential-file"` TORequestTimeOutSeconds string `json:"to-request-timeout-seconds"` TOPass string `json:"to-pass"` TOUrl string `json:"to-url"` TOUser string `json:"to-user"` TmProxyURL string `json:"tm-proxy-url"` TmPollIntervalSeconds string `json:"tm-poll-interval-seconds"` TmUpdateCycles int `json:"tm-update-cycles"` TrafficServerConfigDir string `json:"trafficserver-config-dir"` TrafficServerBinDir string `json:"trafficserver-bin-dir"` TrafficMonitors map[string]bool `json:"trafficmonitors,omitempty"` HealthClientConfigFile util.ConfigFile CredentialFile util.ConfigFile ParsedProxyURL *url.URL }
Click to show internal directories.
Click to hide internal directories.