Documentation
¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) Cookie(c context.Context, sd []byte, ct time.Time) (res *model.Cookie, session []byte, err error)
- func (d *Dao) CookieCache(c context.Context, session string) (res *model.Cookie, err error)
- func (d *Dao) DelCookieCache(c context.Context, session string) (err error)
- func (d *Dao) DelRefreshCache(c context.Context, refresh string) (err error)
- func (d *Dao) DelTokenCache(c context.Context, token string) (err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Refresh(c context.Context, rk []byte, ct time.Time) (res *model.Refresh, err error)
- func (d *Dao) RefreshCache(c context.Context, refresh string) (res *model.Refresh, err error)
- func (d *Dao) SetCookieCache(c context.Context, session string, res *model.Cookie) (err error)
- func (d *Dao) SetRefreshCache(c context.Context, refresh *model.Refresh) (err error)
- func (d *Dao) SetTokenCache(c context.Context, k string, res *model.Token) (err error)
- func (d *Dao) Token(c context.Context, token []byte, ct time.Time) (res *model.Token, err error)
- func (d *Dao) TokenCache(c context.Context, sd string) (res *model.Token, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao struct
func (*Dao) Cookie ¶
func (d *Dao) Cookie(c context.Context, sd []byte, ct time.Time) (res *model.Cookie, session []byte, err error)
Cookie get cookie by session
func (*Dao) CookieCache ¶
CookieCache get cookie info from cache
func (*Dao) DelCookieCache ¶
DelCookieCache del cache.
func (*Dao) DelRefreshCache ¶
DelRefreshCache del refresh token from cache
func (*Dao) DelTokenCache ¶
DelTokenCache del cache.
func (*Dao) RefreshCache ¶
RefreshCache get refresh token from cache
func (*Dao) SetCookieCache ¶
SetCookieCache set cookie info to cache
func (*Dao) SetRefreshCache ¶
SetRefreshCache set refresh token to cache .
func (*Dao) SetTokenCache ¶
SetTokenCache set token to cache
Click to show internal directories.
Click to hide internal directories.