Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TransportProtocolList []string = []string{
"tcp",
"websocket",
"grpc",
}
Functions ¶
func Base64StdDecode ¶
封装base64.StdEncoding进行解码,加入了长度补全,换行删除。当error时,返回输入和err
func Base64URLDecode ¶
封装base64.URLEncoding进行解码,加入了长度补全,换行删除。当error时,返回输入和err
func ParseSubscribeByRaw ¶
Types ¶
type Shadowsocks ¶
type Shadowsocks struct {
TransportStream StreamConfig
Address, Password, Cipher, Plugin string
Title string
Port int
}
"aes-256-gcm", "aes-128-gcm", "chacha20-poly1305", "chacha20-ietf-poly1305", "plain", "none"
func ParseShadowsocks ¶
func ParseShadowsocks(u string) (ss Shadowsocks, err error)
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTozNlpDSGVhYlVTZktqZlFFdko0SERW@185.242.86.156:54170#%E4%BF%84%E7%BD%97%E6%96%AF+V2CROSS.COM
type StreamConfig ¶
type StreamConfig struct {
Protocol, Security, Path string
}
func NewStreamConfig ¶
func NewStreamConfig(proto string) *StreamConfig
Click to show internal directories.
Click to hide internal directories.