Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpected = errors.New("Unexpected internal error")
View Source
var ErrVideoNotFound = errors.New("Video not found")
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase interface { Get(id int) (*entity.Video, error) GetAll() ([]*entity.Video, error) Create(in entity.Video) (*entity.Video, error) Update(in entity.Video) (*entity.Video, error) Delete(id int) error }
func NewUseCase ¶
func NewUseCase(video_repo repository.VideoRepository) UseCase
Click to show internal directories.
Click to hide internal directories.