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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RowKeyPwdLog

func RowKeyPwdLog(mid, ts int64) (res []byte)

RowKeyPwdLog generate row key of pwd log.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao struct answer history of Dao

func New

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

New new a Dao and return.

func (*Dao) Close

func (d *Dao) Close()

Close close connections.

func (*Dao) FaceApplies

func (d *Dao) FaceApplies(c context.Context, mid, from, to int64, status, operator string) (res []*model.FaceApply, err error)

FaceApplies get face applies from hbase.

func (*Dao) HistoryPwds

func (d *Dao) HistoryPwds(c context.Context, mid int64) (res []*model.HistoryPwd, err error)

HistoryPwds get history pwd

func (*Dao) LoginLogs

func (d *Dao) LoginLogs(c context.Context, mid int64, limit int) (res []*model.LoginLog, err error)

LoginLogs get last limit login logs.

func (*Dao) Ping

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

Ping ping health.

Jump to

Keyboard shortcuts

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