fix: all enums same style (#262)

* fix: all enums same style

* fix: rename process to reduce

* add some missing enum renaming

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Fabi
2020-06-23 14:47:47 +02:00
committed by GitHub
co-authored by Livio Amstutz
parent c376b92315
commit 3cd3a238c2
152 changed files with 1026 additions and 1024 deletions
@@ -19,7 +19,7 @@ func (req KeySearchRequest) GetOffset() uint64 {
}
func (req KeySearchRequest) GetSortingColumn() view.ColumnKey {
if req.SortingColumn == key_model.KEYSEARCHKEY_UNSPECIFIED {
if req.SortingColumn == key_model.KeySearchKeyUnspecified {
return nil
}
return KeySearchKey(req.SortingColumn)
@@ -51,13 +51,13 @@ func (req KeySearchQuery) GetValue() interface{} {
func (key KeySearchKey) ToColumnName() string {
switch key_model.KeySearchKey(key) {
case key_model.KEYSEARCHKEY_ID:
case key_model.KeySearchKeyID:
return KeyKeyID
case key_model.KEYSEARCHKEY_PRIVATE:
case key_model.KeySearchKeyPrivate:
return KeyPrivate
case key_model.KEYSEARCHKEY_USAGE:
case key_model.KeySearchKeyUsage:
return KeyUsage
case key_model.KEYSEARCHKEY_EXPIRY:
case key_model.KeySearchKeyExpiry:
return KeyExpiry
default:
return ""