Documentation ¶
Index ¶
- type S3Service
- type VideoService
- func (v *VideoService) CreateVideo(file io.Reader, autherId uint32, title string) (*model.VideoInfo, error)
- func (v *VideoService) GetVideo(videoId int64) (*model.VideoInfo, error)
- func (v *VideoService) ListVideosByAuthor(ctx context.Context, req *feed.ListPublishVideosRequest) (*feed.ListPublishVideosResponse, error)
- func (v *VideoService) ListWatchVideos(ctx context.Context, req *feed.ListWatchVideosRequest) (*feed.ListWatchVideosResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Service ¶
type S3Service struct {
// contains filtered or unexported fields
}
func NewS3Service ¶
func (*S3Service) DeleteFile ¶
type VideoService ¶
type VideoService struct { feed.UnimplementedFeedServiceServer // contains filtered or unexported fields }
func NewVideoService ¶
func (*VideoService) CreateVideo ¶
func (*VideoService) GetVideo ¶
func (v *VideoService) GetVideo(videoId int64) (*model.VideoInfo, error)
func (*VideoService) ListVideosByAuthor ¶
func (v *VideoService) ListVideosByAuthor(ctx context.Context, req *feed.ListPublishVideosRequest) (*feed.ListPublishVideosResponse, error)
func (*VideoService) ListWatchVideos ¶
func (v *VideoService) ListWatchVideos(ctx context.Context, req *feed.ListWatchVideosRequest) (*feed.ListWatchVideosResponse, error)
Click to show internal directories.
Click to hide internal directories.