env

package
v0.0.0-...-88b6b2c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 8

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

Jump to

Keyboard shortcuts

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