Versions in this module Expand all Collapse all v1 v1.0.1 Mar 19, 2021 v1.0.0 Sep 5, 2020 Changes in this version + type UserGetter interface + GetUser func(id int64) (userPtr interface{}, err error) + type UserIdSession struct + S *sessions.Session + func (s UserIdSession) ClearAll() + func (s UserIdSession) ClearLastLogin() + func (s UserIdSession) ClearUserId() + func (s UserIdSession) LastLogin() (time.Time, bool) + func (s UserIdSession) NewXsrfToken(action string, expire time.Time) string + func (s UserIdSession) SetLastLogin(lastLogin time.Time) + func (s UserIdSession) SetUserId(id int64) + func (s UserIdSession) UserId() (int64, bool) + func (s UserIdSession) VerifyXsrfToken(tokenToBeVerified, action string, now time.Time) bool + type UserSession interface + SetUser func(userPtr interface{}) + UserId func() (int64, bool) + func GetUserSession(r *http.Request) UserSession + func NewUserSession(sessionStore sessions.Store, r *http.Request, cookieName string, ...) (UserSession, error)