dex/session/repo.go
Eric Chiang 7bac93aa20 *: remove in memory session repos
Move manager to it's own package so it can import db. Move all
references to the in memory session repos to use sqlite3.
2016-02-12 13:19:05 -08:00

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)
}