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) GetDirectConn(address string, localAddr string) (conn net.Conn, err error)
- func (s *HTTP) GetParentConn(address string) (conn net.Conn, err error)
- func (s *HTTP) InitBasicAuth() (err error)
- func (s *HTTP) InitLB()
- 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) (lbAddr string, 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) GetDirectConn ¶
func (*HTTP) GetParentConn ¶
func (*HTTP) InitBasicAuth ¶
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 LoadBalanceMethod *string LoadBalanceTimeout *int LoadBalanceRetryTime *int LoadBalanceHashTarget *bool LoadBalanceOnlyHA *bool RateLimit *string RateLimitBytes float64 BindListen *bool Debug *bool }
Click to show internal directories.
Click to hide internal directories.