Documentation ¶
Index ¶
- type UsecaseI
- type Video
- func (v *Video) CheckHealthReadiness(ctx context.Context) error
- func (v *Video) CreateNewVideo(ctx context.Context, req *model.CreateVideoRequest) error
- func (v *Video) DeleteVideo(ctx context.Context, id int64) error
- func (v *Video) GetDetailVideo(ctx context.Context, id int64) (*model.VideoDetail, error)
- func (v *Video) GetListVideo(ctx context.Context, req *model.GetListVideoRequest) (*model.VideoWithMetadata, error)
- func (v *Video) GetStatisticVideo(ctx context.Context) ([]*model.VideoStatisticUC, error)
- func (v *Video) UpdateVideo(ctx context.Context, req *model.UpdateVideoRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsecaseI ¶
type UsecaseI interface { GetListVideo(ctx context.Context, req *model.GetListVideoRequest) (*model.VideoWithMetadata, error) GetDetailVideo(ctx context.Context, id int64) (*model.VideoDetail, error) GetStatisticVideo(ctx context.Context) ([]*model.VideoStatisticUC, error) CreateNewVideo(ctx context.Context, req *model.CreateVideoRequest) error UpdateVideo(ctx context.Context, req *model.UpdateVideoRequest) error DeleteVideo(ctx context.Context, id int64) error CheckHealthReadiness(ctx context.Context) error }
type Video ¶
type Video struct {
// contains filtered or unexported fields
}
func (*Video) CheckHealthReadiness ¶
func (*Video) CreateNewVideo ¶
func (*Video) GetDetailVideo ¶
func (*Video) GetListVideo ¶
func (v *Video) GetListVideo(ctx context.Context, req *model.GetListVideoRequest) (*model.VideoWithMetadata, error)
func (*Video) GetStatisticVideo ¶
func (*Video) UpdateVideo ¶
Click to show internal directories.
Click to hide internal directories.