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: 17 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 stat job dao.

func New

func New(c *conf.Config) *Dao

New add a feed job dao.

func (*Dao) Click

func (d *Dao) Click(c context.Context, aid int64) (cl *archive.Click3, err error)

Click archive click.

func (*Dao) MaxAID

func (d *Dao) MaxAID(c context.Context) (id int64, err error)

MaxAID return max aid

func (*Dao) MultiUpdate

func (d *Dao) MultiUpdate(c context.Context, yu int64, stats ...*api.Stat) (rows int64, err error)

MultiUpdate update some stat's fields

func (*Dao) Ping

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

Ping ping health of db.

func (*Dao) SendQiyeWX

func (d *Dao) SendQiyeWX(msg string)

SendQiyeWX send qiye wx

func (*Dao) Stat

func (d *Dao) Stat(c context.Context, aid int64) (stat *api.Stat, err error)

Stat returns stat info

func (*Dao) Update

func (d *Dao) Update(c context.Context, stat *api.Stat) (rows int64, err error)

Update update stat's fields

Jump to

Keyboard shortcuts

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