danmu

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: 19 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 {
	// contains filtered or unexported fields
}

Service danmu.

func New

func New(c *conf.Config, rpcdaos *service.RPCDaos) *Service

New get danmu service.

func (*Service) AdvDmPurchaseList

func (s *Service) AdvDmPurchaseList(c context.Context, mid int64, ip string) (danmus []*danmu.AdvanceDanmu, err error)

AdvDmPurchaseList fn

func (*Service) CancelDmPurchase

func (s *Service) CancelDmPurchase(c context.Context, mid, id int64, ip string) (err error)

CancelDmPurchase fn

func (*Service) DenyDmPurchase

func (s *Service) DenyDmPurchase(c context.Context, mid, id int64, ip string) (err error)

DenyDmPurchase fn

func (*Service) Distri

func (s *Service) Distri(c context.Context, mid, cid int64, ip string) (dmDistri map[int64]int64, err error)

Distri fn

func (*Service) DmProtectArchive

func (s *Service) DmProtectArchive(c context.Context, mid int64, ip string) (vlist []*dmMdl.Video, err error)

DmProtectArchive fn

func (*Service) DmProtectList

func (s *Service) DmProtectList(c context.Context, mid int64, page int64, aidStr, sort, ip string) (list *danmu.ApplyList, err error)

DmProtectList fn

func (*Service) DmProtectOper

func (s *Service) DmProtectOper(c context.Context, mid, status int64, idsStr, ip string) (err error)

DmProtectOper fn

func (*Service) DmReportCheck

func (s *Service) DmReportCheck(c context.Context, mid, cid, dmid, op int64, ip string) (err error)

DmReportCheck fn

func (*Service) DmReportList

func (s *Service) DmReportList(c context.Context, mid, pn, ps int64, aidStr, ip string) (res map[string]interface{}, err error)

DmReportList fn

func (*Service) Edit

func (s *Service) Edit(c context.Context, mid, id int64, state int8, dmids []int64, ip string) (err error)

Edit fn

func (*Service) EditBatch

func (s *Service) EditBatch(c context.Context, mid int64, paramsJSON, ip string) (err error)

EditBatch fn

func (*Service) List

func (s *Service) List(c context.Context, mid, aid, cid int64, pn, ps int, order, pool, midStr, ip string) (dmList *danmu.DmList, err error)

List fn

func (*Service) PassDmPurchase

func (s *Service) PassDmPurchase(c context.Context, mid, id int64, ip string) (err error)

PassDmPurchase fn

func (*Service) Recent

func (s *Service) Recent(c context.Context, mid, pn, ps int64, ip string) (dmRecent *danmu.DmRecent, err error)

Recent fn

func (*Service) SubView

func (s *Service) SubView(c context.Context, aid int64, ip string) (ret *danmu.SubtitleSubjectReply, err error)

SubView fn

func (*Service) Transfer

func (s *Service) Transfer(c context.Context, mid, fromCID, toCID int64, offset float64, ak, ck, ip string) (err error)

Transfer fn

func (*Service) UpPool

func (s *Service) UpPool(c context.Context, cid int64, dmids []int64, pool int8, mid int64, ip string) (err error)

UpPool fn

func (*Service) UserMid

func (s *Service) UserMid(c context.Context, name, ip string) (mid int64, err error)

UserMid for dm search by name

Jump to

Keyboard shortcuts

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