Documentation
¶
Overview ¶
@Time : 2019-07-12 16:30 @Author : zr
Index ¶
- func NewRedisAdapter(options *redis.UniversalOptions, prefix string) adapter.Redis
- type Manager
- func (m Manager) CreateSession(userId string, channel string, expireAt time.Time) (s *model.Session, err error)
- func (m Manager) Delete(s *model.Session) error
- func (m Manager) DeleteByUser(id string) error
- func (m Manager) FindByToken(token string) (s *model.Session, err error)
- func (m Manager) GetUserAllSessions(userId string) (sessions []*model.Session, err error)
- func (m Manager) Update(s *model.Session) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisAdapter ¶
Types ¶
type Manager ¶
type Manager struct { Prefix string // contains filtered or unexported fields }
func NewManager ¶
func (Manager) CreateSession ¶
func (Manager) DeleteByUser ¶
func (Manager) FindByToken ¶
func (Manager) GetUserAllSessions ¶
Directories
¶
Path | Synopsis |
---|---|
@Time : 2019-07-12 16:42 @Author : zr @Time : 2019-07-12 16:34 @Author : zr
|
@Time : 2019-07-12 16:42 @Author : zr @Time : 2019-07-12 16:34 @Author : zr |
@Time : 2019-07-12 16:39 @Author : zr
|
@Time : 2019-07-12 16:39 @Author : zr |
@Time : 2019-07-12 17:28 @Author : zr
|
@Time : 2019-07-12 17:28 @Author : zr |
Click to show internal directories.
Click to hide internal directories.