Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TotalNumFlows keeps last flow for dropped packets TotalNumFlows uint = 2 // NumFlows = 1 is enough to process packets from file NumFlows uint = TotalNumFlows - 1 )
Variables ¶
This section is empty.
Functions ¶
func SetupGoRegexps ¶
func SetupGoRegexps(patterns []Pattern)
SetupGoRegexps compiles each regexp in pattern array and keep result in pattern.Re
Types ¶
type HSdb ¶
type HSdb struct { // Bdb is Hyperscan block database Bdb hyperscan.BlockDatabase // Scratches keep separate scratch for each handler Scratches [NumFlows]*hyperscan.Scratch }
HSdb keeps Hyperscan db and scratches
func (*HSdb) CleanupHyperscan ¶
func (hsdb *HSdb) CleanupHyperscan()
CleanupHyperscan close DB and deallocate Scratches
func (*HSdb) SetupHyperscan ¶
SetupHyperscan makes setup of Hyperscan DB and preallocates Scratches
Click to show internal directories.
Click to hide internal directories.