config

package
v0.0.0-...-ebd5e3c Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VDNS_WORKING_DIR_NAME = ".vdns"
	VDNS_LOGS_DIR_NAME    = "logs"
	VDNS_CONFIG_FILE_NAME = "config.json"
)
View Source
const (
	VDNS_WORKING_PATH_ENV = "vdns_working_path"
	VDNS_LOGS_PATH_ENV    = "vdns_logs_path"
	VDNS_CONFIG_PATH_ENV  = "vdns_config_path"
)

Variables

This section is empty.

Functions

func GetConfigPath

func GetConfigPath() (string, error)

func GetLogPath

func GetLogPath() (string, error)

func GetWorkingPath

func GetWorkingPath() (string, error)

func InitWorking

func InitWorking()

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}
var VConfig Config

type Env

type Env struct {
	// contains filtered or unexported fields
}

type VLogConfig

type VLogConfig struct {
	Level         string
	Dir           string
	Compress      bool
	ReserveDay    int
	LogFilePrefix string
}

Jump to

Keyboard shortcuts

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