json

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2015 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL