Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MediaRepository ¶
type MediaRepository interface { GetMediaByID(id string) (*interface{}, error) GetMediaByIDS(ids []string) (*[]interface{}, error) }
MediaRepository interface allows us to access the CRUD Operations in mongo here.
func NewMediaRepository ¶
func NewMediaRepository(database adapters.MongoAdapter) MediaRepository
NewMediaRepository is the single instance repo that is being created.
Click to show internal directories.
Click to hide internal directories.