mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +02:00
databroker: add support for field masks on Put (#3210)
* databroker: add support for field masks on Put * return errors * clean up go.mod
This commit is contained in:
parent
8fc5dbf4c5
commit
2dc778035d
15 changed files with 381 additions and 134 deletions
|
@ -6,6 +6,7 @@ option go_package = "github.com/pomerium/pomerium/pkg/grpc/databroker";
|
|||
import "google/protobuf/any.proto";
|
||||
import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/protobuf/field_mask.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message Record {
|
||||
|
@ -46,7 +47,10 @@ message QueryResponse {
|
|||
int64 total_count = 2;
|
||||
}
|
||||
|
||||
message PutRequest { Record record = 1; }
|
||||
message PutRequest {
|
||||
Record record = 1;
|
||||
optional google.protobuf.FieldMask mask = 2;
|
||||
}
|
||||
message PutResponse {
|
||||
uint64 server_version = 1;
|
||||
Record record = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue