# Functions
No description provided by the author
No description provided by the author
DialContext allows to call DialContext using net.Addr.
DialContextTCP establish TCP connection with address.
DialContextUnix establish connection with passed unix socket.
DialTCP establish TCP connection with address and set default timeout.
DialTCPInsecure establish TCP connection with address in insecure mode and set default timeout.
DialUnix establish connection with passed unix socket and set default timeout.
DialUnixInsecure establish connection with passed unix socket in insecure mode and set default timeout.
GetConfig returns instance of DialConfig.
GetCurrentNS discovers the namespace of a running process and returns in a string.
GetCurrentPodNameFromHostname returns pod name a container is running in Note: Pod name is read from `/etc/hostname`.
InitConfig allows init global DialConfig, should be called before any GetConfig(), otherwise do nothing.
IsInsecure checks environment variable INSECURE.
NewAddr returns new net.Addr with network and address.
No description provided by the author
NewServer checks DialConfig and calls grpc.NewServer with certain grpc.ServerOption.
No description provided by the author
OpenTracingDialOptions returns array of grpc.DialOption that should be passed to grpc.Dial to enable opentracing.
No description provided by the author
ParseKVStringToMap parses the input string.
ReadEnvBool reads environment variable and treat it as bool.
SocketCleanup check for the presence of a stale socket and if it finds it, removes it.
WaitForPortAvailable waits while the port will is available.
# Constants
InsecureEnv environment variable, if "true" NSM will work in insecure mode.
MaxSymLink is maximum length of Symbolic Link.
# Structs
DialConfig represents configuration of grpc connection, one per instance.
No description provided by the author
# Type aliases
Unix socket file path.