web

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromError

func PromError(name string, format string, args ...interface{})

PromError stat and log .

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) ChCard

func (d *Dao) ChCard(ctx context.Context, now time.Time) (res map[int64][]*web.ChCard, err error)

ChCard channel card.

func (*Dao) Close

func (d *Dao) Close()

Close close the resource .

func (*Dao) PgcFull

func (d *Dao) PgcFull(ctx context.Context, tp int, pn, ps int64, source string) (res interface{}, err error)

PgcFull pgc full .

func (*Dao) PgcIncre

func (d *Dao) PgcIncre(ctx context.Context, tp int, pn, ps, start, end int64, source string) (res interface{}, err error)

PgcIncre pgc increment .

func (*Dao) Ping

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

Ping dao ping .

func (*Dao) Recruit

func (d *Dao) Recruit(ctx context.Context, param url.Values, route *web.Params) (res json.RawMessage, err error)

Recruit .

func (*Dao) UgcIncre

func (d *Dao) UgcIncre(ctx context.Context, pn, ps int, start, end int64) (res []*webmdl.SearchAids, err error)

UgcIncre ugc increment .

Jump to

Keyboard shortcuts

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