Documentation
¶
Index ¶
- func NewHTTP() services.Service
- type HTTP
- func (s *HTTP) CheckArgs() (err error)
- func (s *HTTP) Clean()
- func (s *HTTP) ConnectSSH() (err error)
- func (s *HTTP) InitBasicAuth() (err error)
- func (s *HTTP) InitOutConnPool()
- func (s *HTTP) InitService() (err error)
- func (s *HTTP) IsBasicAuth() bool
- func (s *HTTP) IsDeadLoop(inLocalAddr string, host string) bool
- func (s *HTTP) OutToTCP(useProxy bool, address string, inConn *net.Conn, req *utils.HTTPRequest) (err interface{})
- func (s *HTTP) Resolve(address string) string
- func (s *HTTP) Start(args interface{}, log *logger.Logger) (err error)
- func (s *HTTP) StopService()
- type HTTPArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
func (*HTTP) ConnectSSH ¶
func (*HTTP) InitBasicAuth ¶
func (*HTTP) InitOutConnPool ¶
func (s *HTTP) InitOutConnPool()
func (*HTTP) InitService ¶
func (*HTTP) IsBasicAuth ¶
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
}
Click to show internal directories.
Click to hide internal directories.