Add datastore.proto
Some checks reported errors
continuous-integration/drone Build encountered an error
Some checks reported errors
continuous-integration/drone Build encountered an error
This commit is contained in:
parent
dd02b3202f
commit
0b44dcc8a8
32
datastore.proto
Normal file
32
datastore.proto
Normal file
@ -0,0 +1,32 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "git.itzana.me/strafesnet/go-grpc/datastore";
|
||||
|
||||
package datastore;
|
||||
|
||||
import "google/protobuf/struct.proto";
|
||||
|
||||
service DatastoreService {
|
||||
rpc Get(KeyMessage) returns (ObjectResponse);
|
||||
rpc Update(UpdateMessage) returns (ObjectResponse);
|
||||
rpc Delete(KeyMessage) returns (NullResponse);
|
||||
}
|
||||
|
||||
message KeyMessage {
|
||||
string Key = 1;
|
||||
}
|
||||
|
||||
message UpdateMessage {
|
||||
string Key = 1;
|
||||
google.protobuf.Struct Updates = 2;
|
||||
google.protobuf.Struct Deletes = 3;
|
||||
}
|
||||
|
||||
message ObjectResponse {
|
||||
string Key = 1;
|
||||
google.protobuf.Struct Data = 2;
|
||||
}
|
||||
|
||||
message NullResponse {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user