Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddCookie(c context.Context, cookie *model.Cookie, session, csrf []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) AddCookieDeleted(c context.Context, cookie *model.Cookie, session, csrf []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) AddRefresh(c context.Context, t *model.Refresh, refresh, token []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) AddToken(c context.Context, t *model.Token, token []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) AddTokenDeleted(c context.Context, t *model.Token, token []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) AsoCleanCache(c context.Context, token, session string, mid int64) (err error)
- func (d *Dao) Close()
- func (d *Dao) DelCookie(c context.Context, session []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) DelRefresh(c context.Context, refresh []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) DelToken(c context.Context, token []byte, ct time.Time) (affected int64, err error)
- func (d *Dao) Ping(c context.Context) 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
func (*Dao) AddCookie ¶
func (d *Dao) AddCookie(c context.Context, cookie *model.Cookie, session, csrf []byte, ct time.Time) (affected int64, err error)
AddCookie save cookie
func (*Dao) AddCookieDeleted ¶
func (d *Dao) AddCookieDeleted(c context.Context, cookie *model.Cookie, session, csrf []byte, ct time.Time) (affected int64, err error)
AddCookieDeleted save cookie deleted
func (*Dao) AddRefresh ¶
func (d *Dao) AddRefresh(c context.Context, t *model.Refresh, refresh, token []byte, ct time.Time) (affected int64, err error)
AddRefresh save token
func (*Dao) AddToken ¶
func (d *Dao) AddToken(c context.Context, t *model.Token, token []byte, ct time.Time) (affected int64, err error)
AddToken save token
func (*Dao) AddTokenDeleted ¶
func (d *Dao) AddTokenDeleted(c context.Context, t *model.Token, token []byte, ct time.Time) (affected int64, err error)
AddTokenDeleted save token deleted
func (*Dao) AsoCleanCache ¶
AsoCleanCache aso clean cache
func (*Dao) DelCookie ¶
func (d *Dao) DelCookie(c context.Context, session []byte, ct time.Time) (affected int64, err error)
DelCookie del cookie by session
func (*Dao) DelRefresh ¶
func (d *Dao) DelRefresh(c context.Context, refresh []byte, ct time.Time) (affected int64, err error)
DelRefresh del token
Click to show internal directories.
Click to hide internal directories.