syntax = "proto3";
service KVService {
//Get a key
rpc GetService (GetRequest) returns (GetResponse) {}
//Get keys by namespace and profile
rpc GetServiceByNamespaceAndProfile (GetByNamespaceAndProfileRequest) returns (GetByNamespaceAndProfileResponse) {}
//Set a plain key
rpc SetKeyService(SetKeyRequest) returns (SetKeyResponse){}
//Set a secret key
rpc SetSecretKeyService(SetKeyRequest) returns (SetKeyResponse){}
//Delete a key
rpc DeleteKeyService(DeleteKeyRequest) returns (DeleteKeyResponse){}
}
message GetRequest {
string namespace = 1;
string profile = 2;
string key = 3;
}
message GetResponse {
string data = 1;
}
message GetByNamespaceAndProfileRequest {
string namespace = 1;
string profile = 2;
}
message GetByNamespaceAndProfileResponse {
map<string, string> data = 1;
}
message SetKeyRequest {
string namespace = 1;
string profile = 2;
string key = 3;
string value = 4;
}
message SetKeyResponse {
string data = 1;
}
message DeleteKeyRequest {
string namespace = 1;
string profile = 2;
string key = 3;
}
message DeleteKeyResponse {
string data = 1;
}