7bac93aa20
Move manager to it's own package so it can import db. Move all references to the in memory session repos to use sqlite3.
14 lines
243 B
Go
14 lines
243 B
Go
package session
|
|
|
|
import "time"
|
|
|
|
type SessionRepo interface {
|
|
Get(string) (*Session, error)
|
|
Create(Session) error
|
|
Update(Session) error
|
|
}
|
|
|
|
type SessionKeyRepo interface {
|
|
Push(SessionKey, time.Duration) error
|
|
Pop(string) (string, error)
|
|
}
|