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)
ParseShadowsocks. parse shadowsocks protocol url string. begin with: ss://
type StreamConfig ¶
type StreamConfig struct {
Protocol, Security, Path string
}
Click to show internal directories.
Click to hide internal directories.