env

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDuration

func GetDuration(key Key, defaultValue time.Duration) time.Duration

func GetFloat64

func GetFloat64(key Key, defaultValue float64) float64

func GetInt

func GetInt(key Key, defaultValue int) int

func GetRequiredDuration

func GetRequiredDuration(key Key) time.Duration

func GetRequiredFloat32

func GetRequiredFloat32(key Key) float32

func GetRequiredInt

func GetRequiredInt(key Key) int

func GetRequiredString

func GetRequiredString(key Key) string

func GetString

func GetString(key Key, defaultValue string) string

func MustSet

func MustSet(key Key, value string)

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL