Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Shadowsocks ¶
type Shadowsocks struct {
Name string `json:"name"`
Server string `json:"server"`
Port int `json:"port"`
Password string `json:"password"`
Cipher string `json:"cipher"`
Plugin Sip003 `json:"plugin"`
UDP bool `json:"udp"`
Protocol string `json:"protocol"`
}
func ParseSSURL ¶
func ParseSSURL(u string) (data *Shadowsocks, err error)
func (*Shadowsocks) Dialer ¶
func (s *Shadowsocks) Dialer(option *dialer.GlobalOption, nextDialer netproxy.Dialer) (netproxy.Dialer, *dialer.Property, error)
func (*Shadowsocks) ExportToURL ¶
func (s *Shadowsocks) ExportToURL() string
type Sip003 ¶
type Sip003 struct {
Name string `json:"name"`
Opts Sip003Opts `json:"opts"`
}
func ParseSip003 ¶
type Sip003Opts ¶
type Sip003Opts struct {
Tls string `json:"tls"` // for v2ray-plugin
Obfs string `json:"obfs"`
Host string `json:"host"`
Path string `json:"uri"`
}
func ParseSip003Opts ¶
func ParseSip003Opts(opts string) Sip003Opts
Click to show internal directories.
Click to hide internal directories.