Documentation ¶
Index ¶
- Constants
- type JsonArtists
- type MifasolMetaDataBlockVorbisComment
- type SongWithAuthorsEntity
- type Store
- func (s *Store) AddSongToPlaylist(externalTrn *sqlx.Tx, playlistId restApiV1.PlaylistId, songId restApiV1.SongId, ...) (*restApiV1.Playlist, error)
- func (s *Store) Close() error
- func (s *Store) CreateAlbum(externalTrn *sqlx.Tx, albumMeta *restApiV1.AlbumMeta) (*restApiV1.Album, error)
- func (s *Store) CreateArtist(externalTrn *sqlx.Tx, artistMeta *restApiV1.ArtistMeta) (*restApiV1.Artist, error)
- func (s *Store) CreateFavoritePlaylist(externalTrn *sqlx.Tx, favoritePlaylistMeta *restApiV1.FavoritePlaylistMeta, ...) (*restApiV1.FavoritePlaylist, error)
- func (s *Store) CreateFavoriteSong(externalTrn *sqlx.Tx, favoriteSongMeta *restApiV1.FavoriteSongMeta, check bool) (*restApiV1.FavoriteSong, error)
- func (s *Store) CreateInternalPlaylist(externalTrn *sqlx.Tx, playlistId restApiV1.PlaylistId, ...) (*restApiV1.Playlist, error)
- func (s *Store) CreatePlaylist(externalTrn *sqlx.Tx, playlistMeta *restApiV1.PlaylistMeta, check bool) (*restApiV1.Playlist, error)
- func (s *Store) CreateSong(externalTrn *sqlx.Tx, songNew *restApiV1.SongNew, check bool) (*restApiV1.Song, error)
- func (s *Store) CreateSongFromRawContent(externalTrn *sqlx.Tx, raw io.ReadCloser, lastAlbumId restApiV1.AlbumId) (*restApiV1.Song, error)
- func (s *Store) CreateUser(externalTrn *sqlx.Tx, userMetaComplete *restApiV1.UserMetaComplete) (*restApiV1.User, error)
- func (s *Store) DeleteAlbum(externalTrn *sqlx.Tx, albumId restApiV1.AlbumId) (*restApiV1.Album, error)
- func (s *Store) DeleteArtist(externalTrn *sqlx.Tx, artistId restApiV1.ArtistId) (*restApiV1.Artist, error)
- func (s *Store) DeleteFavoritePlaylist(externalTrn *sqlx.Tx, favoritePlaylistId restApiV1.FavoritePlaylistId) (*restApiV1.FavoritePlaylist, error)
- func (s *Store) DeleteFavoriteSong(externalTrn *sqlx.Tx, favoriteSongId restApiV1.FavoriteSongId) (*restApiV1.FavoriteSong, error)
- func (s *Store) DeletePlaylist(externalTrn *sqlx.Tx, playlistId restApiV1.PlaylistId) (*restApiV1.Playlist, error)
- func (s *Store) DeleteSong(externalTrn *sqlx.Tx, songId restApiV1.SongId) (*restApiV1.Song, error)
- func (s *Store) DeleteUser(externalTrn *sqlx.Tx, userId restApiV1.UserId) (*restApiV1.User, error)
- func (s *Store) GetDeletedAlbumIds(externalTrn *sqlx.Tx, fromTs int64) ([]restApiV1.AlbumId, error)
- func (s *Store) GetDeletedArtistIds(externalTrn *sqlx.Tx, fromTs int64) ([]restApiV1.ArtistId, error)
- func (s *Store) GetDeletedFavoritePlaylistIds(externalTrn *sqlx.Tx, fromTs int64) ([]restApiV1.FavoritePlaylistId, error)
- func (s *Store) GetDeletedFavoriteSongIds(externalTrn *sqlx.Tx, fromTs int64) ([]restApiV1.FavoriteSongId, error)
- func (s *Store) GetDeletedPlaylistIds(externalTrn *sqlx.Tx, fromTs int64) ([]restApiV1.PlaylistId, error)
- func (s *Store) GetDeletedSongIds(externalTrn *sqlx.Tx, fromTs int64) ([]restApiV1.SongId, error)
- func (s *Store) GetDeletedUserFavoritePlaylistIds(externalTrn *sqlx.Tx, fromTs int64, userId restApiV1.UserId) ([]restApiV1.PlaylistId, error)
- func (s *Store) GetDeletedUserFavoriteSongIds(externalTrn *sqlx.Tx, fromTs int64, userId restApiV1.UserId) ([]restApiV1.SongId, error)
- func (s *Store) GetDeletedUserIds(externalTrn *sqlx.Tx, fromTs int64) ([]restApiV1.UserId, error)
- func (s *Store) GetSongDirName(songId restApiV1.SongId) string
- func (s *Store) GetSongFileName(song *restApiV1.Song) string
- func (s *Store) ReadAlbum(externalTrn *sqlx.Tx, albumId restApiV1.AlbumId) (*restApiV1.Album, error)
- func (s *Store) ReadAlbums(externalTrn *sqlx.Tx, filter *restApiV1.AlbumFilter) ([]restApiV1.Album, error)
- func (s *Store) ReadArtist(externalTrn *sqlx.Tx, artistId restApiV1.ArtistId) (*restApiV1.Artist, error)
- func (s *Store) ReadArtists(externalTrn *sqlx.Tx, filter *restApiV1.ArtistFilter) ([]restApiV1.Artist, error)
- func (s *Store) ReadFavoritePlaylists(externalTrn *sqlx.Tx, filter *restApiV1.FavoritePlaylistFilter) ([]restApiV1.FavoritePlaylist, error)
- func (s *Store) ReadFavoriteSongs(externalTrn *sqlx.Tx, filter *restApiV1.FavoriteSongFilter) ([]restApiV1.FavoriteSong, error)
- func (s *Store) ReadFileSyncReport(fromTs int64, userId restApiV1.UserId) (*restApiV1.FileSyncReport, error)
- func (s *Store) ReadFileSyncSongs(externalTrn *sqlx.Tx, favoriteFromTs int64, favoriteUserId restApiV1.UserId) ([]restApiV1.FileSyncSong, error)
- func (s *Store) ReadPlaylist(externalTrn *sqlx.Tx, playlistId restApiV1.PlaylistId) (*restApiV1.Playlist, error)
- func (s *Store) ReadPlaylists(externalTrn *sqlx.Tx, filter *restApiV1.PlaylistFilter) ([]restApiV1.Playlist, error)
- func (s *Store) ReadSong(externalTrn *sqlx.Tx, songId restApiV1.SongId) (*restApiV1.Song, error)
- func (s *Store) ReadSongContent(song *restApiV1.Song) (*os.File, error)
- func (s *Store) ReadSongs(externalTrn *sqlx.Tx, filter *restApiV1.SongFilter) ([]restApiV1.Song, error)
- func (s *Store) ReadSyncReport(fromTs int64) (*restApiV1.SyncReport, error)
- func (s *Store) ReadUser(externalTrn *sqlx.Tx, userId restApiV1.UserId) (*restApiV1.User, error)
- func (s *Store) ReadUserByUserName(externalTrn *sqlx.Tx, userName string) (*restApiV1.User, error)
- func (s *Store) ReadUsers(externalTrn *sqlx.Tx, filter *restApiV1.UserFilter) ([]restApiV1.User, error)
- func (s *Store) UpdateAlbum(externalTrn *sqlx.Tx, albumId restApiV1.AlbumId, ...) (*restApiV1.Album, error)
- func (s *Store) UpdateArtist(externalTrn *sqlx.Tx, artistId restApiV1.ArtistId, ...) (*restApiV1.Artist, error)
- func (s *Store) UpdatePlaylist(externalTrn *sqlx.Tx, playlistId restApiV1.PlaylistId, ...) (*restApiV1.Playlist, error)
- func (s *Store) UpdateSong(externalTrn *sqlx.Tx, songId restApiV1.SongId, songMeta *restApiV1.SongMeta, ...) (*restApiV1.Song, error)
- func (s *Store) UpdateSongContentTag(externalTrn *sqlx.Tx, songEntity *entity.SongEntity) error
- func (s *Store) UpdateUser(externalTrn *sqlx.Tx, userId restApiV1.UserId, ...) (*restApiV1.User, error)
Constants ¶
View Source
const DefaultUserName = "mifasol"
View Source
const DefaultUserPassword = "mifasol"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonArtists ¶
type JsonArtists []entity.ArtistEntity
func (*JsonArtists) Scan ¶
func (j *JsonArtists) Scan(value interface{}) error
type MifasolMetaDataBlockVorbisComment ¶
type MifasolMetaDataBlockVorbisComment struct {
flacvorbis.MetaDataBlockVorbisComment
}
type SongWithAuthorsEntity ¶
type SongWithAuthorsEntity struct { entity.SongEntity JsonArtists JsonArtists `db:"json_artists"` }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func NewStore ¶
func NewStore(serverConfig *config.ServerConfig) *Store
func (*Store) AddSongToPlaylist ¶
func (*Store) CreateAlbum ¶
func (*Store) CreateArtist ¶
func (*Store) CreateFavoritePlaylist ¶
func (s *Store) CreateFavoritePlaylist(externalTrn *sqlx.Tx, favoritePlaylistMeta *restApiV1.FavoritePlaylistMeta, check bool) (*restApiV1.FavoritePlaylist, error)
func (*Store) CreateFavoriteSong ¶
func (s *Store) CreateFavoriteSong(externalTrn *sqlx.Tx, favoriteSongMeta *restApiV1.FavoriteSongMeta, check bool) (*restApiV1.FavoriteSong, error)
func (*Store) CreateInternalPlaylist ¶
func (*Store) CreatePlaylist ¶
func (*Store) CreateSong ¶
func (*Store) CreateSongFromRawContent ¶
func (*Store) CreateUser ¶
func (*Store) DeleteAlbum ¶
func (*Store) DeleteArtist ¶
func (*Store) DeleteFavoritePlaylist ¶
func (s *Store) DeleteFavoritePlaylist(externalTrn *sqlx.Tx, favoritePlaylistId restApiV1.FavoritePlaylistId) (*restApiV1.FavoritePlaylist, error)
func (*Store) DeleteFavoriteSong ¶
func (s *Store) DeleteFavoriteSong(externalTrn *sqlx.Tx, favoriteSongId restApiV1.FavoriteSongId) (*restApiV1.FavoriteSong, error)
func (*Store) DeletePlaylist ¶
func (*Store) DeleteSong ¶
func (*Store) DeleteUser ¶
func (*Store) GetDeletedAlbumIds ¶
func (*Store) GetDeletedArtistIds ¶
func (*Store) GetDeletedFavoritePlaylistIds ¶
func (*Store) GetDeletedFavoriteSongIds ¶
func (*Store) GetDeletedPlaylistIds ¶
func (*Store) GetDeletedSongIds ¶
func (*Store) GetDeletedUserFavoritePlaylistIds ¶
func (*Store) GetDeletedUserFavoriteSongIds ¶
func (*Store) GetDeletedUserIds ¶
func (*Store) ReadAlbums ¶
func (*Store) ReadArtist ¶
func (*Store) ReadArtists ¶
func (*Store) ReadFavoritePlaylists ¶
func (s *Store) ReadFavoritePlaylists(externalTrn *sqlx.Tx, filter *restApiV1.FavoritePlaylistFilter) ([]restApiV1.FavoritePlaylist, error)
func (*Store) ReadFavoriteSongs ¶
func (s *Store) ReadFavoriteSongs(externalTrn *sqlx.Tx, filter *restApiV1.FavoriteSongFilter) ([]restApiV1.FavoriteSong, error)
func (*Store) ReadFileSyncReport ¶
func (*Store) ReadFileSyncSongs ¶
func (*Store) ReadPlaylist ¶
func (*Store) ReadPlaylists ¶
func (*Store) ReadSongContent ¶
func (*Store) ReadSyncReport ¶
func (s *Store) ReadSyncReport(fromTs int64) (*restApiV1.SyncReport, error)
func (*Store) ReadUserByUserName ¶
func (*Store) UpdateAlbum ¶
func (*Store) UpdateArtist ¶
func (*Store) UpdatePlaylist ¶
func (*Store) UpdateSong ¶
func (*Store) UpdateSongContentTag ¶
UpdateSongContentTag update tags in song content
Source Files ¶
Click to show internal directories.
Click to hide internal directories.