xp

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChecker

func RunChecker(config CheckerConfig)

Types

type CheckerConfig

type CheckerConfig struct {
	ConfigFile string
	Download   bool
	Limit      int
	Threads    int
	Timeout    float64
	AddSource  string
	TestURL    string
	NoColor    bool
	OutputFile string
	RegionSort bool
	RegionDir  string

	BatchSize int

	SkipUpdateCheck bool
}

type GeoInfo

type GeoInfo struct {
	Country     string `json:"country"`
	City        string `json:"city"`
	ISP         string `json:"isp"`
	Org         string `json:"org"`
	CountryCode string `json:"countryCode"`
	Status      string `json:"status"`
	Message     string `json:"message"`
}

type SourceConfig

type SourceConfig struct {
	Sources []string `json:"sources"`
}

type TestResult

type TestResult struct {
	Index      int
	Config     string
	Alive      bool
	Latency    time.Duration
	ErrorMsg   string
	Server     string
	Protocol   string
	Network    string
	Country    string
	City       string
	ISP        string
	StatusCode int
	PublicIP   string
}

type VMessConfig

type VMessConfig struct {
	V           string `json:"v"`
	Ps          string `json:"ps"`
	Add         string `json:"add"`
	Port        string `json:"port"`
	ID          string `json:"id"`
	Aid         string `json:"aid"`
	Net         string `json:"net"`
	Type        string `json:"type"`
	Host        string `json:"host"`
	Path        string `json:"path"`
	TLS         string `json:"tls"`
	Sni         string `json:"sni"`
	Alpn        string `json:"alpn"`
	Fingerprint string `json:"fp"`
	Security    string `json:"security"`
}

Jump to

Keyboard shortcuts

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