Documentation ¶
Index ¶
- Constants
- func AddAlbumTrack(oid string, number int, name string) (*document.Album, error)
- func AddTrackArtist(oid string, number int, artist *document.Artist) (*document.Album, error)
- func CreateAlbum(name string, year int, artist *document.Artist, image image.Image) (*document.Album, error)
- func CreateAppKey(role string) (string, string, error)
- func CreateArtist(name string, image image.Image) (*document.Artist, error)
- func CreateImage(image image.Image) (*document.Image, error)
- func CreateMasterKey() (string, string, error)
- func FindAlbumById(oid string) (*document.Album, error)
- func FindAlbums(skip int, pageSize int) ([]document.Album, error)
- func FindArtistById(oid string) (*document.Artist, error)
- func FindArtists(skip int, pageSize int) ([]document.Artist, error)
- func RemoveAlbum(oid string) error
- func RemoveAlbumTrack(oid string, trackNumber int) (*document.Album, error)
- func RemoveArtist(oid string) error
- func RemoveTrackArtist(oid string, trackNumber int, artist *document.Artist) (*document.Album, error)
- func UpdateAlbum(oid string, name string, year int, artist *document.Artist, image image.Image) (*document.Album, error)
- func UpdateAlbumTrack(oid string, number int, name string) (*document.Album, error)
- func UpdateArtist(oid string, name string, image image.Image) (*document.Artist, error)
Constants ¶
View Source
const AlbumCollection = "album"
View Source
const ArtistCollection = "artist"
View Source
const KeyCollection = "key"
View Source
const LargeWidth = 256
View Source
const MediumWidth = 128
View Source
const SmallWidth = 64
Variables ¶
This section is empty.
Functions ¶
func AddAlbumTrack ¶
func AddTrackArtist ¶
func CreateAlbum ¶
func CreateMasterKey ¶
func RemoveAlbum ¶
func RemoveArtist ¶
func RemoveTrackArtist ¶
func UpdateAlbum ¶
func UpdateAlbumTrack ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.