gen

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = &CmdConfig{}

Functions

func NewGenCmdRun

func NewGenCmdRun() func(cmd *cobra.Command, args []string)

Types

type CmdConfig

type CmdConfig struct {
	Url                string // subscription link
	OutputFile         string // xray-core's configuration path
	DetectLatency      bool   // detect latency to select the best server
	DetectUrl          string // detect latency url
	DetectThreadNumber int    // detect latency threads number

	XrayCorePath  string // xray-core path, for some case such as: speed test
	XraySocksPort int    // xray-core listen socks port
	XrayHttpPort  int    // xray-core listen http port
}

CmdConfig config for command: xraysub gen

type Link struct {
	SsCfg     *protocol.ShadowsocksConfig
	VmessCfg  *protocol.VmessConfig
	TrojanCfg *protocol.TrojanConfig
}

Jump to

Keyboard shortcuts

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