Create + Delete session.

This commit is contained in:
Miroslav Šedivý
2020-11-25 22:06:13 +01:00
parent 104d98d129
commit 665d9d2130
4 changed files with 40 additions and 36 deletions

View File

@ -19,9 +19,9 @@ type Session interface {
}
type SessionManager interface {
New(id string, admin bool) Session
Create(profile MemberProfile) (Session, error)
Get(id string) (Session, bool)
Destroy(id string) error
Delete(id string) error
HasHost() bool
SetHost(host Session)