Documentation ¶
Index ¶
- type AlbumsDAO
- func (als *AlbumsDAO) Count() (int, error)
- func (als *AlbumsDAO) FindAll() (interface{}, error)
- func (als *AlbumsDAO) FindByID(id string) (database.IDItem, error)
- func (als *AlbumsDAO) FindByName(name string) (database.IDItem, error)
- func (als *AlbumsDAO) GetItemName() string
- func (als *AlbumsDAO) GetName() string
- func (als *AlbumsDAO) InitialiseItem() database.IDItem
- func (als *AlbumsDAO) Insert(item database.IDItem) error
- func (als *AlbumsDAO) RemoveAll() (int, error)
- func (als *AlbumsDAO) RemoveByID(id string) error
- func (als *AlbumsDAO) Update(item database.IDItem) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumsDAO ¶
type AlbumsDAO struct {
// contains filtered or unexported fields
}
AlbumsDAO for handling access to a mongoDB collection
func NewAlbumsDAO ¶
NewAlbumsDAO - new instance of a collection of albums
func (*AlbumsDAO) FindByID ¶
FindByID - returns the specified item from the collection using item ID
func (*AlbumsDAO) FindByName ¶
FindByName - returns the specified item from the collection using item name
func (*AlbumsDAO) GetItemName ¶
GetItemName - returns name the items in the collection
func (*AlbumsDAO) InitialiseItem ¶
InitialiseItem - returns an empty item from the collection
func (*AlbumsDAO) RemoveByID ¶
RemoveByID - removes the specified item from the collection
Click to show internal directories.
Click to hide internal directories.