Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MAX_WORKERS = GetEnv("MAX_WORKERS", "300") MIN_WORKERS = GetEnv("MIN_WORKERS", "1") WORKER_TIMEOUT = GetEnv("WORKER_TIMEOUT", "10") SERVICE_ADDRESS = GetEnv("SERVICE_ADDRESS", "127.0.0.1:") LOG_LEVEL = GetEnv("LOG_LEVEL", "INFO") // The execution type of the nitric execution unit, can either be job or service EXECUTION_TYPE = GetEnv("NITRIC_EXECUTION_TYPE", "service") )
Standard system environment variables
Functions ¶
This section is empty.
Types ¶
type EnvironmentVariable ¶
type EnvironmentVariable struct {
// contains filtered or unexported fields
}
func GetEnv ¶
func GetEnv(key, fallback string) EnvironmentVariable
GetEnv - Retrieve an environment variable with a fallback
func (*EnvironmentVariable) Bool ¶
func (e *EnvironmentVariable) Bool() (bool, error)
func (*EnvironmentVariable) Int ¶
func (e *EnvironmentVariable) Int() (int, error)
func (*EnvironmentVariable) String ¶
func (e *EnvironmentVariable) String() string
Click to show internal directories.
Click to hide internal directories.