ss

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(proxyURL string)

Close shuts down a running Shadowsocks client

func DialSS added in v0.0.5

func DialSS(u *url.URL, o *proxyclient.Options) (http.RoundTripper, error)

func StartSS

func StartSS(u *url.URL, port int) (int, error)

StartSS starts a Shadowsocks client and returns local SOCKS port

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

func ParseSSURL(u *url.URL) (*URL, error)

ParseSSURL parses a Shadowsocks URL

func (*URL) Host added in v0.0.3

func (v *URL) Host() string

func (*URL) Name added in v0.0.10

func (v *URL) Name() string

func (*URL) Opaque added in v0.0.4

func (v *URL) Opaque() string

func (*URL) Password added in v0.0.4

func (v *URL) Password() string

func (*URL) Port added in v0.0.3

func (v *URL) Port() string

func (*URL) Protocol added in v0.0.4

func (v *URL) Protocol() string

func (*URL) Raw added in v0.0.3

func (v *URL) Raw() *url.URL

func (*URL) User added in v0.0.4

func (v *URL) User() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL