http

package
v0.0.0-...-1ef8d7c Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTP

func NewHTTP() services.Service

Types

type HTTP

type HTTP struct {
	// contains filtered or unexported fields
}

func (*HTTP) CheckArgs

func (s *HTTP) CheckArgs() (err error)

func (*HTTP) Clean

func (s *HTTP) Clean()

func (*HTTP) ConnectSSH

func (s *HTTP) ConnectSSH() (err error)

func (*HTTP) InitBasicAuth

func (s *HTTP) InitBasicAuth() (err error)

func (*HTTP) InitOutConnPool

func (s *HTTP) InitOutConnPool()

func (*HTTP) InitService

func (s *HTTP) InitService() (err error)

func (*HTTP) IsBasicAuth

func (s *HTTP) IsBasicAuth() bool

func (*HTTP) IsDeadLoop

func (s *HTTP) IsDeadLoop(inLocalAddr string, host string) bool

func (*HTTP) OutToTCP

func (s *HTTP) OutToTCP(useProxy bool, address string, inConn *net.Conn, req *utils.HTTPRequest) (err interface{})

func (*HTTP) Resolve

func (s *HTTP) Resolve(address string) string

func (*HTTP) Start

func (s *HTTP) Start(args interface{}, log *logger.Logger) (err error)

func (*HTTP) StopService

func (s *HTTP) StopService()

type HTTPArgs

type HTTPArgs struct {
	Parent              *string
	CertFile            *string
	KeyFile             *string
	CaCertFile          *string
	CaCertBytes         []byte
	CertBytes           []byte
	KeyBytes            []byte
	Local               *string
	Always              *bool
	HTTPTimeout         *int
	Interval            *int
	Blocked             *string
	Direct              *string
	AuthFile            *string
	Auth                *[]string
	AuthURL             *string
	AuthURLOkCode       *int
	AuthURLTimeout      *int
	AuthURLRetry        *int
	ParentType          *string
	LocalType           *string
	Timeout             *int
	CheckParentInterval *int
	SSHKeyFile          *string
	SSHKeyFileSalt      *string
	SSHPassword         *string
	SSHUser             *string
	SSHKeyBytes         []byte
	SSHAuthMethod       ssh.AuthMethod
	KCP                 kcpcfg.KCPConfigArgs
	LocalIPS            *[]string
	DNSAddress          *string
	DNSTTL              *int
	LocalKey            *string
	ParentKey           *string
	LocalCompress       *bool
	ParentCompress      *bool
}

Jump to

Keyboard shortcuts

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