config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel          string `yaml:"loglevel" env:"LOG_LEVEL" env-description:"application log level"`
	Listen            string `yaml:"listen" env:"LISTEN" env-default:"0.0.0.0:8081" env-description:"GRPC server listen address (path or IP:PORT)"` //nolint
	WgExecutable      string `yaml:"wg" env:"WG_EXE" env-default:"wg" env-description:"wireguard executable"`
	WgQuickExecutable string `yaml:"wgquick" env:"WGQUICK_EXE" env-default:"wg-quick" env-description:"wg-quick wrapper"`
}

func ReadConfig

func ReadConfig() *Config

ReadConfig reads configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳