diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-17 23:20:53 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-17 23:20:53 -0500 |
commit | 9318627ab8acabed69d525f7b45f5f3d54c2e673 (patch) | |
tree | 4867bce15fb48879d0054acf7d9cb0b9dc884106 /dbstore | |
parent | 42446fcdcf9d752201414afc7e5c7bcb2fb2ee6e (diff) | |
download | cvez-9318627ab8acabed69d525f7b45f5f3d54c2e673.tar.bz2 cvez-9318627ab8acabed69d525f7b45f5f3d54c2e673.zip |
dbstore/cpesearch*: refactor search queries
Diffstat (limited to 'dbstore')
-rw-r--r-- | dbstore/cpesearchtype.go | 6 | ||||
-rw-r--r-- | dbstore/cpesearchtype_string.go | 2 | ||||
-rw-r--r-- | dbstore/cpesearchtype_test.go | 6 |
3 files changed, 7 insertions, 7 deletions
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)" }, } |