Documentation
¶
Index ¶
Constants ¶
View Source
const StateFile = ""
Variables ¶
This section is empty.
Functions ¶
func NewHTTPProxy ¶
func NewHTTPProxy( logger zerolog.Logger, httpHandler *HTTPHandler, httpsHandler *HTTPSHandler, dnsClient *dns.Client, ruleSet *rule.RuleSet, listenAddr net.TCPAddr, cfg *config.RuntimeConfig, ) server.Server
Types ¶
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
func NewHTTPHandler ¶
func NewHTTPHandler(logger zerolog.Logger) *HTTPHandler
func (*HTTPHandler) HandleRequest ¶
func (h *HTTPHandler) HandleRequest( ctx context.Context, lConn net.Conn, req *proto.HTTPRequest, dst *netutil.Destination, rule *config.Rule, ) error
type HTTPProxy ¶
type HTTPProxy struct {
// contains filtered or unexported fields
}
func (*HTTPProxy) ListenAndServe ¶
type HTTPSHandler ¶
type HTTPSHandler struct {
// contains filtered or unexported fields
}
func NewHTTPSHandler ¶
func NewHTTPSHandler( logger zerolog.Logger, desyncer *desync.TLSDesyncer, cfg *config.RuntimeConfig, ) *HTTPSHandler
func (*HTTPSHandler) HandleRequest ¶
func (h *HTTPSHandler) HandleRequest( ctx context.Context, lConn net.Conn, dst *netutil.Destination, rule *config.Rule, ) error
Click to show internal directories.
Click to hide internal directories.