OnHostChanged event and add tokens to session.

This commit is contained in:
Miroslav Šedivý
2021-03-13 22:17:49 +01:00
parent 453a6905f7
commit 3fcca6ab52
6 changed files with 43 additions and 12 deletions

View File

@ -59,10 +59,11 @@ type Session interface {
}
type SessionManager interface {
Create(profile MemberProfile) (Session, error)
Create(profile MemberProfile) (Session, string, error)
Update(id string, profile MemberProfile) error
Get(id string) (Session, bool)
Delete(id string) error
Get(id string) (Session, bool)
GetByToken(token string) (Session, bool)
List() []Session
SetHost(host Session)