Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *goproxy.ProxyHttpServer // contains filtered or unexported fields }
Server is a middleman between client and real pxy server. It run as a https server which always eavesdrop https connections, the purpose is to reuse the connection between middleman and the pxy server, avoiding TLS handshakes for every request.
And, this is safe because the middleman server is usually deployed as a sidecar with crawler program together.
func NewServer ¶
func NewServer(nb backend.NotifyBackend) *Server
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func NewSessionManager ¶
func NewSessionManager(nb backend.NotifyBackend, strategy loadbalancer.Strategy) *SessionManager
Click to show internal directories.
Click to hide internal directories.