Versions in this module Expand all Collapse all v1 v1.0.1 Jul 22, 2017 Changes in this version + const CookieName + const UserContextKey + func Clear(c *gin.Context) + func CreateUserAuthentication(c *gin.Context, form *userValidator.LoginForm) (*models.User, int, error) + func CurrentUser(c *gin.Context) (*models.User, int, error) + func Decode(cookieValue string) (uint, error) + func Encode(userID uint, validUntil time.Time) (string, error) + func RetrieveUserFromRequest(c *gin.Context, id uint) (*models.User, bool, uint, int, error) + func SetLogin(c *gin.Context, user *models.User) (int, error) + type CurrentUserRetriever struct + func NewCurrentUserRetriever() *CurrentUserRetriever + func (*CurrentUserRetriever) RetrieveCurrentUser(c *gin.Context) (*models.User, error)