示例#1
0
// Loads the settings from the config file
func buildConfigStruct(cp *configPage) {
	cp.DeviceIP = configuration.GetDeviceIP()
	cp.Port = configuration.GetPortNumber()
	cp.InternalAddr = configuration.GetInternalIPs()
	cp.ExternalAddr = configuration.GetExternalIPs()
	cp.ExternalURL = configuration.GetExternalURLs()
	cp.SpeedFileLoc = configuration.GetSpeedFileLocation()
	cp.ReportFileLoc = configuration.GetReportsLocation()
	cp.PingDelay = configuration.GetPingDelay()
	cp.SpeedDelay = configuration.GetSpeedDelay()
}
示例#2
0
func buildTestStruct(ts *testPage) {
	ts.PingDelay = configuration.GetPingDelay()
	ts.SpeedTestDelay = configuration.GetSpeedDelay()
	ts.SpeedTestFileLocation = configuration.GetSpeedFileLocation()
}