Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedService ¶
type FeedService struct {
// contains filtered or unexported fields
}
func NewFeedService ¶
func NewFeedService(ctx context.Context) *FeedService
NewFeedService new FeedService
func (*FeedService) Feed ¶
func (s *FeedService) Feed(req *VideoServer.DouyinFeedRequest) (videos []*VideoServer.Video, nextTime int64, err error)
Feed used for feed service, get videos by latestTime.
type PublishActionService ¶
type PublishActionService struct {
// contains filtered or unexported fields
}
func NewPublishActionService ¶
func NewPublishActionService(ctx context.Context) *PublishActionService
NewPublishActionService new PublishAction
func (*PublishActionService) PublishAction ¶
func (s *PublishActionService) PublishAction(req *VideoServer.DouyinPublishActionRequest) error
PublishAction post video into the minio buckets and database.
type PublishListService ¶
type PublishListService struct {
// contains filtered or unexported fields
}
func NewPublishListService ¶
func NewPublishListService(ctx context.Context) *PublishListService
NewPublishListService new PublishListService
func (*PublishListService) PublishList ¶
func (s *PublishListService) PublishList(req *VideoServer.DouyinPublishListRequest) (videoList []*VideoServer.Video, err error)
PublishList get the videoList by user id.
type VideoListByVideoIdService ¶
type VideoListByVideoIdService struct {
// contains filtered or unexported fields
}
func NewVideoListByVideoIdService ¶
func NewVideoListByVideoIdService(ctx context.Context) *VideoListByVideoIdService
func (*VideoListByVideoIdService) GetVideoListByVideoId ¶
func (s *VideoListByVideoIdService) GetVideoListByVideoId(req *VideoServer.DouyinVideoListByVideoId) (videoL []*VideoServer.Video, err error)
通过视频ID获取视频列表
Source Files
¶
Click to show internal directories.
Click to hide internal directories.