Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CircularDedup ¶
type CircularDedup struct { // circular array of hash sets Buckets []map[string]bool // max number of buckets to be kept MaxBuckets int // max duration of each bucket Duration time.Duration // timestamp of latest bucket Bucket time.Time }
CircularDedup maintains N buckets of hash sets hash lookup is done from all if hash is not found, add to latest rotate buckets if bucket duration has passed
func NewCircularDedup ¶
func NewCircularDedup(max int, duration time.Duration) *CircularDedup
type Dedupper ¶
Dedupper is a subsystem that accepts a gopacket type and reports if it has been already seen
type TrivialDedup ¶
TrivialDedup is only a minimal prototype for simple testing and SHOULD NOT BE USED It will leak memory and will likely see a high hash collision rate
Click to show internal directories.
Click to hide internal directories.