Documentation ¶
Index ¶
Constants ¶
View Source
const ( None = "" Vmess = "vmess" Shadowsocks = "ss" Trojan = "trojan" )
Variables ¶
View Source
var ErrWrongProtocol = errors.New("wrong protocol")
Functions ¶
This section is empty.
Types ¶
type ShadowsocksConfig ¶
type ShadowsocksConfig struct { Method string Password string Hostname string Port int Comment string }
func ParseShadowsocksUri ¶
func ParseShadowsocksUri(uri string) (*ShadowsocksConfig, error)
type TrojanConfig ¶ added in v0.2.3
func ParseTrojanUri ¶ added in v0.2.3
func ParseTrojanUri(uri string) (*TrojanConfig, error)
type VmessConfig ¶ added in v0.2.2
type VmessConfig struct { V string `json:"v"` Ps string `json:"ps"` Add string `json:"add"` Port json.Number `json:"port"` Id string `json:"id"` Aid json.Number `json:"aid"` Scy string `json:"scy"` Net string `json:"net"` Type string `json:"type"` Host string `json:"host"` Path string `json:"path"` Tls string `json:"tls"` Sni string `json:"sni"` }
func ParseVmessUri ¶ added in v0.2.2
func ParseVmessUri(uri string) (*VmessConfig, error)
Click to show internal directories.
Click to hide internal directories.