Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthMethodNoAuth = "noauth" AuthMethodUserPass = "password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPAddress ¶
func (*IPAddress) UnmarshalJSON ¶
type SocksAccount ¶
type SocksAccountMap ¶
func (*SocksAccountMap) HasAccount ¶
func (this *SocksAccountMap) HasAccount(user, pass string) bool
func (*SocksAccountMap) UnmarshalJSON ¶
func (this *SocksAccountMap) UnmarshalJSON(data []byte) error
type SocksConfig ¶
type SocksConfig struct { AuthMethod string `json:"auth"` Accounts SocksAccountMap `json:"accounts"` UDPEnabled bool `json:"udp"` HostIP IPAddress `json:"ip"` }
func (*SocksConfig) HasAccount ¶
func (sc *SocksConfig) HasAccount(user, pass string) bool
func (*SocksConfig) IP ¶
func (sc *SocksConfig) IP() net.IP
func (*SocksConfig) IsNoAuth ¶
func (sc *SocksConfig) IsNoAuth() bool
func (*SocksConfig) IsPassword ¶
func (sc *SocksConfig) IsPassword() bool
Click to show internal directories.
Click to hide internal directories.