repository

package
v0.0.0-...-a88448b Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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

func NewAlbumsDAO(dbs *database.DBSession) *AlbumsDAO

NewAlbumsDAO - new instance of a collection of albums

func (*AlbumsDAO) Count

func (als *AlbumsDAO) Count() (int, error)

Count - returns the number of items in the collection

func (*AlbumsDAO) FindAll

func (als *AlbumsDAO) FindAll() (interface{}, error)

FindAll - returns all items from the collection

func (*AlbumsDAO) FindByID

func (als *AlbumsDAO) FindByID(id string) (database.IDItem, error)

FindByID - returns the specified item from the collection using item ID

func (*AlbumsDAO) FindByName

func (als *AlbumsDAO) FindByName(name string) (database.IDItem, error)

FindByName - returns the specified item from the collection using item name

func (*AlbumsDAO) GetItemName

func (als *AlbumsDAO) GetItemName() string

GetItemName - returns name the items in the collection

func (*AlbumsDAO) GetName

func (als *AlbumsDAO) GetName() string

GetName - returns name of collection

func (*AlbumsDAO) InitialiseItem

func (als *AlbumsDAO) InitialiseItem() database.IDItem

InitialiseItem - returns an empty item from the collection

func (*AlbumsDAO) Insert

func (als *AlbumsDAO) Insert(item database.IDItem) error

Insert - creates a new item in the collection

func (*AlbumsDAO) RemoveAll

func (als *AlbumsDAO) RemoveAll() (int, error)

RemoveAll - removes all items in the collection

func (*AlbumsDAO) RemoveByID

func (als *AlbumsDAO) RemoveByID(id string) error

RemoveByID - removes the specified item from the collection

func (*AlbumsDAO) Update

func (als *AlbumsDAO) Update(item database.IDItem) error

Update - updates an item in the collection

Jump to

Keyboard shortcuts

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