Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigFile = "/etc/trafficcontrol-cache-config/tm-health-client.json" DefaultLogDirectory = "/var/log/trafficcontrol-cache-config" DefaultLogFile = "tm-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 ¶
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 TOUrl string TOUser string 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 }
Click to show internal directories.
Click to hide internal directories.