add database to Sessions.

This commit is contained in:
Miroslav Šedivý
2020-12-05 23:05:46 +01:00
parent a6fbafc079
commit 9f452aeb01
4 changed files with 121 additions and 19 deletions

View File

@ -41,7 +41,7 @@ type Session interface {
}
type SessionManager interface {
Create(id string, profile MemberProfile) Session
Create(id string, profile MemberProfile) (Session, error)
Update(id string, profile MemberProfile) error
Get(id string) (Session, bool)
Delete(id string) error