xray

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

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 TestSS

func TestSS()

func TestTrojan

func TestTrojan()

func TestVless

func TestVless()

func TestVmess

func TestVmess()

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) Addr

func (that *TrojanOut) Addr() string

func (*TrojanOut) GetOutboundStr

func (that *TrojanOut) GetOutboundStr() string

func (*TrojanOut) GetRawUri

func (that *TrojanOut) GetRawUri() string

func (*TrojanOut) Parse

func (that *TrojanOut) Parse(rawUri string)

func (*TrojanOut) Port

func (that *TrojanOut) Port() int

func (*TrojanOut) Scheme

func (that *TrojanOut) Scheme() string

type VlessOut

type VlessOut struct {
	RawUri string
	Parser *parser.ParserVless
	// contains filtered or unexported fields
}

func (*VlessOut) Addr

func (that *VlessOut) Addr() string

func (*VlessOut) GetOutboundStr

func (that *VlessOut) GetOutboundStr() string

func (*VlessOut) GetRawUri

func (that *VlessOut) GetRawUri() string

func (*VlessOut) Parse

func (that *VlessOut) Parse(rawUri string)

func (*VlessOut) Port

func (that *VlessOut) Port() int

func (*VlessOut) Scheme

func (that *VlessOut) Scheme() string

type VmessOut

type VmessOut struct {
	RawUri string
	Parser *parser.ParserVmess
	// contains filtered or unexported fields
}

func (*VmessOut) Addr

func (that *VmessOut) Addr() string

func (*VmessOut) GetOutboundStr

func (that *VmessOut) GetOutboundStr() string

func (*VmessOut) GetRawUri

func (that *VmessOut) GetRawUri() string

func (*VmessOut) Parse

func (that *VmessOut) Parse(rawUri string)

func (*VmessOut) Port

func (that *VmessOut) Port() int

func (*VmessOut) Scheme

func (that *VmessOut) Scheme() string

Jump to

Keyboard shortcuts

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