protobufs/auth.proto
itzaname fab429fc74
All checks were successful
continuous-integration/drone/push Build is passing
Refine session user response
2024-11-28 23:09:53 -05:00

29 lines
537 B
Protocol Buffer

syntax = "proto3";
option go_package = "git.itzana.me/strafesnet/go-grpc/auth";
package auth;
service AuthService {
rpc GetSessionUser(IdMessage) returns (SessionUserResponse);
rpc GetGroupRole(IdMessage) returns (RoleReponse);
rpc ValidateSession(IdMessage) returns (ValidateResponse);
}
message IdMessage {
string SessionID = 1;
}
message SessionUserResponse {
uint64 UserID = 1;
string Username = 2;
string AvatarURL = 3;
}
message RoleReponse {
uint32 Role = 1;
}
message ValidateResponse {
bool Valid = 1;
}