package
0.0.0-20221106151256-6cae3029b928
Repository: https://github.com/mushorg/go-dpi.git
Documentation: pkg.go.dev
# Functions
BenchmarkModule runs a module on all available dump files.
CreateFlowFromPacket creates a flow with a single packet.
DestroyCache frees the resources used by the flow cache.
FlushTrackedFlows flushes the map used for tracking flows.
GetFlowForPacket finds any previous flow that the packet belongs to.
InitCache initializes the flow cache.
NewFlow creates an empty flow.
# Constants
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
NoSource is returned if no classification was made.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
Protocol identifiers for the supported protocols.
# Structs
ClassificationResult contains the detected protocol and the source of the classification from a classification attempt.
Flow contains sufficient information to classify a flow.
MockModule is used in tests in order to test the functionality of modules.
# Interfaces
Module is implemented by every classification module provided by the library.
# Type aliases
ClassificationSource is the module of the library that is responsible for the classification of a flow.
Protocol is the type of each of the detected protocols.