db

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: BSD-3-Clause, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VulnerabilitiesIndex is the handle to the bleve database for vulnerability information
	VulnerabilitiesIndex bleve.Index

	// ExploitsIndex is the handle to the bleve database for exploit information
	ExploitsIndex bleve.Index

	// VulnerabilityDBName is the name of the database directory on disk
	VulnerabilityDBName = "nvd.bleve"
)

Functions

func CloseBleve

func CloseBleve(index io.Closer)

CloseBleve is a simple wrapper for the bleve close call it's used to log any close operations.

func OpenBleve

func OpenBleve(path string) (bleve.Index, error)

OpenBleve is a simple wrapper for the bleve open call it's used to log any open operations.

func SetLogger

func SetLogger(l *zap.Logger)

SetLogger will set the logger for this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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