Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2020 Changes in this version + const GinSessionOk + const GinSessionOld + const GinSessionTimeout + type Keeper interface + Check func(key, magic string, expiration time.Duration) (Status, error) + Done func() error + Peek func(key, magic string) (bool, error) + Pull func(key string) (magic string, dataMap map[string]string, err error) + Push func(key string, magic string, dataMap map[string]string, expiration time.Duration) error + type Redis struct + func DefaultRedis(addr, password string, db int) (r Redis, err error) + func (r Redis) Check(key string, magic string, expiration time.Duration) (status Status, err error) + func (r Redis) Done() (err error) + func (r Redis) Peek(key, magic string) (different bool, err error) + func (r Redis) Pull(key string) (magic string, dataMap map[string]string, err error) + func (r Redis) Push(key string, magic string, dataMap map[string]string, expiration time.Duration) (err error) + type Status int + func (s Status) String() (str string)