usecase

package
v0.0.0-...-bb74961 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewVideo

func NewVideo(repo repository.DatabaseI, logger kitlog.Logger) *Video

func (*Video) CheckHealthReadiness

func (v *Video) CheckHealthReadiness(ctx context.Context) error

func (*Video) CreateNewVideo

func (v *Video) CreateNewVideo(ctx context.Context, req *model.CreateVideoRequest) error

func (*Video) DeleteVideo

func (v *Video) DeleteVideo(ctx context.Context, id int64) error

func (*Video) GetDetailVideo

func (v *Video) GetDetailVideo(ctx context.Context, id int64) (*model.VideoDetail, error)

func (*Video) GetListVideo

func (v *Video) GetListVideo(ctx context.Context, req *model.GetListVideoRequest) (*model.VideoWithMetadata, error)

func (*Video) GetStatisticVideo

func (v *Video) GetStatisticVideo(ctx context.Context) ([]*model.VideoStatisticUC, error)

func (*Video) UpdateVideo

func (v *Video) UpdateVideo(ctx context.Context, req *model.UpdateVideoRequest) error

Jump to

Keyboard shortcuts

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