conf

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWorkDir = filepath.Join(GetHomeDir(), ".gvc", "proxy_files")

Functions

func GetHomeDir added in v1.1.0

func GetHomeDir() (homeDir string)

Types

type Conf

type Conf struct {
	FetcherUrl        string      `json:"fetcher_url"`
	WorkDir           string      `json:"work_dir"`
	RawProxyFile      string      `json:"raw_file"`
	ProxyFile         string      `json:"proxy_file"`
	PortRange         *VPortRange `json:"port_range"`
	Port              int         `json:"port"`
	TestUrl           string      `json:"test_url"`
	SwitchyOmegaUrl   string      `json:"omega_url"`
	GeoInfoUrl        string      `json:"geo_info_url"`
	Timeout           int         `json:"timeout"`
	VerifierCron      string      `json:"verifier_cron"`
	KeeperCron        string      `json:"keeper_cron"`
	StorageSqlitePath string      `json:"storage_sqlite_path"`
	StorageExportPath string      `json:"storage_export_path"`
	SockFileDir       string      `json:"sock_file_dir"`
	XrayErrorLogFile  string      `json:"xray_error_log_file"`
	XtrayLogFile      string      `json:"xtray_log_file"`
}

func NewConf

func NewConf() (conf *Conf)

type VPortRange

type VPortRange struct {
	Start int
	End   int
}

Verifier port range

Jump to

Keyboard shortcuts

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