repositories

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: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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