env

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

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

func CreateTLSConfig() (*tls.Config, error)

CreateTLSConfig using environment variable names defined above.

func Lookup

func Lookup(name string) (string, error)

Lookup the environment variable name and return an error if not found. Just a wrapper for os.Lookup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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