usecases

package
v0.0.0-...-6b488ef Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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