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: 24 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 {
	BPSCode map[string]int
	// contains filtered or unexported fields
}

Service struct

func New

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

New init

func (*Service) BVCTransCommit

func (s *Service) BVCTransCommit(ctx context.Context, req *v1.BVideoTransRequset) (*empty.Empty, error)

BVCTransCommit 提交转码

func (*Service) BVCTransRes

func (s *Service) BVCTransRes(ctx context.Context, req *v1.BVCTransBackRequset) (err error)

BVCTransRes 处理BVC回调服务

func (*Service) CallBack

func (s *Service) CallBack(c context.Context, req *video_v1.CallBackRequest) (res *empty.Empty, err error)

CallBack upload call back function

func (*Service) CheckVideoUploadSt

func (s *Service) CheckVideoUploadSt(c context.Context, SVID int64) (err error)

CheckVideoUploadSt upload video to client

func (*Service) Close

func (s *Service) Close()

Close Service

func (*Service) CreateID

func (s *Service) CreateID(ctx context.Context, req *v1.CreateIDRequest) (res *v1.CreateIDResponse, err error)

CreateID 创建新ID 按十进制计算 63个1=9223372036854775807,共19位 时间戳取32个1=4294967295,共10位,且最高位4小于9 mid%1000,共3位 机器标志3位 自增2位 保留1位

func (*Service) HomeImgCreate

func (s *Service) HomeImgCreate(c context.Context, req *video_v1.HomeImgCreateRequest) (res *empty.Empty, err error)

HomeImgCreate ..

func (*Service) ImportVideo

func (s *Service) ImportVideo(ctx context.Context, v *v1.ImportVideoInfo) (res *empty.Empty, err error)

ImportVideo 导入视频服务.

func (*Service) ListPrepareVideo

func (s *Service) ListPrepareVideo(c context.Context, req *video_v1.PrepareVideoRequest) (res *video_v1.PrepareVideoResponse, err error)

ListPrepareVideo 获取prepare视频

func (*Service) ListVideoInfo

func (s *Service) ListVideoInfo(ctx context.Context, v *v1.ListVideoInfoRequest) (res *v1.ListVideoInfoResponse, err error)

ListVideoInfo 视频信息列表.

func (*Service) ModifyLimits

func (s *Service) ModifyLimits(c context.Context, args *v1.ModifyLimitsRequest) (response *v1.ModifyLimitsResponse, err error)

ModifyLimits .

func (*Service) Ping

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

Ping Service

func (*Service) PlayInfo

func (s *Service) PlayInfo(c context.Context, args *v1.PlayInfoRequest) (res *v1.PlayInfoResponse, err error)

PlayInfo 批量获取playurl(相对地址方法)

func (*Service) PreUpload

func (s *Service) PreUpload(c context.Context, req *video_v1.PreUploadRequest) (rep *video_v1.PreUploadResponse, err error)

PreUpload ...

func (*Service) SvStatisticsInfo

func (s *Service) SvStatisticsInfo(ctx context.Context, v *v1.SvStatisticsInfoReq) (res *v1.SvStatisticsInfoRes, err error)

SvStatisticsInfo ...

func (*Service) SyncTag

func (s *Service) SyncTag(ctx context.Context, v *v1.SyncVideoTagRequest) (res *empty.Empty, err error)

SyncTag 同步标签.

func (*Service) SyncUserBase

func (s *Service) SyncUserBase(ctx context.Context, req *v1.SyncMidRequset) (res *v1.SyncUserBaseResponse, err error)

SyncUserBase 更新userbase

func (*Service) SyncUserBases

func (s *Service) SyncUserBases(ctx context.Context, req *v1.SyncMidsRequset) (res *v1.SyncUserBaseResponse, err error)

SyncUserBases 批量更新userbase

func (*Service) SyncUserSta

func (s *Service) SyncUserSta(ctx context.Context, req *v1.SyncMidRequset) (res *v1.SyncUserBaseResponse, err error)

SyncUserSta 更新user_statistics_hive

func (*Service) SyncUserStas

func (s *Service) SyncUserStas(ctx context.Context, req *v1.SyncMidsRequset) (res *v1.SyncUserBaseResponse, err error)

SyncUserStas 批量更新user_statistics_hive

func (*Service) VideoDelete

func (s *Service) VideoDelete(ctx context.Context, in *v1.VideoDeleteRequest) (*empty.Empty, error)

VideoDelete .

func (*Service) VideoUnshelf

func (s *Service) VideoUnshelf(ctx context.Context, in *v1.VideoUnshelfRequest) (*empty.Empty, error)

VideoUnshelf .

func (*Service) VideoViewsAdd

func (s *Service) VideoViewsAdd(c context.Context, args *httpV1.ViewsAddRequest) (response *httpV1.ViewsAddResponse, err error)

VideoViewsAdd .

Jump to

Keyboard shortcuts

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