factory

package
v0.0.0-...-51da36d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(cfg *config)

func WithIgnoreDnsRcode3Error

func WithIgnoreDnsRcode3Error(ignoreDnsRcode3Error bool) Option

func WithUrlClusteringMethod

func WithUrlClusteringMethod(urlClusteringMethod string) Option

type ParserFactory

type ParserFactory struct {
	// contains filtered or unexported fields
}

func NewParserFactory

func NewParserFactory(options ...Option) *ParserFactory

func (*ParserFactory) AddCachedParser

func (f *ParserFactory) AddCachedParser(port uint32, parser *protocol.ProtocolParser)

func (*ParserFactory) GetCachedParsersByPort

func (f *ParserFactory) GetCachedParsersByPort(port uint32) ([]*protocol.ProtocolParser, bool)

func (*ParserFactory) GetGenericParser

func (f *ParserFactory) GetGenericParser() *protocol.ProtocolParser

func (*ParserFactory) GetParser

func (f *ParserFactory) GetParser(key string) *protocol.ProtocolParser

func (*ParserFactory) GetUdpDnsParser

func (f *ParserFactory) GetUdpDnsParser() *protocol.ProtocolParser

func (*ParserFactory) RemoveCachedParser

func (f *ParserFactory) RemoveCachedParser(port uint32, parser *protocol.ProtocolParser)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL