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