Documentation ¶
Index ¶
- Variables
- func ConnectDB() error
- func CreateAlbum(album model.Album) error
- func CreateCollections()
- func CreateImage(album model.Album, image model.Image) error
- func DeleteAlbumById(in model.Album) error
- func DeleteAlbumByName(album model.Album) error
- func DeleteImageByAlbum(album model.Album) error
- func DeleteImageById(album model.Album, image model.Image) error
- func GetAlbumById(in model.Album) (model.Album, error)
- func GetAlbumByName(in model.Album) (model.Album, error)
- func GetAllAlbum() ([]model.Album, error)
- func GetAllImage(in model.Album) ([]model.Image, error)
- func GetImageById(in2 model.Image) (model.Image, error)
- func GetImageById2(in model.Album, in2 model.Image) (model.Image, error)
- func GetImageByName(in model.Album, in2 model.Image) (model.Image, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Client *mongo.Client Db *mongo.Database AlbumCollection *mongo.Collection ImageCollection *mongo.Collection )
Functions ¶
func CreateAlbum ¶
func CreateCollections ¶
func CreateCollections()
func DeleteAlbumById ¶
func DeleteAlbumByName ¶
func DeleteImageByAlbum ¶
func GetAllAlbum ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.