Move accountant to it's own deployment using gRCP

This commit is contained in:
Marc Di Luzio 2020-06-10 23:23:09 +01:00
parent 8f25f55658
commit 99da6c5d67
14 changed files with 868 additions and 64 deletions

View file

@ -0,0 +1,43 @@
syntax = "proto3";
option go_package = "github.com/mdiluz/rove/pkg/accounts";
package accounts;
service Accountant {
rpc Register(RegisterInfo) returns (RegisterResponse) {}
rpc AssignValue(DataKeyValue) returns (Response) {}
rpc GetValue(DataKey) returns (DataResponse) {}
}
message RegisterInfo {
string name = 1;
}
message RegisterResponse {
bool success = 1;
string error = 2;
}
message DataKeyValue {
string account = 1;
string key = 2;
string value = 3;
}
message Response {
bool success = 1;
string error = 2;
}
message DataKey {
string account = 1;
string key = 2;
}
message DataResponse {
bool success = 1;
string error = 2;
string value = 3;
}