Documentation ¶
Index ¶
- Variables
- type Database
- func (db *Database) MusicAlbumsCreate(a *models.Album) (*models.Album, error)
- func (db *Database) MusicAlbumsDelete(albumID int64) error
- func (db *Database) MusicAlbumsGet(albumID int64) (*models.AlbumWithArtists, error)
- func (db *Database) MusicAlbumsGetList(start, count int64, orderBy []string) ([]*models.AlbumWithArtists, error)
- func (db *Database) MusicAlbumsGetListByArtist(artistID int64, orderBy []string) ([]*models.Album, error)
- func (db *Database) MusicAlbumsSearchByName(start, count int64, orderBy []string, name string) ([]*models.AlbumWithArtists, error)
- func (db *Database) MusicAlbumsUpdateImage(albumID int64, image string) error
- func (db *Database) MusicAlbumsUpdateTexts(album *models.Album) error
- func (db *Database) MusicAristsAppendTrack(artistID, trackID int64) error
- func (db *Database) MusicAristsCreate(artist *models.Artist) (*models.Artist, error)
- func (db *Database) MusicAristsDelete(artistID int64) error
- func (db *Database) MusicAristsDeleteTrack(artistID, trackID int64) error
- func (db *Database) MusicAristsGet(artistID int64) (*models.Artist, error)
- func (db *Database) MusicAristsGetList(start, count int64, orderBy []string) ([]*models.Artist, error)
- func (db *Database) MusicAristsSearchByName(start, count int64, orderBy []string, name string) ([]*models.Artist, error)
- func (db *Database) MusicAristsUpdateImage(artistID int64, image string) error
- func (db *Database) MusicAristsUpdateTexts(artist *models.Artist) error
- func (db *Database) MusicCreate(fileMiddle, fileHigh, image string, duration, uid int64, info *music.Music, ...) (int64, error)
- func (db *Database) MusicGenresAppendTrack(genreID, trackID int64) error
- func (db *Database) MusicGenresCreate(g *models.Genre) (*models.Genre, error)
- func (db *Database) MusicGenresDelete(genreID int64) error
- func (db *Database) MusicGenresDeleteTrack(genreID, trackID int64) error
- func (db *Database) MusicGenresGet(genreID int64) (*models.Genre, error)
- func (db *Database) MusicGenresGetAlbums(start, count, genreID int64, orderBy []string) ([]*models.AlbumWithArtists, error)
- func (db *Database) MusicGenresGetArtists(start, count, genreID int64, orderBy []string) ([]*models.Artist, error)
- func (db *Database) MusicGenresGetList(orderBy []string) ([]*models.Genre, error)
- func (db *Database) MusicGenresGetTracks(start, count, genreID int64, orderBy []string) ([]*models.TrackWithAlbumArtists, error)
- func (db *Database) MusicGenresUpdateTexts(genre *models.Genre) error
- func (db *Database) MusicGetAlbumPicture(album, artist string) (has bool, pic string, err error)
- func (db *Database) MusicIsExists(trackName, album, artist string) bool
- func (db *Database) MusicTagsAppendAlbum(tagID, albumID int64) error
- func (db *Database) MusicTagsAppendArtist(tagID, artistID int64) error
- func (db *Database) MusicTagsAppendTrack(tagID, trackID int64) error
- func (db *Database) MusicTagsCreate(t *models.Tag) (*models.Tag, error)
- func (db *Database) MusicTagsDelete(tagID int64) error
- func (db *Database) MusicTagsDeleteAlbum(tagID, albumID int64) error
- func (db *Database) MusicTagsDeleteArtist(tagID, artistID int64) error
- func (db *Database) MusicTagsDeleteTrack(tagID, trackID int64) error
- func (db *Database) MusicTagsGet(tagID int64) (*models.Tag, error)
- func (db *Database) MusicTagsGetAlbums(start, count int64, tags, notTags []int64, orderBy []string) ([]*models.AlbumWithArtists, error)
- func (db *Database) MusicTagsGetArtists(start, count int64, tags, notTags []int64, orderBy []string) ([]*models.Artist, error)
- func (db *Database) MusicTagsGetList(orderBy []string) ([]*models.TagWithVariants, error)
- func (db *Database) MusicTagsGetListByAlbum(albumID int64, orderBy []string) ([]*models.Tag, error)
- func (db *Database) MusicTagsGetListByArtist(artistID int64, orderBy []string) ([]*models.Tag, error)
- func (db *Database) MusicTagsGetListByTrack(trackID int64, orderBy []string) ([]*models.Tag, error)
- func (db *Database) MusicTagsGetTracks(start, count int64, tags, notTags []int64, orderBy []string) ([]*models.TrackWithAlbumArtists, error)
- func (db *Database) MusicTagsSearchByName(orderBy []string, name string) ([]*models.TagWithVariants, error)
- func (db *Database) MusicTagsUpdateTexts(tag *models.Tag) error
- func (db *Database) MusicTracksDelete(trackID int64) error
- func (db *Database) MusicTracksGet(trackID int64) (*models.TrackWithGenresAlbumArtists, error)
- func (db *Database) MusicTracksGetList(start, count int64, orderBy []string) ([]*models.TrackWithAlbumArtists, error)
- func (db *Database) MusicTracksGetListByAlbum(albumID int64, orderBy []string) ([]*models.TrackWithAlbumArtists, error)
- func (db *Database) MusicTracksGetListByArtist(artistID int64, orderBy []string) ([]*models.TrackWithAlbumArtists, error)
- func (db *Database) MusicTracksSearchByName(start, count int64, orderBy []string, name string) ([]*models.TrackWithAlbumArtists, error)
- func (db *Database) MusicTracksUpdateAlbum(trackID, albumID int64) error
- func (db *Database) MusicTracksUpdateTexts(track *models.Track) error
- func (db *Database) SettingsGetList() (map[string]string, error)
- func (db *Database) SettingsUpdateList(setsData map[string]string) error
- func (db *Database) TasksCreate(fileName string, uid int64) (taskID int64, err error)
- func (db *Database) TasksGet(taskID, userID int64) (*models.Task, error)
- func (db *Database) TasksGetListByUser(start, count, userID int64, orderBy []string) ([]*models.Task, error)
- func (db *Database) TasksSetStatusError(taskID int64, errorText string) error
- func (db *Database) TasksSetStatusInProgress(taskID int64) error
- func (db *Database) TasksSetStatusSuccess(taskID, trackID int64) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) MusicAlbumsCreate ¶
func (*Database) MusicAlbumsDelete ¶
func (*Database) MusicAlbumsGet ¶
func (db *Database) MusicAlbumsGet(albumID int64) (*models.AlbumWithArtists, error)
func (*Database) MusicAlbumsGetList ¶
func (*Database) MusicAlbumsGetListByArtist ¶
func (*Database) MusicAlbumsSearchByName ¶
func (*Database) MusicAlbumsUpdateImage ¶
func (*Database) MusicAlbumsUpdateTexts ¶
func (*Database) MusicAristsAppendTrack ¶
func (*Database) MusicAristsCreate ¶
func (*Database) MusicAristsDelete ¶
func (*Database) MusicAristsDeleteTrack ¶
func (*Database) MusicAristsGet ¶
func (*Database) MusicAristsGetList ¶
func (*Database) MusicAristsSearchByName ¶
func (*Database) MusicAristsUpdateImage ¶
func (*Database) MusicAristsUpdateTexts ¶
func (*Database) MusicCreate ¶
func (db *Database) MusicCreate(fileMiddle, fileHigh, image string, duration, uid int64, info *music.Music, preData *models.PreMusicData) (int64, error)
MusicCreate creates new music row in the DB
func (*Database) MusicGenresAppendTrack ¶
func (*Database) MusicGenresCreate ¶
func (*Database) MusicGenresDelete ¶
func (*Database) MusicGenresDeleteTrack ¶
func (*Database) MusicGenresGet ¶
func (*Database) MusicGenresGetAlbums ¶
func (*Database) MusicGenresGetArtists ¶
func (*Database) MusicGenresGetList ¶
func (*Database) MusicGenresGetTracks ¶
func (*Database) MusicGenresUpdateTexts ¶
func (*Database) MusicGetAlbumPicture ¶
MusicGetAlbumPicture returns true if album already has picture also returns name of the picture file
func (*Database) MusicIsExists ¶
MusicIsExists returns true if db already has row with that data
func (*Database) MusicTagsAppendAlbum ¶
func (*Database) MusicTagsAppendArtist ¶
func (*Database) MusicTagsAppendTrack ¶
func (*Database) MusicTagsCreate ¶
func (*Database) MusicTagsDelete ¶
func (*Database) MusicTagsDeleteAlbum ¶
func (*Database) MusicTagsDeleteArtist ¶
func (*Database) MusicTagsDeleteTrack ¶
func (*Database) MusicTagsGetAlbums ¶
func (*Database) MusicTagsGetArtists ¶
func (*Database) MusicTagsGetList ¶
func (db *Database) MusicTagsGetList(orderBy []string) ([]*models.TagWithVariants, error)
func (*Database) MusicTagsGetListByAlbum ¶
func (*Database) MusicTagsGetListByArtist ¶
func (*Database) MusicTagsGetListByTrack ¶
func (*Database) MusicTagsGetTracks ¶
func (*Database) MusicTagsSearchByName ¶
func (*Database) MusicTagsUpdateTexts ¶
func (*Database) MusicTracksDelete ¶
func (*Database) MusicTracksGet ¶
func (db *Database) MusicTracksGet(trackID int64) (*models.TrackWithGenresAlbumArtists, error)
func (*Database) MusicTracksGetList ¶
func (*Database) MusicTracksGetListByAlbum ¶
func (*Database) MusicTracksGetListByArtist ¶
func (*Database) MusicTracksSearchByName ¶
func (*Database) MusicTracksUpdateAlbum ¶
func (*Database) MusicTracksUpdateTexts ¶
func (*Database) SettingsUpdateList ¶
func (*Database) TasksCreate ¶
func (*Database) TasksGetListByUser ¶
func (*Database) TasksSetStatusError ¶
func (*Database) TasksSetStatusInProgress ¶
func (*Database) TasksSetStatusSuccess ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.