Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Name string = "httpproxy"
View Source
var Version string = "unkown"
Functions ¶
func ShowVersion ¶
func ShowVersion()
Types ¶
type HttpProxy ¶ added in v0.4.0
type HttpProxy struct {
// contains filtered or unexported fields
}
func NewHttpProxy ¶ added in v0.4.0
type ProxyContextDialer ¶ added in v0.4.2
type ProxyContextDialer struct {
// contains filtered or unexported fields
}
func NewProxyContextDialer ¶ added in v0.4.2
func NewProxyContextDialer(d proxy.Dialer) ProxyContextDialer
func (ProxyContextDialer) DialContext ¶ added in v0.4.2
func (d ProxyContextDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)
*
- from golang.org/x/net/proxy.dialContext
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
func (*Server) ListenAndServeTLS ¶ added in v0.3.0
type ServerOption ¶ added in v0.4.2
type ServerOption interface {
// contains filtered or unexported methods
}
func WithConnectTimeout ¶ added in v0.4.2
func WithConnectTimeout(timeout time.Duration) ServerOption
func WithProxy ¶ added in v0.4.2
func WithProxy(addr string) ServerOption
Click to show internal directories.
Click to hide internal directories.