Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonProxyInfo ¶
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 ¶
UnmarshalJSON override the json unmarshal method, so that some fields could be initialized correctly
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"` }
Click to show internal directories.
Click to hide internal directories.