add session delete and disconnect to API.

This commit is contained in:
Miroslav Šedivý
2024-05-09 10:28:58 +02:00
parent 416faa3df4
commit 0e8108e9a4
7 changed files with 214 additions and 25 deletions

View File

@ -81,6 +81,7 @@ type SessionManager interface {
Create(id string, profile MemberProfile) (Session, string, error)
Update(id string, profile MemberProfile) error
Delete(id string) error
Disconnect(id string) error
Get(id string) (Session, bool)
GetByToken(token string) (Session, bool)
List() []Session