meta

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvGosUpstreamAddress = "GOS_UPSTREAM_ADDRESS"
	EnvGosDebug           = "GOS_DEBUG"
)

Key of Environmental Variables

Variables

This section is empty.

Functions

func GetGoBinaryPath

func GetGoBinaryPath() string

GetGoBinaryPath is used to get the GoBinaryPath currently configured

func GetLocalProxyListenAddr

func GetLocalProxyListenAddr() string

GetLocalProxyListenAddr is used to get the ProxyListenAddr currently configured

func LoadConfig

func LoadConfig(variables SystemVar)

LoadConfig is used to load variables info to system variables

func SetGoBinaryPath

func SetGoBinaryPath(path string)

SetGoBinaryPath is used to modify the location of go binary files

func SetUpstreamAddr added in v1.1.0

func SetUpstreamAddr(path string)

SetUpstreamAddr is used to modify the upstream address of gos

Types

type FmtFormatter added in v1.1.0

type FmtFormatter struct{}

FmtFormatter is used to print clean output

func (*FmtFormatter) Format added in v1.1.0

func (f *FmtFormatter) Format(entry *log.Entry) ([]byte, error)

Format implements the interface of logrus Formater

type SystemVar

type SystemVar struct {
	GoBinaryPath    string
	ProxyListenAddr string
	UpstreamAddr    string
}

SystemVar defines the structure of system variables

func GetConfig

func GetConfig() SystemVar

GetConfig is used to obtain the current config

Jump to

Keyboard shortcuts

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