Documentation ¶
Index ¶
Constants ¶
View Source
const ( /* Buffer size to handle data from socket */ BUFFER_SIZE = 16 * 1024 /* Interval of pushing aggregated read/write stats */ PROXY_STATS_PUSH_INTERVAL = 1 * time.Second )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct { /* Get certificate filled by external service */ GetCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error) // contains filtered or unexported fields }
*
- Server listens for client connections and
- proxies it to backends
func (*Server) HandleClientConnect ¶
func (this *Server) HandleClientConnect(ctx *core.TcpContext)
*
- Handle new client connection
Click to show internal directories.
Click to hide internal directories.