client

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	RemoteAddr string `toml:"remote_addr"`
	RemotePort int    `toml:"remote_port"`
	Path       string `toml:"path"`

	MaxLinks int `toml:"max_links"`

	Token string

	SelfCA string `toml:"self_ca"`

	MonitorAddr string `toml:"monitor_addr"`
	MonitorPort int    `toml:"monitor_port"`

	Shadowsocks []Shadowsocks `toml:"ignore"`
	Socks       []Socks       `toml:"ignore"`
}

func New

func New(path string) (*Client, error)

type Shadowsocks

type Shadowsocks struct {
	ListenAddr string `toml:"listen_addr"`
	ListenPort int    `toml:"listen_port"`
	Key        string `toml:"key"`
}

type Socks

type Socks struct {
	ListenAddr string `toml:"listen_addr"`
	ListenPort int    `toml:"listen_port"`
}

Jump to

Keyboard shortcuts

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