2024-11-24 01:34:06 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package churn.v1;
|
|
|
|
|
|
|
|
service Churn {
|
|
|
|
rpc GetKey(GetKeyRequest) returns (GetKeyResponse);
|
|
|
|
rpc SetKey(SetKeyRequest) returns (SetKeyResponse);
|
2024-11-24 17:12:15 +01:00
|
|
|
rpc ListenEvents(ListenEventsRequest) returns (stream ListenEventsResponse);
|
2024-11-24 01:34:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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 {}
|
2024-11-24 17:12:15 +01:00
|
|
|
|
|
|
|
message ListenEventsRequest {
|
|
|
|
string namespace = 1;
|
|
|
|
optional string id = 2;
|
|
|
|
}
|
|
|
|
message ListenEventsResponse {
|
2024-11-24 21:08:37 +01:00
|
|
|
string id = 1;
|
|
|
|
string value = 2;
|
2024-11-24 17:12:15 +01:00
|
|
|
}
|