Documentation ¶
Index ¶
Constants ¶
View Source
const SniffDefaultMaxData = 8192
View Source
const SniffDefaultTimeout = time.Second
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FatalError ¶
type FatalError struct {
// contains filtered or unexported fields
}
func (*FatalError) Error ¶
func (e *FatalError) Error() string
func (*FatalError) Unwrap ¶
func (e *FatalError) Unwrap() error
type ParallelSnifferOption ¶
type ParallelSnifferOption func(sniffer *parallelSniffer)
func WithParallelMaxData ¶
func WithParallelMaxData(max int64) ParallelSnifferOption
func WithParallelSnifferStrategy ¶
func WithParallelSnifferStrategy(aSniffer *SniffStrategy) ParallelSnifferOption
func WithParallelTimeout ¶
func WithParallelTimeout(timeout time.Duration) ParallelSnifferOption
type SniffStrategy ¶
type SniffStrategy struct {
// contains filtered or unexported fields
}
func NewHTTPSnifferStrategy ¶
func NewHTTPSnifferStrategy() *SniffStrategy
func NewSniffStrategyFromInterface ¶
func NewSniffStrategyFromInterface(strategyInterface SniffStrategyInterface) *SniffStrategy
func NewTLSSnifferStrategy ¶
func NewTLSSnifferStrategy() *SniffStrategy
type SniffStrategyInterface ¶
type Sniffer ¶
type Sniffer struct {
// contains filtered or unexported fields
}
func NewNullSniffer ¶
func NewNullSniffer() *Sniffer
func NewParallelSniffer ¶
func NewParallelSniffer(opts ...ParallelSnifferOption) *Sniffer
func NewSnifferFromInterface ¶
func NewSnifferFromInterface(snifferInterface SnifferInterface) *Sniffer
Click to show internal directories.
Click to hide internal directories.