dao

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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 struct info of Dao.

func New

func New(c *conf.Config) (d *Dao)

New new a Dao and return.

func (*Dao) AddLoginLog

func (d *Dao) AddLoginLog(vs []*model.LoginLog) (err error)

AddLoginLog insert service to db.

func (*Dao) AddLoginLogHBase

func (d *Dao) AddLoginLogHBase(c context.Context, loginLog *model.LoginLog) (err error)

AddLoginLogHBase add login log.

func (*Dao) AddPwdLogHBase

func (d *Dao) AddPwdLogHBase(c context.Context, pwdLog *model.PwdLog) (err error)

AddPwdLogHBase add pwd log.

func (*Dao) BatchGetPwdLog

func (d *Dao) BatchGetPwdLog(c context.Context, id int64) (res []*model.PwdLog, err error)

BatchGetPwdLog batch get pwd log

func (*Dao) Close

func (d *Dao) Close() (err error)

Close close dao.

func (*Dao) DelCache

func (d *Dao) DelCache(c context.Context, accessKey string) (err error)

DelCache del cache via passport api.

func (*Dao) GetPwdLog

func (d *Dao) GetPwdLog(c context.Context, id int64) (res *model.PwdLog, err error)

GetPwdLog get pwd log

func (*Dao) NotifyGame

func (d *Dao) NotifyGame(token *model.AccessInfo, action string) (err error)

NotifyGame notify game.

func (*Dao) Ping

func (d *Dao) Ping(c context.Context) (err error)

Ping ping check dao health.

func (*Dao) QueryEmailBindLog

func (d *Dao) QueryEmailBindLog(id int64) (res *model.EmailBindLog, err error)

QueryEmailBindLog query from id

func (*Dao) QueryTelBindLog

func (d *Dao) QueryTelBindLog(id int64) (res *model.TelBindLog, err error)

QueryTelBindLog query from id

func (*Dao) SetToken

func (d *Dao) SetToken(c context.Context, t *model.Token) (err error)

SetToken set token via passport api.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL