Versions in this module Expand all Collapse all v1 v1.0.6 Oct 31, 2016 v1.0.5 Sep 28, 2016 Changes in this version + const CRANE_SESSION_KEY + var ErrCookieNotExist = errors.New("cookie does not exists") + var TokenExpired = errors.New("token expired") + var TokenNotFound = errors.New("token not found") + type Cookie struct + func NewCookieStore() *Cookie + func (d *Cookie) Del(ctx *gin.Context, token string) error + func (d *Cookie) Get(ctx *gin.Context, token string) (string, error) + func (d *Cookie) Set(ctx *gin.Context, token, accountId string, expiredAt time.Time) error + type Default struct + Store map[string]*tokenStore + func NewDefaultStore() *Default + func (d *Default) Del(ctx *gin.Context, token string) error + func (d *Default) Get(ctx *gin.Context, token string) (string, error) + func (d *Default) Set(ctx *gin.Context, token, accountId string, expiredAt time.Time) error