Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaUsecase ¶
type MediaUsecase interface { GetMediaByID(id string) (*interface{}, error) GetMediaByIDS(ids []string) (*[]interface{}, error) }
MediaUsecase is an interface from which our api module can access our repository of all our models
func NewMediaUsecase ¶
func NewMediaUsecase(repo repositories.MediaRepository) MediaUsecase
NewMediaUsecase is used to create a single instance of the usecase
Click to show internal directories.
Click to hide internal directories.