Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ShadowSocksMethodOnlyBySing = []string{
"aes-256-cfb",
"aes-128-ctr",
"aes-192-ctr",
"aes-256-ctr",
"aes-128-cfb",
"aes-192-cfb",
"rc4-md5",
"rc4",
"chacha20-ietf",
"xchacha20",
}
Functions ¶
func EnableSingBox ¶ added in v0.0.6
Types ¶
type ClientType ¶
type ClientType string
const ( XrayCore ClientType = "xray" SingBox ClientType = "sing" )
type IOutbound ¶
type IOutbound interface {
Parse(string)
Addr() string
Port() int
Scheme() string
GetOutboundStr() string
GetRawUri() string
}
func GetOutbound ¶
func GetOutbound(clientType ClientType, rawUri string) (result IOutbound)
type ProxyItem ¶ added in v0.0.2
type ProxyItem struct {
Address string `json:"address"`
Port int `json:"port"`
RTT int64 `json:"rtt"`
RawUri string `json:"raw_uri"`
Location string `json:"location"`
Outbound string `json:"outbound"`
OutboundType ClientType `json:"outbound_type"`
}
func NewItemByEncryptedRawUri ¶ added in v0.0.2
func (*ProxyItem) GetOutbound ¶ added in v0.0.2
func (*ProxyItem) GetOutboundType ¶ added in v0.0.2
func (that *ProxyItem) GetOutboundType() ClientType
type Result ¶ added in v0.0.4
type Result struct {
Vmess []*ProxyItem `json:"Vmess"`
Vless []*ProxyItem `json:"Vless"`
ShadowSocks []*ProxyItem `json:"Shadowsocks"`
ShadowSocksR []*ProxyItem `json:"ShadowsocksR"`
Trojan []*ProxyItem `json:"Trojan"`
UpdateAt string `json:"UpdateAt"`
VmessTotal int `json:"VmessTotal"`
VlessTotal int `json:"VlessTotal"`
TrojanTotal int `json:"TrojanTotal"`
SSTotal int `json:"SSTotal"`
SSRTotal int `json:"SSRTotal"`
// contains filtered or unexported fields
}
func (*Result) GetTotalList ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.