envx

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Local = "local"
	Dev   = "dev"
	Prod  = "prod"
)

Variables

View Source
var (
	PKG_HTTPX_BCURL          = ValueByEnv("PKG_HTTPX_BCURL", "true").Bool()
	PKG_HTTPX_ENGRESS        = ValueByEnv("PKG_HTTPX_ENGRESS", "").String()
	PKG_HTTPX_ENGRESS_IGNORE = ValueByEnv("PKG_HTTPX_ENGRESS_IGNORE", "").String()
	PKG_LOGX_LEVEL, _        = logrus.ParseLevel(ValueByEnv("PKG_LOGX_LEVEL", "debug").String())
)

Functions

This section is empty.

Types

type Value added in v1.0.1

type Value string

func ValueByEnv added in v1.0.0

func ValueByEnv(env, def string) Value

func (Value) Bool added in v1.0.1

func (v Value) Bool() bool

func (Value) Bytes added in v1.0.1

func (v Value) Bytes() []byte

func (Value) Duration added in v1.0.1

func (v Value) Duration() time.Duration

func (Value) Int added in v1.0.1

func (v Value) Int() int

func (Value) String added in v1.0.1

func (v Value) String() string

Jump to

Keyboard shortcuts

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