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: 9 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 dao

func New

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

New init mysql db

func (*Dao) ArchiveMetas

func (d *Dao) ArchiveMetas(c context.Context, id int64, limit int) ([]*model.ArchiveMeta, error)

ArchiveMetas .

func (*Dao) ArchiveMetasIncrs

func (d *Dao) ArchiveMetasIncrs(c context.Context, aid int64, begin, end xtime.Time, limit int) ([]*model.ArchiveMeta, error)

ArchiveMetasIncrs .

func (*Dao) ArchiveStats

func (d *Dao) ArchiveStats(c context.Context, aids []int64) (map[int64]*model.ArchiveStat, error)

ArchiveStats .

func (*Dao) ArchiveStatsIncrs

func (d *Dao) ArchiveStatsIncrs(c context.Context, tbl int, id int64, begin, end xtime.Time, limit int) ([]*model.ArchiveStat, error)

ArchiveStatsIncrs .

func (*Dao) ArchiveTVs

func (d *Dao) ArchiveTVs(c context.Context, aids []int64) (map[int64]*model.ArchiveTv, error)

ArchiveTVs .

func (*Dao) ArchiveTVsIncrs

func (d *Dao) ArchiveTVsIncrs(c context.Context, id int64, begin, end xtime.Time, limit int) ([]*model.ArchiveTv, error)

ArchiveTVsIncrs .

func (*Dao) ArchiveTypes

func (d *Dao) ArchiveTypes(c context.Context, ids []int64) (map[int64]*model.ArchiveType, error)

ArchiveTypes .

func (*Dao) Close

func (d *Dao) Close()

Close close the resource.

func (*Dao) MaxOid

func (d *Dao) MaxOid(c context.Context) (oid int64, err error)

MaxOid .

func (*Dao) Ping

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

Ping dao ping

Jump to

Keyboard shortcuts

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