config

package
v0.0.0-...-86c91f4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Port indicates the Stock API service port. It uses default K8s service port env variable
	Port = getEnvInt("STOCK_SERVICE_PORT", 10000)
	// RedisPrefix is the prefix to be added to the keys
	RedisPrefix = getEnv("REDIS_PREFIX", "stock::")
	// RedisTTLDefault indicates the default time to live of the keys in seconds. 5 minutes by default
	RedisTTLDefault = getEnvInt("REDIS_TTL_DEFAULT", 300)
	// RedisTTLMax indicates the maximum time to live of the keys in seconds. 1 day by default
	RedisTTLMax = getEnvInt("REDIS_TTL_MAX", 86400)
	// RedisURL indicates the URL of redis
	RedisURL = getEnv("REDIS_URL", "localhost:6379")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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