Documentation ¶
Overview ¶
Package env handles environment variable.
Index ¶
Constants ¶
View Source
const ( // Mode indicates if this wallhack instance shall be run in "server" or "client" mode. Mode = "WALLHACK_MODE" // Certificate wallhack uses to authenticate against its peer. This is not a file name but the certificate itself. Certificate = "WALLHACK_CERTIFICATE" // Key wallhack uses to encrypt traffic to its peer. This is not a file name but the key itself. Key = "WALLHACK_KEY" // CertificateAuthority wallhack uses to authenticate its peer. This is not a file name but the certificate itself. CertificateAuthority = "WALLHACK_CA" // ServerAddr is the address a client shall connect to. ServerAddr = "WALLHACK_SERVER" )
Variables ¶
This section is empty.
Functions ¶
func CreateTLSConfig ¶
CreateTLSConfig using environment variable names defined above.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.