Documentation ¶
Index ¶
- type Album
- type Artist
- type CreateAlbumParams
- type CreateArtistParams
- type CreateTrackParams
- type DBTX
- type GetAlbumsByArtistAndNameParams
- type GetAllTracksRow
- type GetTrackRow
- type GetTracksByAlbumRow
- type Queries
- func (q *Queries) CreateAlbum(ctx context.Context, arg CreateAlbumParams) (Album, error)
- func (q *Queries) CreateArtist(ctx context.Context, arg CreateArtistParams) (Artist, error)
- func (q *Queries) CreateTrack(ctx context.Context, arg CreateTrackParams) (Track, error)
- func (q *Queries) DeleteAllAlbums(ctx context.Context) error
- func (q *Queries) DeleteAllArtists(ctx context.Context) error
- func (q *Queries) DeleteAllTracks(ctx context.Context) error
- func (q *Queries) GetAlbum(ctx context.Context, id string) (Album, error)
- func (q *Queries) GetAlbumByPath(ctx context.Context, path string) (Album, error)
- func (q *Queries) GetAlbumsByArtist(ctx context.Context, artistID string) ([]Album, error)
- func (q *Queries) GetAlbumsByArtistAndName(ctx context.Context, arg GetAlbumsByArtistAndNameParams) ([]Album, error)
- func (q *Queries) GetAllAlbums(ctx context.Context) ([]Album, error)
- func (q *Queries) GetAllArtists(ctx context.Context) ([]Artist, error)
- func (q *Queries) GetAllTracks(ctx context.Context) ([]GetAllTracksRow, error)
- func (q *Queries) GetArtist(ctx context.Context, id string) (Artist, error)
- func (q *Queries) GetArtistByName(ctx context.Context, name string) ([]Artist, error)
- func (q *Queries) GetArtistByPath(ctx context.Context, path string) (Artist, error)
- func (q *Queries) GetTrack(ctx context.Context, id string) (GetTrackRow, error)
- func (q *Queries) GetTrackByPath(ctx context.Context, path string) (Track, error)
- func (q *Queries) GetTracksByAlbum(ctx context.Context, albumID string) ([]GetTracksByAlbumRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAlbumParams ¶
type CreateArtistParams ¶
type CreateTrackParams ¶
type CreateTrackParams struct { ID string `json:"id"` TrackNumber int32 `json:"trackNumber"` Name string `json:"name"` Path string `json:"path"` CoverArt string `json:"coverArt"` BestQualityFile string `json:"bestQualityFile"` MobileQualityFile string `json:"mobileQualityFile"` AlbumID string `json:"albumId"` ArtistID string `json:"artistId"` }
type GetAlbumsByArtistAndNameParams ¶ added in v0.2.3
type GetAllTracksRow ¶
type GetAllTracksRow struct { ID string `json:"id"` TrackNumber int32 `json:"trackNumber"` Name string `json:"name"` CoverArt string `json:"coverArt"` Path string `json:"path"` BestQualityFile string `json:"bestQualityFile"` MobileQualityFile string `json:"mobileQualityFile"` AlbumID string `json:"albumId"` ArtistID string `json:"artistId"` AlbumName string `json:"albumName"` ArtistName string `json:"artistName"` }
type GetTrackRow ¶
type GetTrackRow struct { ID string `json:"id"` TrackNumber int32 `json:"trackNumber"` Name string `json:"name"` CoverArt string `json:"coverArt"` Path string `json:"path"` BestQualityFile string `json:"bestQualityFile"` MobileQualityFile string `json:"mobileQualityFile"` AlbumID string `json:"albumId"` ArtistID string `json:"artistId"` AlbumName string `json:"albumName"` ArtistName string `json:"artistName"` }
type GetTracksByAlbumRow ¶
type GetTracksByAlbumRow struct { ID string `json:"id"` TrackNumber int32 `json:"trackNumber"` Name string `json:"name"` CoverArt string `json:"coverArt"` Path string `json:"path"` BestQualityFile string `json:"bestQualityFile"` MobileQualityFile string `json:"mobileQualityFile"` AlbumID string `json:"albumId"` ArtistID string `json:"artistId"` AlbumName string `json:"albumName"` ArtistName string `json:"artistName"` }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateAlbum ¶
func (*Queries) CreateArtist ¶
func (*Queries) CreateTrack ¶
func (*Queries) GetAlbumByPath ¶ added in v0.3.0
func (*Queries) GetAlbumsByArtist ¶
func (*Queries) GetAlbumsByArtistAndName ¶ added in v0.2.3
func (*Queries) GetAllArtists ¶
func (*Queries) GetAllTracks ¶
func (q *Queries) GetAllTracks(ctx context.Context) ([]GetAllTracksRow, error)
func (*Queries) GetArtistByName ¶ added in v0.2.1
func (*Queries) GetArtistByPath ¶ added in v0.3.0
func (*Queries) GetTrackByPath ¶ added in v0.3.0
func (*Queries) GetTracksByAlbum ¶
type Track ¶
type Track struct { ID string `json:"id"` TrackNumber int32 `json:"trackNumber"` Name string `json:"name"` CoverArt string `json:"coverArt"` Path string `json:"path"` BestQualityFile string `json:"bestQualityFile"` MobileQualityFile string `json:"mobileQualityFile"` AlbumID string `json:"albumId"` ArtistID string `json:"artistId"` }
Click to show internal directories.
Click to hide internal directories.