bloom

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

package bloom creates and serves bloom filters for canonical names, and names of viruses. The filters are persistent throughout the life of the program. The filters are used to find exact matches to the database data fast.

package bloom creates and serves bloom filters for canonical names, and names of viruses. The filters are persistent throughout the life of the program. The filters are used to find exact matches to the database data fast.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExactMatcher

func NewExactMatcher(cfg config.Config) *exactMatcher

Types

type Filters

type Filters struct {
	// Canonical is a filter for matching with canonical names.
	Canonical *baseBloomfilter.Bloomfilter
	// CanonicalSize is number of entries in 'simple' canonical filter. It is
	// used as an option during Canonical filter creation.
	CanonicalSize uint
	// Virus is a filter for matching with viruses names.
	Virus *baseBloomfilter.Bloomfilter
	// VirusesSize is a number of entries if 'viruses' filter.
	VirusSize uint
	// Mux is a mutex for thread-safe operations
	Mux sync.Mutex
}

Filters contain bloom filters data we use for matching.

Jump to

Keyboard shortcuts

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