Remove hard-coded record types #132

Merged
ashwin merged 17 commits from deep-stack/laconicd-deprecated:ng-rm-record-types into main 2024-01-15 04:20:39 +00:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit 10210aea31 - Show all commits

View File

@ -77,6 +77,7 @@ message QueryListRecordsRequest {
map<string, ValueInput> values = 1; map<string, ValueInput> values = 1;
} }
message ValueInput { message ValueInput {
// Type of record attribute value
oneof value { oneof value {
string string = 1; string string = 1;
int64 int = 2; int64 int = 2;

View File

@ -202,19 +202,16 @@ func QueryValueToJSON(input *types.QueryListRecordsRequest_ValueInput) ([]byte,
return nil, err return nil, err
} }
case *types.QueryListRecordsRequest_ValueInput_Int: case *types.QueryListRecordsRequest_ValueInput_Int:
err := nb.AssignInt(value.Int) err := nb.AssignInt(value.Int)
if err != nil { if err != nil {
return nil, err return nil, err
} }
case *types.QueryListRecordsRequest_ValueInput_Float: case *types.QueryListRecordsRequest_ValueInput_Float:
err := nb.AssignFloat(value.Float) err := nb.AssignFloat(value.Float)
if err != nil { if err != nil {
return nil, err return nil, err
} }
case *types.QueryListRecordsRequest_ValueInput_Boolean: case *types.QueryListRecordsRequest_ValueInput_Boolean:
err := nb.AssignBool(value.Boolean) err := nb.AssignBool(value.Boolean)
if err != nil { if err != nil {
return nil, err return nil, err