kjuulh
ea5adb2f93
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
36 lines
689 B
Protocol Buffer
36 lines
689 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package churn.v1;
|
|
|
|
service Churn {
|
|
rpc GetKey(GetKeyRequest) returns (GetKeyResponse);
|
|
rpc SetKey(SetKeyRequest) returns (SetKeyResponse);
|
|
rpc ListenEvents(ListenEventsRequest) returns (stream ListenEventsResponse);
|
|
}
|
|
|
|
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 {}
|
|
|
|
message ListenEventsRequest {
|
|
string namespace = 1;
|
|
optional string id = 2;
|
|
}
|
|
message ListenEventsResponse {
|
|
string id = 1;
|
|
string value = 2;
|
|
}
|