Documentation ¶
Index ¶
- Variables
- type HandleOption
- func WithBypass(bypass bypass.Bypass) HandleOption
- func WithDial(dial func(ctx context.Context, network, address string) (net.Conn, error)) HandleOption
- func WithHTTPKeepalive(keepalive bool) HandleOption
- func WithHop(hop hop.Hop) HandleOption
- func WithLog(log logger.Logger) HandleOption
- func WithNode(node *chain.Node) HandleOption
- func WithRecorderObject(ro *xrecorder.HandlerRecorderObject) HandleOption
- type HandleOptions
- type Sniffer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultCertPool = tls_util.NewMemoryCertPool()
)
Functions ¶
This section is empty.
Types ¶
type HandleOption ¶
type HandleOption func(opts *HandleOptions)
func WithBypass ¶
func WithBypass(bypass bypass.Bypass) HandleOption
func WithHTTPKeepalive ¶
func WithHTTPKeepalive(keepalive bool) HandleOption
func WithHop ¶
func WithHop(hop hop.Hop) HandleOption
func WithLog ¶
func WithLog(log logger.Logger) HandleOption
func WithNode ¶
func WithNode(node *chain.Node) HandleOption
func WithRecorderObject ¶
func WithRecorderObject(ro *xrecorder.HandlerRecorderObject) HandleOption
type HandleOptions ¶
type Sniffer ¶
type Sniffer struct { Websocket bool WebsocketSampleRate float64 Recorder recorder.Recorder RecorderOptions *recorder.Options // MITM TLS termination Certificate *x509.Certificate PrivateKey crypto.PrivateKey NegotiatedProtocol string CertPool tls_util.CertPool MitmBypass bypass.Bypass ReadTimeout time.Duration }
func (*Sniffer) HandleHTTP ¶
Click to show internal directories.
Click to hide internal directories.