outbound

package
v0.0.0-...-108e96f Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonProxyInfo

type CommonProxyInfo struct {
	// Username auth for http/https/socks
	Username string `json:"username"`
	// Password auth for http/https/socks
	Password string `json:"password"`
}

type HTTPSProxyInfo

type HTTPSProxyInfo struct {
	CommonProxyInfo
	// TLSInsecureSkipVerify  https only
	TLSInsecureSkipVerify bool `json:"insecureskipverify"`
	// TLSDomain https only
	TLSDomain string `json:"domain"`
}

type Outbound

type Outbound struct {
	// Address outbound network address, in Host:Port format
	Address string `json:"address"`
	// Type protocol type, http/https/socks4/socks4a/socks5/shadowsocks are supported
	Type string `json:"type"`
	// Timeout connecting timeout
	Timeout time.Duration `json:"timeout"`
	// Local == true if this configuration item is from local config file, otherwise it's from remote console server's pushing
	Local bool `json:"local"`
	HTTPSProxyInfo
	SSRInfo
}

Outbound configuration struct that represents the outbound

func (*Outbound) UnmarshalJSON

func (o *Outbound) UnmarshalJSON(b []byte) error

UnmarshalJSON override the json unmarshal method, so that some fields could be initialized correctly

type SSInfo

type SSInfo struct {
	// Key shadowsocks only key used to encrypting
	Key string `json:"key"`
	// Method shadowsocks encrypting algorithm, eg. rc4-md5, aes-256-cfb etc.
	Method string `json:"method"`
	// TCPFastOpen == true if this backend supports TCP Fast Open
	TCPFastOpen bool `json:"tcpfastopen"`
}

type SSRInfo

type SSRInfo struct {
	SSInfo
	// Protocol shadowsocks only obfs protocol
	Protocol string `json:"protocol"`
	// ProtocolParam shadowsocks only obfs protocol parameter
	ProtocolParam string `json:"pparam"`
	// Obfs shadowsocks only obfs
	Obfs string `json:"obfs"`
	// ObfsParam shadowsocks only obfs parameter
	ObfsParam string `json:"oparam"`
}

Directories

Path Synopsis
ss
ssr

Jump to

Keyboard shortcuts

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