Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthMethodNoAuth = "noauth" AuthMethodUserPass = "password" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SocksConfig ¶
type SocksConfig struct { AuthMethod string `json:"auth"` Username string `json:"user"` Password string `json:"pass"` }
func Load ¶
func Load(rawConfig []byte) (SocksConfig, error)
func (SocksConfig) IsNoAuth ¶
func (config SocksConfig) IsNoAuth() bool
func (SocksConfig) IsPassword ¶
func (config SocksConfig) IsPassword() bool
Click to show internal directories.
Click to hide internal directories.