conf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

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"`
}

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