Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialSS ¶ added in v0.0.5
func DialSS(u *url.URL, o *proxyclient.Options) (http.RoundTripper, error)
func ProxySS ¶
func ProxySS(u *url.URL, o *proxyclient.Options) (http.RoundTripper, error)
ProxySS creates a RoundTripper for Shadowsocks proxy
Types ¶
type Config ¶
type Config struct {
Server string
Port int
Method string
Password string
Plugin string
PluginOpts string
Name string
// contains filtered or unexported fields
}
Config holds Shadowsocks URL parameters
type Server ¶
type Server struct {
Method string
Password string
ServerAddr string
Listener net.Listener
SocksPort int
Cancel context.CancelFunc
}
Server represents a running Shadowsocks server
type URL ¶ added in v0.0.3
type URL struct {
Config *Config
}
func ParseSSURL ¶ added in v0.0.3
ParseSSURL parses a Shadowsocks URL
Click to show internal directories.
Click to hide internal directories.