dex/session/repo.go

15 lines
243 B
Go
Raw Normal View History

2015-08-18 05:57:27 +05:30
package session
import "time"
2015-08-18 05:57:27 +05:30
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)
}