service

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	PorderCfgs  map[int64]*porder.Config
	PorderGames map[int64]*porder.Game
	// contains filtered or unexported fields
}

Service is archive and videos service.

func New

func New(c *conf.Config) (s *Service)

New new a service.

func (*Service) AppAdd

func (s *Service) AppAdd(c context.Context, mid int64, ap *archive.ArcParam, ar *archive.AppRequest) (aid int64, err error)

AppAdd add archive by main app.

func (*Service) AppEdit

func (s *Service) AppEdit(c context.Context, ap *archive.ArcParam, mid int64) (err error)

AppEdit edit archive by appclient.

func (*Service) AppEditFull

func (s *Service) AppEditFull(c context.Context, ap *archive.ArcParam, mid, buildNum int64, ar *archive.AppRequest) (err error)

AppEditFull fn

func (*Service) AppUpCover

func (s *Service) AppUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)

AppUpCover main app upload cover.

func (*Service) ClientAdd

func (s *Service) ClientAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)

ClientAdd add archive by client.

func (*Service) ClientEdit

func (s *Service) ClientEdit(c context.Context, ap *archive.ArcParam, mid int64) (err error)

ClientEdit edit archive by client.

func (*Service) ClientUpCover

func (s *Service) ClientUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)

ClientUpCover client upload cover.

func (*Service) Close

func (s *Service) Close()

Close close resource.

func (*Service) CreatorAdd

func (s *Service) CreatorAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)

CreatorAdd add archive by creator.

func (*Service) CreatorEdit

func (s *Service) CreatorEdit(c context.Context, mid int64, cp *archive.CreatorParam) (err error)

CreatorEdit edit archive by creator.

func (*Service) CreatorUpCover

func (s *Service) CreatorUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)

CreatorUpCover creator upload cover.

func (*Service) FRelations

func (s *Service) FRelations(c context.Context, mid int64, fids []int64, ip string) (res map[int64]int, err error)

FRelations 获取用户与mid的关系(Relations的反向)

func (*Service) Ping

func (s *Service) Ping(c context.Context) (err error)

Ping ping success.

func (*Service) SendArchiveLog

func (s *Service) SendArchiveLog(aid int64, build, buvid, action, platform string, ap *archive.ArcParam, videoerr error)

SendArchiveLog send to log service

func (*Service) Validate

func (s *Service) Validate(c context.Context, geetest *archive.Geetest, upFormStr string, mid int64) (stat bool, err error)

Validate fn

func (*Service) VideoInfoc

func (s *Service) VideoInfoc(c context.Context, ap *archive.ArcParam, ar *archive.AppRequest) (err error)

VideoInfoc fn

func (*Service) WebAdd

func (s *Service) WebAdd(c context.Context, mid int64, ap *archive.ArcParam, validated bool) (aid int64, err error)

WebAdd add archive by web.

func (*Service) WebCmAdd

func (s *Service) WebCmAdd(c context.Context, mid int64, ap *archive.ArcParam) (aid int64, err error)

WebCmAdd add archive by web client and from business order.

func (*Service) WebEdit

func (s *Service) WebEdit(c context.Context, ap *archive.ArcParam, mid int64) (err error)

WebEdit edit archive by web.

func (*Service) WebFilterArcParam

func (s *Service) WebFilterArcParam(c context.Context, ap *archive.ArcParam, ip string) (code int, msg string, data map[string]interface{})

WebFilterArcParam fn.

func (*Service) WebSingleFilter

func (s *Service) WebSingleFilter(c context.Context, content string) (dt *archive.FilterData, hit []string, err error)

WebSingleFilter fn.

func (*Service) WebUpCover

func (s *Service) WebUpCover(c context.Context, fileType string, body []byte, mid int64) (url string, err error)

WebUpCover client upload cover.

Jump to

Keyboard shortcuts

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