nvd

package
v0.0.27-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update(db *bun.DB, db_config *bun.DB) error

Update syncs CVEs modified since the NVD watermark, in windows of at most 120 days. The watermark moves only after every window succeeded. Every run records NVD's current total.

func UseUpstream

func UseUpstream(url string) (restore func())

UseUpstream points the mirror at another NVD API base URL and returns a function that undoes it.

Types

type Config

type Config struct {
	Key  string `json:"_key"`
	Last string `json:"last"`
}

type NVDStats

type NVDStats struct {
	TotalResults int `json:"totalResults"`
}

Jump to

Keyboard shortcuts

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