Documentation ¶
Index ¶
- Constants
- func GetGatewayPProfDebug() bool
- func GetHostName() (string, error)
- func GetHostNameMustSpecified() string
- func GetPodIP() (string, error)
- func GetPodNamespace() (string, error)
- func GetPodNamespaceMustSpecified() string
- func GetProxyPodUploadInterval(defaultValue int64) int64
- func GetProxyType() (string, error)
- func GetWebsocketKeepaliveTimeout(defaultValue int64) int64
- func GetWebsocketRead() bool
- func GetWebsocketWrite() bool
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 GetHostNameMustSpecified ¶
func GetHostNameMustSpecified() string
GetHostNameMustSpecified will fatal if the hostname hasn't been specified
func GetPodNamespace ¶
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 ¶
GetProxyPodUploadInterval returns the uploading interval of the pod statistic
func GetProxyType ¶
GetProxyType returns the run mode of the proxy
func GetWebsocketKeepaliveTimeout ¶
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.
Click to show internal directories.
Click to hide internal directories.