Documentation
¶
Index ¶
- Variables
- func DebugPrint(format string, a ...interface{})
- func DebugPrintN(level int, format string, a ...interface{})
- func HomePath() string
- func PathConvert(p string) string
- type BoringMachine
- func (bm *BoringMachine) DebugPrint(format string, a ...interface{})
- func (bm *BoringMachine) Dial(network string, address string) (net.Conn, error)
- func (bm *BoringMachine) DialDirect(network string, address string, timeout time.Duration) (net.Conn, error)
- func (bm *BoringMachine) DialTimeout(network string, address string, timeout time.Duration) (net.Conn, error)
- func (bm *BoringMachine) DialTunnel(network string, address string, timeout time.Duration) (net.Conn, error)
- func (bm *BoringMachine) DialTunnelHTTP(u *url.URL, paddr, addr string, timeout time.Duration) (net.Conn, error)
- func (bm *BoringMachine) DialTunnelSSH(u *url.URL, paddr, addr string, timeout time.Duration) (net.Conn, error)
- func (bm *BoringMachine) DialTunnelSocks5(u *url.URL, paddr, addr string, timeout time.Duration) (net.Conn, error)
- func (bm *BoringMachine) Initialize() error
- type ProxySettings
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugLevel int
DebugLevel todo
View Source
var (
ErrProxyNotConfigured = errors.New("Proxy is not configured correctly")
)
error
View Source
var IsDebugMode bool
IsDebugMode todo
Functions ¶
Types ¶
type BoringMachine ¶
type BoringMachine struct { Setting *ProxySettings // proxy url Debug func(msg string) }
BoringMachine todo
func (*BoringMachine) DebugPrint ¶
func (bm *BoringMachine) DebugPrint(format string, a ...interface{})
DebugPrint todo
func (*BoringMachine) DialDirect ¶
func (bm *BoringMachine) DialDirect(network string, address string, timeout time.Duration) (net.Conn, error)
DialDirect todo
func (*BoringMachine) DialTimeout ¶
func (bm *BoringMachine) DialTimeout(network string, address string, timeout time.Duration) (net.Conn, error)
DialTimeout auto dial
func (*BoringMachine) DialTunnel ¶
func (bm *BoringMachine) DialTunnel(network string, address string, timeout time.Duration) (net.Conn, error)
DialTunnel todo
func (*BoringMachine) DialTunnelHTTP ¶
func (bm *BoringMachine) DialTunnelHTTP(u *url.URL, paddr, addr string, timeout time.Duration) (net.Conn, error)
DialTunnelHTTP use http proxy
func (*BoringMachine) DialTunnelSSH ¶
func (bm *BoringMachine) DialTunnelSSH(u *url.URL, paddr, addr string, timeout time.Duration) (net.Conn, error)
DialTunnelSSH dial ssh tunnel (ssh over ssh)
type ProxySettings ¶
type ProxySettings struct { ProxyServer string ProxyOverride string // aka no proxy // contains filtered or unexported fields }
ProxySettings todo
Click to show internal directories.
Click to hide internal directories.