Files
osirose-new/proto/session_service_api.proto
raven 6d35d15ac3 - add: ability to refresh the current session
- add: delete type to delete character request
- add: ability to update key in redis
- add: handle alive packet to refresh the session
- fix: delete now actually returns the time remaining correctly
- fix: character list now has the correct time until character deletion
2025-01-08 02:03:27 -05:00

38 lines
800 B
Protocol Buffer

syntax = "proto3";
package session_service_api;
service SessionService {
rpc CreateSession (CreateSessionRequest) returns (SessionResponse);
rpc GetSession (GetSessionRequest) returns (SessionResponse);
rpc RefreshSession (GetSessionRequest) returns (SessionResponse);
rpc DeleteSession (DeleteSessionRequest) returns (Empty);
}
message CreateSessionRequest {
string session_id = 1;
int32 user_id = 2;
string username = 3;
int32 character_id = 4;
string ip_address = 5;
}
message GetSessionRequest {
string session_id = 1;
}
message DeleteSessionRequest {
string session_id = 1;
}
message SessionResponse {
string session_id = 1;
int32 user_id = 2;
string username = 3;
int32 character_id = 4;
string login_time = 5;
string ip_address = 6;
}
message Empty {}