env

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeName          = "NODE_NAME"
	HostIP            = "HOST_IP"
	PodName           = "POD_NAME"
	PodNamespace      = "POD_NAMESPACE"
	PodIP             = "POD_IP"
	PodServiceAccount = "POD_SERVICE_ACCOUNT"
)
View Source
const (
	LllidanProxyType              = "LLLIDAN_PROXY_TYPE"
	LllidanProxyPodUploadInterval = "LLLIDAN_PROXY_POD_UPLOAD_INTERNAL"
)
View Source
const (
	LllidanWebsocketPrintWriteData   = "LLLIDAN_WEBSOCKET_PRINT_WRITE"
	LllidanWebsocketPrintReadData    = "LLLIDAN_WEBSOCKET_PRINT_READ"
	LllidanWebsocketKeepAliveTimeout = "LLLIDAN_WEBSOCKET_KEEPALIVE_TIMEOUT"
)
View Source
const (
	Show   = true
	Hidden = false
)
View Source
const (
	LllidanGatewayPProfDebug = "LLLIDAN_GATEWAY_PPROF_DEBUG"
)

Variables

This section is empty.

Functions

func GetGatewayPProfDebug

func GetGatewayPProfDebug() bool

GetGatewayPProfDebug determines that whether the gateway will open pprof routers

func GetHostName

func GetHostName() (string, error)

GetHostName gets the hostname of host machine

func GetHostNameMustSpecified

func GetHostNameMustSpecified() string

GetHostNameMustSpecified will fatal if the hostname hasn't been specified

func GetPodIP

func GetPodIP() (string, error)

GetPodIP returns the ip which has been allocated to the pod in the k8s cluster

func GetPodNamespace

func GetPodNamespace() (string, error)

GetPodNamespace returns the namespace which has been allocated to the pod in the k8s cluster

func GetPodNamespaceMustSpecified

func GetPodNamespaceMustSpecified() string

GetPodNamespaceMustSpecified will fatal if the namespace hasn't been specified

func GetProxyPodUploadInterval

func GetProxyPodUploadInterval(defaultValue int64) int64

GetProxyPodUploadInterval returns the uploading interval of the pod statistic

func GetProxyType

func GetProxyType() (string, error)

GetProxyType returns the run mode of the proxy

func GetWebsocketKeepaliveTimeout

func GetWebsocketKeepaliveTimeout(defaultValue int64) int64

GetWebsocketKeepaliveTimeout

func GetWebsocketRead

func GetWebsocketRead() bool

GetWebsocketRead returns the debug mode of the websocket conns

func GetWebsocketWrite

func GetWebsocketWrite() bool

GetWebsocketWrite returns the debug mode of the websocket conns

Types

This section is empty.

Jump to

Keyboard shortcuts

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