Skip to content

Commit

Permalink
feat: add store proto (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
honeyAcorn authored Apr 18, 2024
1 parent 877ccad commit dd58dda
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions proto/store.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
syntax = "proto3";

option go_package = "github.com/momentohq/client-sdk-go;client_sdk_go";
option java_multiple_files = true;
option java_package = "grpc.store";
option csharp_namespace = "Momento.Protos.Store";

package store;

service Store {
rpc Get(_GetRequest) returns (_GetResponse) {}
rpc Set(_SetRequest) returns (_SetResponse) {}
rpc Delete(_DeleteRequest) returns (_DeleteResponse) {}
}

message _Value {
oneof value {
bytes bytes_value = 1;
string string_value = 2;
int64 integer_value = 3;
double double_value = 4;
}
}

message _GetRequest {
string key = 1;
}

message _GetResponse {
_Value value = 1;
}

message _SetRequest {
string key = 1;
_Value value = 2;
}

message _SetResponse { }

message _DeleteRequest {
string key = 1;
}

message _DeleteResponse { }

0 comments on commit dd58dda

Please sign in to comment.