- add: Refresh Session call to actually refresh the cache session.
This commit is contained in:
@@ -4,6 +4,7 @@ package session_db_api;
|
||||
|
||||
service SessionService {
|
||||
rpc GetSession(GetSessionRequest) returns (GetSessionResponse);
|
||||
rpc RefreshSession(RefreshSessionRequest) returns (RefreshSessionResponse);
|
||||
}
|
||||
|
||||
message GetSessionRequest {
|
||||
@@ -13,4 +14,12 @@ message GetSessionRequest {
|
||||
message GetSessionResponse {
|
||||
string session_id = 1;
|
||||
string user_id = 2;
|
||||
}
|
||||
|
||||
message RefreshSessionRequest {
|
||||
string session_id = 1;
|
||||
}
|
||||
|
||||
message RefreshSessionResponse {
|
||||
bool valid = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user