weeklyhonor

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: 14 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 is data dao.

func New

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

New init dao

func (*Dao) ChangeUpSwitch

func (d *Dao) ChangeUpSwitch(c context.Context, mid int64, state uint8) (err error)

ChangeUpSwitch change up switch on/off

func (*Dao) ClickMC

func (d *Dao) ClickMC(c context.Context, mid int64) (err error)

ClickMC get click cache

func (*Dao) Close

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

Close hbase close

func (*Dao) GetUpSwitch

func (d *Dao) GetUpSwitch(c context.Context, mid int64) (state uint8, err error)

GetUpSwitch get up switch state

func (*Dao) HonorLogs

func (d *Dao) HonorLogs(c context.Context, mid int64) (hls map[int]*model.HonorLog, err error)

HonorLogs .

func (*Dao) HonorMC

func (d *Dao) HonorMC(c context.Context, mid int64, date string) (res *model.HonorLog, err error)

HonorMC get honor cache.

func (*Dao) HonorStat

func (d *Dao) HonorStat(c context.Context, mid int64, date string) (stat *model.HonorStat, err error)

HonorStat get up honor.

func (*Dao) Ping

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

Ping ping success.

func (*Dao) SetClickMC

func (d *Dao) SetClickMC(c context.Context, mid int64) (err error)

SetClickMC add click cache

func (*Dao) SetHonorMC

func (d *Dao) SetHonorMC(c context.Context, mid int64, date string, hs *model.HonorLog) (err error)

SetHonorMC add honor cache.

func (*Dao) SetStatMC

func (d *Dao) SetStatMC(c context.Context, mid int64, date string, hs *model.HonorStat) (err error)

SetStatMC add stat cache.

func (*Dao) StatMC

func (d *Dao) StatMC(c context.Context, mid int64, date string) (hs *model.HonorStat, err error)

StatMC get stat cache.

func (*Dao) UpsertClickCount

func (d *Dao) UpsertClickCount(c context.Context, mid int64) (err error)

UpsertClickCount log weeklyhonor click count

func (*Dao) UpsertCount

func (d *Dao) UpsertCount(c context.Context, mid int64, hid int) (err error)

UpsertCount .

Jump to

Keyboard shortcuts

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