Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type HTTPSOCKS ¶
type HTTPSOCKS struct {
Host string `json:"host"`
Port uint16 `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
SystemProxy bool `json:"system-proxy"`
}
func (*HTTPSOCKS) ToHTTPSOCKSAuthInfo ¶ added in v0.2.1
func (httpSOCKS *HTTPSOCKS) ToHTTPSOCKSAuthInfo() *HTTPSOCKSAuthInfo
func (*HTTPSOCKS) UnmarshalJSON ¶ added in v0.2.0
type HTTPSOCKSAuthInfo ¶ added in v0.2.1
func (*HTTPSOCKSAuthInfo) IsEmpty ¶ added in v0.2.1
func (authInfo *HTTPSOCKSAuthInfo) IsEmpty() bool
func (*HTTPSOCKSAuthInfo) NotEqual ¶ added in v0.2.1
func (authInfo *HTTPSOCKSAuthInfo) NotEqual(anotherAuthInfo *HTTPSOCKSAuthInfo) bool
func (*HTTPSOCKSAuthInfo) NotEqual2 ¶ added in v0.2.1
func (authInfo *HTTPSOCKSAuthInfo) NotEqual2(username, password string) bool
type HexPassword ¶ added in v0.2.2
func (*HexPassword) UnmarshalJSON ¶ added in v0.2.2
func (pw *HexPassword) UnmarshalJSON(data []byte) error
type Hg ¶
type Hg struct {
Host string `json:"host"`
Password HexPassword `json:"password"`
TCPPort *uint16 `json:"tcp-port"`
TLSPort uint16 `json:"tls-port"`
TLSCertKeyPair *TLSCertKeyPair `json:"tls-cert-key-pair"`
TLSBadAuthFallbackSiteDir string `json:"tls-bad-auth-fallback-site-dir"`
QUICPort uint16 `json:"quic-port"`
}
func (*Hg) UnmarshalJSON ¶
type Misc ¶
type Misc struct {
HgBinaryAutoUpdate bool `json:"hg-binary-auto-update"`
RulesFileAutoUpdate bool `json:"rules-file-auto-update"`
TLSKeyLog bool `json:"tls-key-log"`
VerboseLog bool `json:"verbose-log"`
Profiling bool `json:"profiling"`
ProfilingPort uint16 `json:"profiling-port"`
}
func (*Misc) UnmarshalJSON ¶ added in v0.2.1
type ProxyNode ¶
type ProxyNode struct {
Host string `json:"host"`
Password HexPassword `json:"password"`
TCPPort *uint16 `json:"tcp-port"`
TLSPort uint16 `json:"tls-port"`
TLSCustomCertFile string `json:"tls-cert"`
QUICPort uint16 `json:"quic-port"`
}
func (*ProxyNode) UnmarshalJSON ¶
type TCPTransport ¶ added in v0.3.0
type TCPTransport string
const ( ShadowsocksTransport TCPTransport = "shadowsocks" ShadowsocksTransportAlias TCPTransport = "ss" TrojanTransport TCPTransport = "trojan" TrojanTransportAlias TCPTransport = "tr" SunnyQUICTransport TCPTransport = "sunnyquic" SunnyQUICTransportAlias TCPTransport = "sq" )
type TLSCertKeyPair ¶
func (*TLSCertKeyPair) UnmarshalJSON ¶
func (pair *TLSCertKeyPair) UnmarshalJSON(data []byte) error
type Transport ¶ added in v0.3.0
type Transport struct {
TCP TCPTransport `json:"tcp"`
// UDP is not used yet; it will be supported later.
UDP string `json:"udp"`
}
Click to show internal directories.
Click to hide internal directories.