Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var XrayOut string = `{
"sendThrough": "0.0.0.0",
"protocol": "协议名称",
"tag": "标识",
"settings": %s,
"streamSettings": %s
}`
View Source
var XraySS string = `{
"servers": [
{
"address": "127.0.0.1",
"port": 1234,
"method": "加密方式",
"password": "密码"
}
]
}`
View Source
var XrayStream string = `{
"network": "tcp",
"security": "none"
}`
View Source
var XrayStreamGRPC string = `{
"serviceName": "",
"multiMode": false
}`
View Source
var XrayStreamHTTP string = `{
"host": [""],
"path": ""
}`
View Source
var XrayStreamReality string = `{
"shortId": "",
"fingerprint": "",
"serverName": "",
"publicKey": "",
"spiderX": ""
}`
View Source
var XrayStreamTCPHTTP string = `` /* 165-byte string literal not displayed */
View Source
var XrayStreamTCPNone string = `{
"header": {
"type": "none"
}
}`
View Source
var XrayStreamTLS string = `{
"serverName": "xray.com",
"allowInsecure": true
}`
View Source
var XrayStreamWebSocket string = `{
"path": "/",
"headers": {
"Host": "xray.com"
}
}`
View Source
var XrayTrojan string = `{
"servers": [
{
"address": "127.0.0.1",
"port": 1234,
"password": "password"
}
]
}`
View Source
var XrayVless string = `` /* 204-byte string literal not displayed */
View Source
var XrayVmessSettings string = `` /* 188-byte string literal not displayed */
Functions ¶
func GetPattern ¶
func GetPattern() string
func PrepareStreamString ¶
func PrepareStreamString(sf *parser.StreamField) string
func TestTrojan ¶
func TestTrojan()
Types ¶
type ShadowSocksOut ¶
type ShadowSocksOut struct { RawUri string Parser *parser.ParserSS // contains filtered or unexported fields }
func (*ShadowSocksOut) Addr ¶
func (that *ShadowSocksOut) Addr() string
func (*ShadowSocksOut) GetOutboundStr ¶
func (that *ShadowSocksOut) GetOutboundStr() string
func (*ShadowSocksOut) GetRawUri ¶
func (that *ShadowSocksOut) GetRawUri() string
func (*ShadowSocksOut) Parse ¶
func (that *ShadowSocksOut) Parse(rawUri string)
func (*ShadowSocksOut) Port ¶
func (that *ShadowSocksOut) Port() int
func (*ShadowSocksOut) Scheme ¶
func (that *ShadowSocksOut) Scheme() string
type TrojanOut ¶
type TrojanOut struct { RawUri string Parser *parser.ParserTrojan // contains filtered or unexported fields }
func (*TrojanOut) GetOutboundStr ¶
type VlessOut ¶
type VlessOut struct { RawUri string Parser *parser.ParserVless // contains filtered or unexported fields }
func (*VlessOut) GetOutboundStr ¶
type VmessOut ¶
type VmessOut struct { RawUri string Parser *parser.ParserVmess // contains filtered or unexported fields }
func (*VmessOut) GetOutboundStr ¶
Click to show internal directories.
Click to hide internal directories.