config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Port      = flag.Int("p", 80, "specify server port,such as : \"80\"")
	TLSPort   = flag.Int("sp", 443, "specify server tls port,such as : \"443\"")
	CaCrtFile = flag.String("ca", "./ca.crt", "specify client cert,such as : \"ca.crt\"")
	CertFile  = flag.String("c", "./server.crt", "specify server cert,such as : \"server.crt\"")
	KeyFile   = flag.String("k", "./server.key", "specify server cert key ,such as : \"server.key\"")
	LogFile   = flag.String("l", "", "specify log file ,such as : \"/var/log/KayProxy.log\"")
	Mode      = flag.Int("m", 1, "specify running mode(1:hosts) ,such as : \"1\"")
	V         = flag.Bool("v", false, "display version info")
)

Functions

func ValidParams

func ValidParams() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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