Documentation ¶
Index ¶
- func GetDeviceIP() string
- func GetExternalIPs() string
- func GetExternalURLs() string
- func GetInternalIPbyKey(key string) (string, error)
- func GetInternalIPs() string
- func GetPingDelay() string
- func GetPortNumber() string
- func GetRandomExternalIP() string
- func GetRandomExternalURL() string
- func GetReportsLocation() string
- func GetSpeedDelay() string
- func GetSpeedFileLocation() string
- func SetDeviceIP(ip string)
- func SetExternalIPs(ips []string)
- func SetExternalURLs(urls []string)
- func SetInternalIP(ip map[string]string)
- func SetPingDelay(delay string)
- func SetPortNumber(pn string)
- func SetReportLocations(loc string)
- func SetSpeedTestDelay(delay string)
- func SetSpeedTestFileLocation(loc string)
- type Configuration
- type Configurator
- type DelaySettings
- type ExternalAddresses
- type SystemSettings
- type TestSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExternalIPs ¶
func GetExternalIPs() string
GetExternalIPs - Returns all the external ip addresses
func GetInternalIPbyKey ¶
GetInternalIPbyKey - Returns an internal ip address by searching based on the key passed in
func GetInternalIPs ¶
func GetInternalIPs() string
GetInternalIPs - returns all the internal ip addresses
func GetRandomExternalIP ¶
func GetRandomExternalIP() string
GetRandomExternalIP - Returns a random external IP address
func GetRandomExternalURL ¶
func GetRandomExternalURL() string
GetRandomExternalURL - Returns a random external url
func GetReportsLocation ¶
func GetReportsLocation() string
GetReportsLocation - Returns the location of the report files
func GetSpeedFileLocation ¶
func GetSpeedFileLocation() string
GetSpeedFileLocation - Returns the location of the speed test files
func SetExternalIPs ¶
func SetExternalIPs(ips []string)
SetExternalIPs - Sets the external IP addresses
func SetInternalIP ¶
SetInternalIP - Sets the internal ip value
func SetPortNumber ¶
func SetPortNumber(pn string)
SetPortNumber - Sets the applications port number
func SetReportLocations ¶
func SetReportLocations(loc string)
SetReportLocations - Sets the report location
func SetSpeedTestDelay ¶
func SetSpeedTestDelay(delay string)
SetSpeedTestDelay - Sets the speed tests delay
func SetSpeedTestFileLocation ¶
func SetSpeedTestFileLocation(loc string)
SetSpeedTestFileLocation - Sets the speed test file location
Types ¶
type Configuration ¶
type Configuration struct { SystemSettings SystemSettings TestSettings TestSettings }
Configuration - all the configuration settings
type Configurator ¶
type Configurator interface { Update(*Configuration) (bool, error) GetSettings() Configuration }
Configurator interface
func NewConfigurator ¶
func NewConfigurator() Configurator
NewConfigurator creates a new configurator with the default or saved configuration options
type DelaySettings ¶
DelaySettings - General test configuration settings
type ExternalAddresses ¶
type ExternalAddresses struct { IPAddresses []taggedIP URLAddresses []taggedURL }
ExternalAddresses - External ip addresses and url addresses
type SystemSettings ¶
SystemSettings - General system settings
type TestSettings ¶
type TestSettings struct { Configuration DelaySettings InternalAddresses []taggedIP ExternalAddresses ExternalAddresses FileLocations []taggedPath }
TestSettings - Settings for testing