Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { TrafficMonitor TrafficMonitor `json:"trafficMonitor"` Default Default `json:"default"` }
Config reflects the structure of the test-to-api.conf file
func LoadConfig ¶
LoadConfig - reads the config file into the Config struct
func (Config) DebugLog ¶
func (c Config) DebugLog() log.LogLocation
DebugLog - troubleshooting messages
func (Config) EventLog ¶
func (c Config) EventLog() log.LogLocation
EventLog - access.log high level transactions
func (Config) WarningLog ¶
func (c Config) WarningLog() log.LogLocation
WarningLog - warning messages
type Locations ¶
type Locations struct { Debug string `json:"debug"` Event string `json:"event"` Error string `json:"error"` Info string `json:"info"` Warning string `json:"warning"` }
Locations - reflects the structure of the database.conf file
type Session ¶
type Session struct {
TimeoutInSecs int `json:"timeoutInSecs" envconfig:"SESSION_TIMEOUT_IN_SECS"`
}
Session - config section
type TrafficMonitor ¶
type TrafficMonitor struct { // URL points to the Traffic Monitor instance being tested URL string `json:"url" envconfig:"TM_URL"` }
TrafficMonitor is the monitor config section.
Click to show internal directories.
Click to hide internal directories.