aboutsummaryrefslogtreecommitdiff
path: root/dbstore/cvesearchrow.go
diff options
context:
space:
mode:
Diffstat (limited to 'dbstore/cvesearchrow.go')
-rw-r--r--dbstore/cvesearchrow.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/dbstore/cvesearchrow.go b/dbstore/cvesearchrow.go
new file mode 100644
index 0000000..4128347
--- /dev/null
+++ b/dbstore/cvesearchrow.go
@@ -0,0 +1,15 @@
+package dbstore
+
+import (
+ "github.com/pablotron/cvez/feed"
+)
+
+// CveSearch() result
+type CveSearchRow struct {
+ Id int64 `json:"cve_id"` // internal database CVE ID
+ CveId feed.CveId `json:"nvd_cve_id"` // NVD CVE ID
+ Description string `json:"description"` // CVE description (english)
+ V3BaseScore feed.Score `json:"v3_base_score"` // CVSSv3 base score
+ V3Severity feed.Severity `json:"v3_severity"` // CVSSv3 severity
+ Rank float32 `json:"rank"` // search result rank
+}