service

package
v0.0.0-...-9bdafd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFeedService

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

func NewGetFeedService

func NewGetFeedService(ctx context.Context) *GetFeedService

func (*GetFeedService) GetFeed

func (s *GetFeedService) GetFeed(id int64, time int64) (videos []*video.Video, nextTime int64, err error)

GetFeed 获取视频流

type GetVideoService

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

func NewGetVideoService

func NewGetVideoService(ctx context.Context) *GetVideoService

func (*GetVideoService) GetVideo

func (s *GetVideoService) GetVideo(req *video.VideoRequest) (*video.Video, error)

GetVideo 通过videoID获取单个视频

type PublishService

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

func NewPublishService

func NewPublishService(ctx context.Context) *PublishService

func (*PublishService) GetPublishList

func (s *PublishService) GetPublishList(myID int64, ID int64) ([]*video.Video, error)

GetPublishList 获取用户上传的所有视频

func (*PublishService) PublishAction

func (s *PublishService) PublishAction(req *video.PublishActionRequest, authorID int64) error

PublishAction 上传视频

Jump to

Keyboard shortcuts

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