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: 10 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 def dao struct

func New

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

New fn

func (*Dao) BeginTran

func (d *Dao) BeginTran(c context.Context) (tx *sql.Tx, err error)

BeginTran begin transcation

func (*Dao) Close

func (d *Dao) Close()

Close close db conn

func (*Dao) ExpireUpRatingCache

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

ExpireUpRatingCache ...

func (*Dao) GetUpRatingCache

func (d *Dao) GetUpRatingCache(c context.Context, mid int64) (rating *model.Rating, err error)

GetUpRatingCache ...

func (*Dao) Ping

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

Ping ping db

func (*Dao) SetUpRatingCache

func (d *Dao) SetUpRatingCache(c context.Context, mid int64, rating *model.Rating) (err error)

SetUpRatingCache ...

func (*Dao) TaskStatus

func (d *Dao) TaskStatus(c context.Context, date string) (status int, err error)

TaskStatus ...

func (*Dao) UpScore

func (d *Dao) UpScore(c context.Context, mon int, mid int64, date string) (score *model.Score, err error)

UpScore gets score data of UP

func (*Dao) White

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

White will del later

Jump to

Keyboard shortcuts

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