whoosp backwards if body
parent
e916b5abfc
commit
3adcee2fbe
17
config.json
17
config.json
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"Log": {
|
"Log": {
|
||||||
"Path": "/tmp/truckstop.log",
|
"Path": "/tmp/truckstop.log",
|
||||||
"Level": "debug",
|
"Level": "DEB",
|
||||||
"SOSMatrix": {
|
"SOSMatrix": {
|
||||||
"ReceiveEnabled": true,
|
"ReceiveEnabled": true,
|
||||||
"Mock": false,
|
"Mock": false,
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
],
|
],
|
||||||
"Zips": [
|
"Zips": [
|
||||||
"27006",
|
"27006",
|
||||||
|
"73044",
|
||||||
"84058"
|
"84058"
|
||||||
],
|
],
|
||||||
"IDs": {
|
"IDs": {
|
||||||
|
|
@ -77,20 +78,20 @@
|
||||||
"Brokers": {
|
"Brokers": {
|
||||||
"UseZips": true,
|
"UseZips": true,
|
||||||
"RadiusMiles": 100,
|
"RadiusMiles": 100,
|
||||||
"FastExact": {
|
|
||||||
"Enabled": true,
|
|
||||||
"Mock": false,
|
|
||||||
"Username": "birdman",
|
|
||||||
"Password": "166647"
|
|
||||||
},
|
|
||||||
"NTG": {
|
"NTG": {
|
||||||
"Enabled": false,
|
"Enabled": true,
|
||||||
"JobInfo": true,
|
"JobInfo": true,
|
||||||
"Mock": false,
|
"Mock": false,
|
||||||
"LoadPageURIFormat": "https://ntgvision.com/LoadDetails?loadId=%d",
|
"LoadPageURIFormat": "https://ntgvision.com/LoadDetails?loadId=%d",
|
||||||
"LoadPageAPIURIFormat": "https://ntgvision.com/api/v1/load/LoadDetails?loadId==%d",
|
"LoadPageAPIURIFormat": "https://ntgvision.com/api/v1/load/LoadDetails?loadId==%d",
|
||||||
"Username": "noeasyrunstrucking@gmail.com",
|
"Username": "noeasyrunstrucking@gmail.com",
|
||||||
"Password": "thumper12345"
|
"Password": "thumper12345"
|
||||||
|
},
|
||||||
|
"FastExact": {
|
||||||
|
"Enabled": true,
|
||||||
|
"Mock": false,
|
||||||
|
"Username": "birdman",
|
||||||
|
"Password": "166647"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
4
main.go
4
main.go
|
|
@ -386,10 +386,10 @@ func once() error {
|
||||||
|
|
||||||
func getJobs() ([]broker.Job, error) {
|
func getJobs() ([]broker.Job, error) {
|
||||||
if config.Get().Brokers.UseZips {
|
if config.Get().Brokers.UseZips {
|
||||||
return getJobsStates()
|
|
||||||
}
|
|
||||||
return getJobsZips()
|
return getJobsZips()
|
||||||
}
|
}
|
||||||
|
return getJobsStates()
|
||||||
|
}
|
||||||
|
|
||||||
func getJobsZips() ([]broker.Job, error) {
|
func getJobsZips() ([]broker.Job, error) {
|
||||||
zips := config.AllZips()
|
zips := config.AllZips()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue