Documentation ¶
Index ¶
- func GetDuration(key Key, defaultValue time.Duration) time.Duration
- func GetFloat64(key Key, defaultValue float64) float64
- func GetInt(key Key, defaultValue int) int
- func GetRequiredDuration(key Key) time.Duration
- func GetRequiredFloat32(key Key) float32
- func GetRequiredInt(key Key) int
- func GetRequiredString(key Key) string
- func GetString(key Key, defaultValue string) string
- func MustSet(key Key, value string)
- func MustSetAny(key Key, value interface{})
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat64 ¶
func GetRequiredDuration ¶
func GetRequiredFloat32 ¶
func GetRequiredInt ¶
func GetRequiredString ¶
func MustSetAny ¶
func MustSetAny(key Key, value interface{})
Types ¶
type Key ¶
type Key string
const ( ProcessModules Key = "PROCESS_MODULES" ProcessErrorInterval Key = "PROCESS_ERROR_INTERVAL" TaskWorkerPollInterval Key = "TASK_WORKER_POLL_INTERVAL" TaskWorkerTimeoutBuffer Key = "TASK_WORKER_TIMEOUT_BUFFER" LotusAPIUrl Key = "LOTUS_API_URL" LotusAPIToken Key = "LOTUS_API_TOKEN" QueueMongoURI Key = "QUEUE_MONGO_URI" QueueMongoDatabase Key = "QUEUE_MONGO_DATABASE" ResultMongoURI Key = "RESULT_MONGO_URI" ResultMongoDatabase Key = "RESULT_MONGO_DATABASE" FilplusIntegrationBatchSize Key = "FILPLUS_INTEGRATION_BATCH_SIZE" FilplusIntegrationTaskTimeout Key = "FILPLUS_INTEGRATION_TASK_TIMEOUT" FilplusIntegrationRandConst Key = "FILPLUS_INTEGRATION_RANDOM_CONSTANT" StatemarketdealsMongoURI Key = "STATEMARKETDEALS_MONGO_URI" StatemarketdealsMongoDatabase Key = "STATEMARKETDEALS_MONGO_DATABASE" StatemarketdealsBatchSize Key = "STATEMARKETDEALS_BATCH_SIZE" StatemarketdealsInterval Key = "STATEMARKETDEALS_INTERVAL" PublicIP Key = "_PUBLIC_IP" City Key = "_CITY" Region Key = "_REGION" Country Key = "_COUNTRY" Continent Key = "_CONTINENT" ASN Key = "_ASN" ISP Key = "_ISP" Latitude Key = "_LATITUDE" Longitude Key = "_LONGITUDE" ProviderCacheTTL Key = "PROVIDER_CACHE_TTL" LocationCacheTTL Key = "LOCATION_CACHE_TTL" AcceptedContinents Key = "ACCEPTED_CONTINENTS" AcceptedCountries Key = "ACCEPTED_COUNTRIES" IPInfoToken Key = "IPINFO_TOKEN" )
Click to show internal directories.
Click to hide internal directories.