mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
Switch to GrpcClientIdentificationService and abolish Redis for Idents (#12)
* add GrpcClientIdentificationService * remove unnecessary gauges * set to no retry policy * initialize metrics Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
This commit is contained in:
parent
08b04e14d5
commit
17f26714ce
13 changed files with 373 additions and 209 deletions
|
|
@ -16,8 +16,50 @@ service FileService {
|
|||
rpc DeleteFiles (DeleteFilesRequest) returns (Empty);
|
||||
}
|
||||
|
||||
service IdentificationService {
|
||||
rpc GetOnlineUserCount (ServerMessage) returns (OnlineUserCountResponse);
|
||||
rpc RemoveIdentForUid (RemoveIdentMessage) returns (Empty);
|
||||
rpc SetIdentForUid (SetIdentMessage) returns (Empty);
|
||||
rpc GetUidForCharacterIdent (CharacterIdentMessage) returns (UidMessage);
|
||||
rpc GetIdentForUid (UidMessage) returns (CharacterIdentMessage);
|
||||
rpc ClearIdentsForServer (ServerMessage) returns (Empty);
|
||||
rpc RecreateServerIdents (ServerIdentMessage) returns (Empty);
|
||||
}
|
||||
|
||||
message Empty { }
|
||||
|
||||
message ServerIdentMessage {
|
||||
repeated SetIdentMessage idents = 1;
|
||||
}
|
||||
|
||||
message ServerMessage {
|
||||
string server_id = 1;
|
||||
}
|
||||
|
||||
message OnlineUserCountResponse {
|
||||
int64 count = 1;
|
||||
}
|
||||
|
||||
message RemoveIdentMessage {
|
||||
string uid = 1;
|
||||
string server_id = 2;
|
||||
}
|
||||
|
||||
message SetIdentMessage {
|
||||
string uid = 1;
|
||||
string server_id = 2;
|
||||
string ident = 3;
|
||||
}
|
||||
|
||||
message CharacterIdentMessage {
|
||||
string server_id = 1;
|
||||
string ident = 2;
|
||||
}
|
||||
|
||||
message UidMessage {
|
||||
string uid = 1;
|
||||
}
|
||||
|
||||
message UploadFileRequest {
|
||||
string hash = 1;
|
||||
string uploader = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue