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" validate:"ip|hostname_rfc1123"` Port uint16 `json:"port" validate:"gte=0,lte=65536"` Username string `json:"username"` Password string `json:"password"` SystemProxy bool `json:"system-proxy"` }
func (*HTTPSOCKS) UnmarshalJSON ¶ added in v0.2.0
type Hg ¶
type Hg struct { Host string `json:"host" validate:"ip|hostname_rfc1123"` Password Password `json:"password" validate:"required"` TLSPort int `json:"tls-port" validate:"gte=0,lte=65536"` TLSCertKeyPair *TLSCertKeyPair `json:"tls-cert-key-pair"` TLSBadAuthFallbackSiteDir string `json:"tls-bad-auth-fallback-site-dir"` }
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 int `json:"profiling-port" validate:"gte=0,lte=65536"` }
type Password ¶ added in v0.1.1
func (*Password) UnmarshalJSON ¶ added in v0.1.1
type ProxyNode ¶
type ProxyNode struct { Host string `json:"host" validate:"ip|hostname_rfc1123"` Password Password `json:"password" validate:"required"` TLSPort int `json:"tls-port" validate:"gte=0,lte=65536"` TLSCertFile string `json:"tls-cert"` }
func (*ProxyNode) UnmarshalJSON ¶
type Rules ¶ added in v0.1.1
type Rules []Rule
func (Rules) CopyWithNewRulesData ¶ added in v0.1.1
func (Rules) SetupRulesData ¶ added in v0.1.1
type TLSCertKeyPair ¶
func (*TLSCertKeyPair) UnmarshalJSON ¶
func (pair *TLSCertKeyPair) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.