forked from TrueCloudLab/frostfs-api-go
docs: add query proto documentation
This commit is contained in:
parent
84ac6f55a3
commit
6c0ee948e6
1 changed files with 6 additions and 0 deletions
|
@ -9,17 +9,23 @@ option (gogoproto.stable_marshaler_all) = true;
|
||||||
message Filter {
|
message Filter {
|
||||||
option (gogoproto.goproto_stringer) = false;
|
option (gogoproto.goproto_stringer) = false;
|
||||||
|
|
||||||
|
// Type can be Exact or Regex
|
||||||
enum Type {
|
enum Type {
|
||||||
Exact = 0;
|
Exact = 0;
|
||||||
Regex = 1;
|
Regex = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Type of filter
|
||||||
Type type = 1 [(gogoproto.customname) = "Type"];
|
Type type = 1 [(gogoproto.customname) = "Type"];
|
||||||
|
// Name of field that should be filtered
|
||||||
string Name = 2;
|
string Name = 2;
|
||||||
|
// Value that should be used for filter
|
||||||
string Value = 3;
|
string Value = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Query {
|
message Query {
|
||||||
option (gogoproto.goproto_stringer) = false;
|
option (gogoproto.goproto_stringer) = false;
|
||||||
|
|
||||||
|
// Filters is set of filters, should not be empty
|
||||||
repeated Filter Filters = 1 [(gogoproto.nullable) = false];
|
repeated Filter Filters = 1 [(gogoproto.nullable) = false];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue