Documentation
¶
Index ¶
- func Generate(dsn string, schema string) error
- type DB
- func (d *DB) AddPlayedAlbum(ctx context.Context, album unification.AlbumFull) error
- func (d *DB) AddPlaylist(ctx context.Context, title, description string) error
- func (d *DB) AddStreamingAlbum(ctx context.Context, album *streaming.AlbumFull) error
- func (d *DB) AddStreamingArtist(ctx context.Context, artist *streaming.Artist) error
- func (d *DB) AddStreamingTrackToPlaylist(ctx context.Context, playlistID uuid.UUID, track *streaming.Track) error
- func (d *DB) AddTrackToPlaylist(ctx context.Context, playlistID uuid.UUID, trackID uuid.UUID) error
- func (d *DB) DeleteFileTrack(ctx context.Context, id uuid.UUID) error
- func (d *DB) GetAlbumFull(ctx context.Context, id uuid.UUID) (library.AlbumFull, error)
- func (d *DB) GetAlbumImage(ctx context.Context, id uuid.UUID) ([]byte, error)
- func (d *DB) GetAllFileTracks(ctx context.Context) ([]library.Track, error)
- func (d *DB) GetArtistFull(ctx context.Context, id uuid.UUID) (library.ArtistFull, error)
- func (d *DB) GetArtistImage(ctx context.Context, id uuid.UUID) ([]byte, error)
- func (d *DB) GetFileTrack(ctx context.Context, path string) (library.Track, error)
- func (d *DB) GetLastRun(ctx context.Context) (time.Time, error)
- func (d *DB) GetPlayedAlbumImage(ctx context.Context, id uuid.UUID) ([]byte, error)
- func (d *DB) GetPlaylistFull(ctx context.Context, id uuid.UUID) (library.PlaylistFull, error)
- func (d *DB) GetPlaylistImage(ctx context.Context, id uuid.UUID) ([]byte, error)
- func (d *DB) GetStreamingAlbum(ctx context.Context, id string) (library.Album, error)
- func (d *DB) GetStreamingAlbumFull(ctx context.Context, id string) (library.AlbumFull, error)
- func (d *DB) GetStreamingArtist(ctx context.Context, id string) (library.Artist, error)
- func (d *DB) GetStreamingArtistFull(ctx context.Context, id string) (library.ArtistFull, error)
- func (d *DB) GetTrack(ctx context.Context, id uuid.UUID) (library.Track, error)
- func (d *DB) ImportStreamingPlaylist(ctx context.Context, playlist *streaming.PlaylistFull, title string) error
- func (d *DB) ListAlbums(ctx context.Context, opt library.ListOpt) ([]library.AlbumWithArtists, error)
- func (d *DB) ListArtists(ctx context.Context, opt library.ListOpt) ([]library.Artist, error)
- func (d *DB) ListPlayedAlbums(ctx context.Context, opt library.ListOpt) ([]library.PlayedAlbum, error)
- func (d *DB) ListPlaylists(ctx context.Context, opt library.ListOpt) ([]library.Playlist, error)
- func (d *DB) Search(ctx context.Context, query string, limit int) (library.SearchRes, error)
- func (d *DB) SetLastRun(ctx context.Context, time time.Time) error
- func (d *DB) SyncFileTrack(ctx context.Context, track files.TrackFull) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddPlayedAlbum ¶
func (*DB) AddPlaylist ¶
func (*DB) AddStreamingAlbum ¶
func (*DB) AddStreamingArtist ¶
func (*DB) AddStreamingTrackToPlaylist ¶
func (*DB) AddTrackToPlaylist ¶
func (*DB) GetAlbumFull ¶
func (*DB) GetAlbumImage ¶ added in v0.4.1
func (*DB) GetAllFileTracks ¶
func (*DB) GetArtistFull ¶
func (*DB) GetArtistImage ¶ added in v0.4.1
func (*DB) GetFileTrack ¶
func (*DB) GetPlayedAlbumImage ¶ added in v0.4.1
func (*DB) GetPlaylistFull ¶
func (*DB) GetPlaylistImage ¶ added in v0.4.1
func (*DB) GetStreamingAlbum ¶
func (*DB) GetStreamingAlbumFull ¶
func (*DB) GetStreamingArtist ¶
func (*DB) GetStreamingArtistFull ¶
func (*DB) ImportStreamingPlaylist ¶ added in v0.4.1
func (*DB) ListAlbums ¶
func (*DB) ListArtists ¶
func (*DB) ListPlayedAlbums ¶
func (*DB) ListPlaylists ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.