Documentation ¶
Index ¶
- Constants
- Variables
- func GetVpnScheme(rawUri string) string
- func HTTPTest()
- func HandleQuery(rawUri string) (result string)
- func ParseRawUri(rawUri string) (result string)
- func SocksTest()
- func TrojanTest()
- func VlessTest()
- func VmessTest()
- type ParserHTTP
- type ParserSS
- type ParserSocks
- type ParserTrojan
- type ParserVless
- type ParserVmess
- type ParserWireguard
- type Peer
- type StreamField
Constants ¶
Variables ¶
View Source
var SSMethod map[string]struct{} = map[string]struct{}{
"2022-blake3-aes-128-gcm": {},
"2022-blake3-aes-256-gcm": {},
"2022-blake3-chacha20-poly1305": {},
"none": {},
"aes-128-gcm": {},
"aes-192-gcm": {},
"aes-256-gcm": {},
"chacha20-ietf-poly1305": {},
"xchacha20-ietf-poly1305": {},
"aes-128-ctr": {},
"aes-192-ctr": {},
"aes-256-ctr": {},
"aes-128-cfb": {},
"aes-192-cfb": {},
"aes-256-cfb": {},
"rc4-md5": {},
"chacha20-ietf": {},
"xchacha20": {},
}
Functions ¶
func GetVpnScheme ¶
func HandleQuery ¶
func ParseRawUri ¶
func TrojanTest ¶
func TrojanTest()
Types ¶
type ParserHTTP ¶
type ParserHTTP struct { Address string Port int User string Pass string *StreamField }
func (*ParserHTTP) GetAddr ¶
func (that *ParserHTTP) GetAddr() string
func (*ParserHTTP) GetPort ¶
func (that *ParserHTTP) GetPort() int
func (*ParserHTTP) Parse ¶
func (that *ParserHTTP) Parse(rawUri string)
func (*ParserHTTP) Show ¶
func (that *ParserHTTP) Show()
type ParserSS ¶
type ParserSocks ¶
type ParserSocks struct { Address string Port int User string Pass string *StreamField }
func (*ParserSocks) GetAddr ¶
func (that *ParserSocks) GetAddr() string
func (*ParserSocks) GetPort ¶
func (that *ParserSocks) GetPort() int
func (*ParserSocks) Parse ¶
func (that *ParserSocks) Parse(rawUri string)
func (*ParserSocks) Show ¶
func (that *ParserSocks) Show()
type ParserTrojan ¶
type ParserTrojan struct { Address string Port int Password string *StreamField }
func (*ParserTrojan) GetAddr ¶
func (that *ParserTrojan) GetAddr() string
func (*ParserTrojan) GetPort ¶
func (that *ParserTrojan) GetPort() int
func (*ParserTrojan) Parse ¶
func (that *ParserTrojan) Parse(rawUri string)
func (*ParserTrojan) Show ¶
func (that *ParserTrojan) Show()
type ParserVless ¶
type ParserVless struct { Address string Port int UUID string Encryption string Flow string *StreamField }
func (*ParserVless) GetAddr ¶
func (that *ParserVless) GetAddr() string
func (*ParserVless) GetPort ¶
func (that *ParserVless) GetPort() int
func (*ParserVless) Parse ¶
func (that *ParserVless) Parse(rawUri string)
func (*ParserVless) Show ¶
func (that *ParserVless) Show()
type ParserVmess ¶
type ParserVmess struct { Address string Port int UUID string Security string AID string Nation string Path string PS string ServerPort string SkipCertVerify bool TestName string V string *StreamField }
func (*ParserVmess) GetAddr ¶
func (that *ParserVmess) GetAddr() string
func (*ParserVmess) GetPort ¶
func (that *ParserVmess) GetPort() int
func (*ParserVmess) Parse ¶
func (that *ParserVmess) Parse(rawUri string)
func (*ParserVmess) Show ¶
func (that *ParserVmess) Show()
type ParserWireguard ¶
type ParserWireguard struct { SecretKey string `json:"secretKey"` Address []string `json:"address,omitempty"` Peers []Peer `json:"peers"` NoKernelTun bool `json:"noKernelTun,omitempty"` MTU int `json:"mtu,omitempty"` Reserved []int `json:"reserved,omitempty"` Workers int `json:"workers,omitempty"` DomainStrategy string `json:"domainStrategy,omitempty"` *StreamField }
func (*ParserWireguard) GetAddr ¶
func (that *ParserWireguard) GetAddr() string
func (*ParserWireguard) GetPort ¶
func (that *ParserWireguard) GetPort() int
func (*ParserWireguard) Parse ¶
func (that *ParserWireguard) Parse(rawUri string)
func (*ParserWireguard) Show ¶
func (that *ParserWireguard) Show()
type StreamField ¶
type StreamField struct { Network string StreamSecurity string Path string Host string TCPHeaderType string GRPCServiceName string GRPCMultiMode string ServerName string TLSALPN string TLSAllowInsecure string Fingerprint string RealityShortId string RealitySpiderX string RealityPublicKey string PacketEncoding string }
Click to show internal directories.
Click to hide internal directories.