feat: add tonic
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-11-24 01:34:06 +01:00
parent 670fd0d13b
commit cb340ffb1e
6 changed files with 489 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
syntax = "proto3";
package churn.v1;
service Churn {
rpc GetKey(GetKeyRequest) returns (GetKeyResponse);
rpc SetKey(SetKeyRequest) returns (SetKeyResponse);
}
message GetKeyRequest {
string namespace = 1;
optional string id = 2;
string key = 3;
}
message GetKeyResponse {
optional string value = 1;
}
message SetKeyRequest {
string namespace = 1;
optional string id = 2;
string key = 3;
string value = 4;
}
message SetKeyResponse {}