protobufs/auth.proto

35 lines
630 B
Protocol Buffer
Raw Normal View History

2024-11-28 05:12:09 +00:00
syntax = "proto3";
option go_package = "git.itzana.me/strafesnet/go-grpc/auth";
package auth;
service AuthService {
2024-11-29 04:09:53 +00:00
rpc GetSessionUser(IdMessage) returns (SessionUserResponse);
2024-11-28 05:12:09 +00:00
rpc GetGroupRole(IdMessage) returns (RoleReponse);
rpc ValidateSession(IdMessage) returns (ValidateResponse);
}
message IdMessage {
string SessionID = 1;
}
2024-11-29 04:09:53 +00:00
message SessionUserResponse {
uint64 UserID = 1;
string Username = 2;
string AvatarURL = 3;
2024-11-28 05:12:09 +00:00
}
message RoleReponse {
2024-11-29 08:08:15 +00:00
repeated RoleItem Roles = 1;
}
message RoleItem {
string ID = 1;
string DisplayName = 2;
int Rank = 3;
2024-11-28 05:12:09 +00:00
}
message ValidateResponse {
bool Valid = 1;
}