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: 16 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) (d *Dao)

New return new dao.

func (*Dao) BlockTime

func (d *Dao) BlockTime(c context.Context, mid int64) (res *model.BlockTime, err error)

BlockTime get user block time from account by mid

func (*Dao) OnlineCount

func (d *Dao) OnlineCount(c context.Context, aid, cid int64) (count int64, err error)

OnlineCount get online count by aid and cid

func (*Dao) Param

func (d *Dao) Param(c context.Context) (param []*model.Param, err error)

Param return player setting params.

func (*Dao) Ping

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

Ping check service health

func (*Dao) Playurl

func (d *Dao) Playurl(c context.Context, mid int64, arg *model.PlayurlArg, playurl, token string) (data *model.PlayurlRes, err error)

Playurl get playurl data.

func (*Dao) PvData

func (d *Dao) PvData(c context.Context, pvURL string) (res []byte, err error)

PvData get binary data from pvdata url

func (*Dao) ViewPoints

func (d *Dao) ViewPoints(c context.Context, aid, cid int64) (points []*model.Points, err error)

ViewPoints get view points data from creative.

Jump to

Keyboard shortcuts

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