From 9318627ab8acabed69d525f7b45f5f3d54c2e673 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 17 Feb 2022 23:20:53 -0500 Subject: dbstore/cpesearch*: refactor search queries --- dbstore/cpesearchtype.go | 6 +++--- dbstore/cpesearchtype_string.go | 2 +- dbstore/cpesearchtype_test.go | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'dbstore') diff --git a/dbstore/cpesearchtype.go b/dbstore/cpesearchtype.go index 45865dc..7178561 100644 --- a/dbstore/cpesearchtype.go +++ b/dbstore/cpesearchtype.go @@ -7,7 +7,7 @@ package dbstore type CpeSearchType byte const ( - CpeSearchAll CpeSearchType = iota //cpe-search-all - CpeSearchTitle // cpe-search-title - CpeSearchRef // cpe-search-ref + CpeSearchAll CpeSearchType = iota // cpe/search-all + CpeSearchTitle // cpe/search-title + CpeSearchRef // cpe/search-ref ) diff --git a/dbstore/cpesearchtype_string.go b/dbstore/cpesearchtype_string.go index 1d4826e..b825fc8 100644 --- a/dbstore/cpesearchtype_string.go +++ b/dbstore/cpesearchtype_string.go @@ -13,7 +13,7 @@ func _() { _ = x[CpeSearchRef-2] } -const _CpeSearchType_name = "cpe-search-allcpe-search-titlecpe-search-ref" +const _CpeSearchType_name = "cpe/search-allcpe/search-titlecpe/search-ref" var _CpeSearchType_index = [...]uint8{0, 14, 30, 44} diff --git a/dbstore/cpesearchtype_test.go b/dbstore/cpesearchtype_test.go index 1421d3c..255b311 100644 --- a/dbstore/cpesearchtype_test.go +++ b/dbstore/cpesearchtype_test.go @@ -7,9 +7,9 @@ func TestCpeSearchTypeString(t *testing.T) { val CpeSearchType exp string } { - { CpeSearchAll, "cpe-search-all" }, - { CpeSearchTitle, "cpe-search-title" }, - { CpeSearchRef, "cpe-search-ref" }, + { CpeSearchAll, "cpe/search-all" }, + { CpeSearchTitle, "cpe/search-title" }, + { CpeSearchRef, "cpe/search-ref" }, { CpeSearchType(255), "CpeSearchType(255)" }, } -- cgit v1.2.3