report

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: 20 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 {
	DB *sql.DB
	// contains filtered or unexported fields
}

Dao dao .

func New

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

New create a instance of Dao and return .

func (*Dao) CheckJob

func (d *Dao) CheckJob(ctx context.Context, urls string) (res *mdlrep.DpCheckJobResult, err error)

CheckJob .

func (*Dao) FindLabelID

func (d *Dao) FindLabelID(ctx context.Context) (res map[int]map[string]int, err error)

FindLabelID label all .

func (*Dao) FindStyle

func (d *Dao) FindStyle(ctx context.Context) (res []*mdlpgc.StyleRes, err error)

FindStyle style all .

func (*Dao) GetLabelCache

func (d *Dao) GetLabelCache(c context.Context) (res map[int]map[string]int, err error)

GetLabelCache get label all data .

func (*Dao) GetReportCache

func (d *Dao) GetReportCache(c context.Context) (res map[string]interface{}, err error)

GetReportCache get report all data .

func (*Dao) PostRequest

func (d *Dao) PostRequest(ctx context.Context, body string) (err error)

PostRequest .

func (*Dao) Report

func (d *Dao) Report(ctx context.Context, table string) (info string, err error)

Report .

func (*Dao) SetLabelCache

func (d *Dao) SetLabelCache(c context.Context, val map[int]map[string]int) (err error)

SetLabelCache label show .

func (*Dao) SetReportCache

func (d *Dao) SetReportCache(c context.Context, val map[string]interface{}) (err error)

SetReportCache set report cache .

func (*Dao) SetStyleCache

func (d *Dao) SetStyleCache(c context.Context, val map[int][]*mdlpgc.ParamStyle) (err error)

SetStyleCache style show .

Jump to

Keyboard shortcuts

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