Documentation
¶
Index ¶
Constants ¶
View Source
const Key = "sessionID"
Variables ¶
View Source
var ErrExpired = errors.New("your session has been expired")
View Source
var ErrKeyConflict = errors.New("conflict key in database")
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Repo ¶
type Repo interface {
Create(ctx context.Context, key string, userID model.UIDType, regTime time.Time) (Session, error)
Get(ctx context.Context, key string) (persistSession, error)
RevokeUser(ctx context.Context, userID model.UIDType) (keys []string, err error)
Revoke(ctx context.Context, key string) error
}
Click to show internal directories.
Click to hide internal directories.