sing

package
v0.0.0-...-f887393 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SingGRPC string = `{
	"type": "grpc",
	"service_name": ""
}`
View Source
var SingHTTPHeaders string = `{
	"Host": []
}`
View Source
var SingHTTPandTCP string = `{
	"type": "http",
	"host": [],
	"path": ""
}`
View Source
var SingReality string = `{
	"enabled": false,
	"public_key": "",
	"short_id": ""
}`
View Source
var SingSS string = `` /* 169-byte string literal not displayed */
View Source
var SingSSR string = `` /* 159-byte string literal not displayed */
View Source
var SingTLS string = `{
	"enabled": true,
	"disable_sni": false,
	"server_name": "",
	"insecure": false,
  }`
View Source
var SingTrojan string = `` /* 130-byte string literal not displayed */
View Source
var SingVless string = `` /* 149-byte string literal not displayed */
View Source
var SingVmess string = `` /* 172-byte string literal not displayed */
View Source
var SingWebSocket string = `{
	"type": "ws",
	"path": ""
}`
View Source
var SingWebsocketHeaders string = `{
	"Host": ""
}`
View Source
var SingWireguard string = `` /* 393-byte string literal not displayed */
View Source
var SinguTLS string = `{
	"enabled": false,
	"fingerprint": ""
}`

Functions

func ParseSingBoxPathToURL

func ParseSingBoxPathToURL(pathStr string) (result *url.URL)

func PrepareStreamStr

func PrepareStreamStr(cnf *gjson.Json, sf *parser.StreamField) (result *gjson.Json)

func SetPathForSingBoxTransport

func SetPathForSingBoxTransport(pathStr string, j *gjson.Json)

func TestSS

func TestSS()

func TestSSR

func TestSSR()

func TestTrojan

func TestTrojan()

func TestVless

func TestVless()

func TestVmess

func TestVmess()

Types

type SShadowSocksOut

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

func (*SShadowSocksOut) Addr

func (that *SShadowSocksOut) Addr() string

func (*SShadowSocksOut) GetOutboundStr

func (that *SShadowSocksOut) GetOutboundStr() string

func (*SShadowSocksOut) GetRawUri

func (that *SShadowSocksOut) GetRawUri() string

func (*SShadowSocksOut) Parse

func (that *SShadowSocksOut) Parse(rawUri string)

func (*SShadowSocksOut) Port

func (that *SShadowSocksOut) Port() int

func (*SShadowSocksOut) Scheme

func (that *SShadowSocksOut) Scheme() string

type SShadowSocksROut

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

func (*SShadowSocksROut) Addr

func (that *SShadowSocksROut) Addr() string

func (*SShadowSocksROut) GetOutboundStr

func (that *SShadowSocksROut) GetOutboundStr() string

func (*SShadowSocksROut) GetRawUri

func (that *SShadowSocksROut) GetRawUri() string

func (*SShadowSocksROut) Parse

func (that *SShadowSocksROut) Parse(rawUri string)

func (*SShadowSocksROut) Port

func (that *SShadowSocksROut) Port() int

func (*SShadowSocksROut) Scheme

func (that *SShadowSocksROut) Scheme() string

type STrojanOut

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

func (*STrojanOut) Addr

func (that *STrojanOut) Addr() string

func (*STrojanOut) GetOutboundStr

func (that *STrojanOut) GetOutboundStr() string

func (*STrojanOut) GetRawUri

func (that *STrojanOut) GetRawUri() string

func (*STrojanOut) Parse

func (that *STrojanOut) Parse(rawUri string)

func (*STrojanOut) Port

func (that *STrojanOut) Port() int

func (*STrojanOut) Scheme

func (that *STrojanOut) Scheme() string

type SVlessOut

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

func (*SVlessOut) Addr

func (that *SVlessOut) Addr() string

func (*SVlessOut) GetOutboundStr

func (that *SVlessOut) GetOutboundStr() string

func (*SVlessOut) GetRawUri

func (that *SVlessOut) GetRawUri() string

func (*SVlessOut) Parse

func (that *SVlessOut) Parse(rawUri string)

func (*SVlessOut) Port

func (that *SVlessOut) Port() int

func (*SVlessOut) Scheme

func (that *SVlessOut) Scheme() string

type SVmessOut

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

func (*SVmessOut) Addr

func (that *SVmessOut) Addr() string

func (*SVmessOut) GetOutboundStr

func (that *SVmessOut) GetOutboundStr() string

func (*SVmessOut) GetRawUri

func (that *SVmessOut) GetRawUri() string

func (*SVmessOut) Parse

func (that *SVmessOut) Parse(rawUri string)

func (*SVmessOut) Port

func (that *SVmessOut) Port() int

func (*SVmessOut) Scheme

func (that *SVmessOut) Scheme() string

type SWireguardOut

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

func (*SWireguardOut) Addr

func (that *SWireguardOut) Addr() string

func (*SWireguardOut) GetOutboundStr

func (that *SWireguardOut) GetOutboundStr() string

func (*SWireguardOut) GetRawUri

func (that *SWireguardOut) GetRawUri() string

func (*SWireguardOut) Parse

func (that *SWireguardOut) Parse(rawUri string)

func (*SWireguardOut) Port

func (that *SWireguardOut) Port() int

func (*SWireguardOut) Scheme

func (that *SWireguardOut) Scheme() string

Jump to

Keyboard shortcuts

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