Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
Port uint `json:"port"`
Monitors []*URL `json:"monitors"`
ReqTimeout Duration `json:"request_timeout_ms"`
CRConfigInterval Duration `json:"crconfig_poll_interval_ms"`
CRStatesInterval Duration `json:"crstates_poll_interval_ms"`
CDN string `json:"cdn"`
TrafficOpsURI *URL `json:"traffic_ops_uri"`
TrafficOpsUser string `json:"traffic_ops_user"`
TrafficOpsPass string `json:"traffic_ops_pass"`
TrafficOpsInsecure bool `json:"traffic_ops_insecure"`
TrafficOpsClientCache bool `json:"traffic_ops_client_cache"`
TrafficOpsTimeout Duration `json:"traffic_ops_timeout_ms"`
CoverageZoneFile string `json:"coverage_zone_file"`
LogLocations
}
func (Cfg) WarningLog ¶
func (c Cfg) WarningLog() log.LogLocation
type Duration ¶
Duration is a JSON config time.Duration, which is marshalled and unmarshalled as milliseconds. Therefore, JSON keys of this type should be suffixed with '_ms'.
func (Duration) MarshalJSON ¶
func (*Duration) UnmarshalJSON ¶
type LogLocations ¶
Click to show internal directories.
Click to hide internal directories.