dataplatform

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

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao is redis dao.

func New

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

New is new redis dao.

func (*Dao) GetArchiveByMID

func (d *Dao) GetArchiveByMID(c context.Context, query string) (ids []int64, err error)

GetArchiveByMID get archive id by mid

func (*Dao) NewRequest

func (d *Dao) NewRequest(c context.Context, url, realIP string, params url.Values, res interface{}) (err error)

NewRequest new http request with method, url, ip, values and headers.

func (*Dao) Send

func (d *Dao) Send(c context.Context, query string) (infos []*model.ArchiveInfo, err error)

Send ...

func (*Dao) SendBGMRequest

func (d *Dao) SendBGMRequest(c context.Context, query string) (infos []*income.BGM, err error)

SendBGMRequest get bgm infos

func (*Dao) SendBasicDataRequest

func (d *Dao) SendBasicDataRequest(c context.Context, query string) (ok bool, err error)

SendBasicDataRequest get basic data status

func (*Dao) SendSpyRequest

func (d *Dao) SendSpyRequest(c context.Context, query string) (infos []*model.Spy, err error)

SendSpyRequest send.

Jump to

Keyboard shortcuts

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