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: 16 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 struct

func New

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

New init

func (*Service) AddHistories

func (s *Service) AddHistories(c context.Context, arg *pb.AddHistoriesReq) (reply *pb.AddHistoriesReply, err error)

AddHistories 增加多条播放历史记录

func (*Service) AddHistory

func (s *Service) AddHistory(c context.Context, arg *pb.AddHistoryReq) (reply *pb.AddHistoryReply, err error)

AddHistory add history

func (*Service) ClearHistory

func (s *Service) ClearHistory(c context.Context, arg *pb.ClearHistoryReq) (reply *pb.ClearHistoryReply, err error)

ClearHistory clear histories

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) DelHistories

func (s *Service) DelHistories(c context.Context, arg *pb.DelHistoriesReq) (reply *pb.DelHistoriesReply, err error)

DelHistories delete histories

func (*Service) Histories

func (s *Service) Histories(c context.Context, arg *pb.HistoriesReq) (reply *pb.HistoriesReply, err error)

Histories 根据id查询播放历史

func (*Service) Ping

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

Ping Service

func (*Service) UpdateUserHide

func (s *Service) UpdateUserHide(c context.Context, arg *pb.UpdateUserHideReq) (reply *pb.UpdateUserHideReply, err error)

UpdateUserHide 修改是否记录播放历史

func (*Service) UserHide

func (s *Service) UserHide(c context.Context, arg *pb.UserHideReq) (reply *pb.UserHideReply, err error)

UserHide 查询是否记录播放历史

func (*Service) UserHistories

func (s *Service) UserHistories(c context.Context, arg *pb.UserHistoriesReq) (reply *pb.UserHistoriesReply, err error)

UserHistories 查询用户的播放历史列表

Jump to

Keyboard shortcuts

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