mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
Refactoring using Claims more, add Server Side Messaging (#20)
* add some refactoring based on claims, handle chara ident inside claim, fix discord userid in log * improve authentication responses, add server side messaging * update server to mainline api Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
This commit is contained in:
parent
5f0c12ecfa
commit
74b7fcdf89
25 changed files with 350 additions and 204 deletions
|
|
@ -23,6 +23,22 @@ service ConfigurationService {
|
|||
rpc GetConfigurationEntry (KeyMessage) returns (ValueMessage);
|
||||
}
|
||||
|
||||
service ClientMessageService {
|
||||
rpc SendClientMessage (ClientMessage) returns (Empty);
|
||||
}
|
||||
|
||||
message ClientMessage {
|
||||
MessageType type = 1;
|
||||
string message = 2;
|
||||
string uid = 3;
|
||||
}
|
||||
|
||||
enum MessageType {
|
||||
INFO = 0;
|
||||
WARNING = 1;
|
||||
ERROR = 2;
|
||||
}
|
||||
|
||||
message KeyMessage {
|
||||
string key = 1;
|
||||
string default = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue