|
1 | 1 | package main |
2 | 2 |
|
3 | 3 | const ( |
4 | | - errorMsgFormat = "The mandatory field %v is either empty or missing in the config file" |
5 | | - intervalErrorMsg = "The mandatory field sync_interval_in_seconds is either 0 or missing in the config file" |
6 | | - cloudProviderErrorMsg = "The field cloud_provider has invalid value %v in the config file" |
| 4 | + errorMsgFormat = "the mandatory field %v is either empty or missing in the config file" |
| 5 | + intervalErrorMsg = "the mandatory field sync_interval_in_seconds is either 0 or missing in the config file" |
| 6 | + cloudProviderErrorMsg = "the field cloud_provider has invalid value %v in the config file" |
7 | 7 | defaultCloudProvider = "AWS" |
8 | | - upstreamNameErrorMsg = "The mandatory field name is either empty or missing for an upstream in the config file" |
9 | | - upstreamErrorMsgFormat = "The mandatory field %v is either empty or missing for the upstream %v in the config file" |
10 | | - upstreamPortErrorMsgFormat = "The mandatory field port is either zero or missing for the upstream %v in the config file" |
11 | | - upstreamKindErrorMsgFormat = "The mandatory field kind is either not equal to http or tcp or missing for the upstream %v in the config file" |
12 | | - upstreamMaxConnsErrorMsgFmt = "The field max_conns has invalid value %v in the config file" |
13 | | - upstreamMaxFailsErrorMsgFmt = "The field max_fails has invalid value %v in the config file" |
14 | | - upstreamFailTimeoutErrorMsgFmt = "The field fail_timeout has invalid value %v in the config file" |
15 | | - upstreamSlowStartErrorMsgFmt = "The field slow_start has invalid value %v in the config file" |
| 8 | + upstreamNameErrorMsg = "the mandatory field name is either empty or missing for an upstream in the config file" |
| 9 | + upstreamErrorMsgFormat = "the mandatory field %v is either empty or missing for the upstream %v in the config file" |
| 10 | + upstreamPortErrorMsgFormat = "the mandatory field port is either zero or missing for the upstream %v in the config file" |
| 11 | + upstreamKindErrorMsgFormat = "the mandatory field kind is either not equal to http or tcp or missing for the upstream %v in the config file" |
| 12 | + upstreamMaxConnsErrorMsgFmt = "the field max_conns has invalid value %v in the config file" |
| 13 | + upstreamMaxFailsErrorMsgFmt = "the field max_fails has invalid value %v in the config file" |
| 14 | + upstreamFailTimeoutErrorMsgFmt = "the field fail_timeout has invalid value %v in the config file" |
| 15 | + upstreamSlowStartErrorMsgFmt = "the field slow_start has invalid value %v in the config file" |
16 | 16 | ) |
0 commit comments