Documentation ¶
Index ¶
- func Generate(host, user, database string) error
- type DB
- func (d *DB) AddPlayedAlbum(ctx context.Context, album client.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) (libModel.AlbumFull, error)
- func (d *DB) GetAlbums(ctx context.Context, sortBy string, offset int, limit int) ([]libModel.AlbumWithArtists, error)
- func (d *DB) GetAllFileTracks(ctx context.Context) ([]libModel.Track, error)
- func (d *DB) GetAllPlaylists(ctx context.Context) ([]libModel.Playlist, error)
- func (d *DB) GetArtistFull(ctx context.Context, id uuid.UUID) (libModel.ArtistFull, error)
- func (d *DB) GetArtists(ctx context.Context) ([]libModel.Artist, error)
- func (d *DB) GetFileTrack(ctx context.Context, path string) (libModel.Track, error)
- func (d *DB) GetLastRun(ctx context.Context) (time.Time, error)
- func (d *DB) GetPlayedAlbums(ctx context.Context, offset int, limit int) ([]libModel.PlayedAlbum, error)
- func (d *DB) GetPlaylistFull(ctx context.Context, id uuid.UUID) (libModel.PlaylistFull, error)
- func (d *DB) GetStreamingAlbum(ctx context.Context, id string) (libModel.Album, error)
- func (d *DB) GetStreamingAlbumFull(ctx context.Context, id string) (libModel.AlbumFull, error)
- func (d *DB) GetStreamingArtist(ctx context.Context, id string) (libModel.Artist, error)
- func (d *DB) GetStreamingArtistFull(ctx context.Context, id string) (libModel.ArtistFull, error)
- func (d *DB) GetTrack(ctx context.Context, id uuid.UUID) (libModel.Track, error)
- func (d *DB) Search(ctx context.Context, query string, limit int) (libModel.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 Opts
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) GetAllFileTracks ¶
func (*DB) GetAllPlaylists ¶
func (*DB) GetArtistFull ¶
func (*DB) GetFileTrack ¶
func (*DB) GetPlayedAlbums ¶
func (*DB) GetPlaylistFull ¶
func (*DB) GetStreamingAlbum ¶
func (*DB) GetStreamingAlbumFull ¶
func (*DB) GetStreamingArtist ¶
func (*DB) GetStreamingArtistFull ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.