Documentation ¶
Index ¶
- func PromError(name string)
- type Dao
- func (d *Dao) AccessCache(c context.Context, key string) (res *model.IdentifyInfo, err error)
- func (d *Dao) AccessCookie(c context.Context, cookie string) (res *model.IdentifyInfo, err error)
- func (d *Dao) AccessToken(c context.Context, accesskey string) (res *model.IdentifyInfo, err error)
- func (d *Dao) Close()
- func (d *Dao) DelCache(c context.Context, key string) (err error)
- func (d *Dao) ExistMIDAndIP(c context.Context, mid int64, ip string) (ok bool, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SetAccessCache(c context.Context, key string, res *model.IdentifyInfo)
- func (d *Dao) SetLoginCache(c context.Context, mid int64, ip string, expires int32) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao struct info of Dao
func (*Dao) AccessCache ¶
AccessCache .
func (*Dao) AccessCookie ¶
AccessCookie .
func (*Dao) AccessToken ¶
AccessToken .
func (*Dao) ExistMIDAndIP ¶
ExistMIDAndIP check is exist mid
func (*Dao) SetAccessCache ¶
SetAccessCache .
Click to show internal directories.
Click to hide internal directories.