Documentation ¶
Index ¶
- Constants
- type Album
- type AlbumArtist
- type AlbumArtistEdge
- type AlbumArtistPagination
- type AlbumEdge
- type AlbumPagination
- type Connection
- type Edge
- type Genre
- type GenreEdge
- type GenrePagination
- type Node
- type PageInfo
- type Pagination
- type PaginationInfo
- type Track
- type TrackEdge
- type TrackPagination
Constants ¶
View Source
const AlbumArtistName = "AlbumArtist"
View Source
const AlbumName = "Album"
View Source
const GenreName = "Genre"
View Source
const TrackName = "Track"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { ID string `json:"id"` Name string `json:"name"` DiskNo int `json:"diskNo"` DiskTotal int `json:"diskTotal"` AlbumArtistID string `json:"albumArtist"` }
func NewAlbums ¶
func NewAlbums(albums dbmodel.AlbumSlice) []*Album
type AlbumArtist ¶
func NewAlbumArtist ¶
func NewAlbumArtist(albumArtist *dbmodel.AlbumArtist) *AlbumArtist
func NewAlbumArtists ¶
func NewAlbumArtists(albumArtists dbmodel.AlbumArtistSlice) []*AlbumArtist
func (AlbumArtist) IsNode ¶
func (AlbumArtist) IsNode()
type AlbumArtistEdge ¶
type AlbumArtistEdge struct { Cursor string `json:"cursor"` Node *AlbumArtist `json:"node"` }
func (AlbumArtistEdge) IsEdge ¶
func (AlbumArtistEdge) IsEdge()
type AlbumArtistPagination ¶
type AlbumArtistPagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Edges []*AlbumArtistEdge `json:"edges"` Nodes []*AlbumArtist `json:"nodes"` }
func NewAlbumArtistPagination ¶
func NewAlbumArtistPagination(albumArtists dbmodel.AlbumArtistSlice, total int64, limit int, offset *int) *AlbumArtistPagination
func (AlbumArtistPagination) IsPagination ¶
func (AlbumArtistPagination) IsPagination()
type AlbumPagination ¶
type AlbumPagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Edges []*AlbumEdge `json:"edges"` Nodes []*Album `json:"nodes"` }
func NewAlbumPagination ¶
func NewAlbumPagination(albums dbmodel.AlbumSlice, total int64, limit int, offset *int) *AlbumPagination
func (AlbumPagination) IsPagination ¶
func (AlbumPagination) IsPagination()
type Connection ¶
type Connection interface {
IsConnection()
}
type GenrePagination ¶
type GenrePagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Edges []*GenreEdge `json:"edges"` Nodes []*Genre `json:"nodes"` }
func NewGenrePagination ¶
func NewGenrePagination(genres dbmodel.GenreSlice, total int64, limit int, offset *int) *GenrePagination
func (GenrePagination) IsPagination ¶
func (GenrePagination) IsPagination()
type Pagination ¶
type Pagination interface {
IsPagination()
}
type PaginationInfo ¶
type Track ¶
type Track struct { ID string `json:"id"` Title string `json:"title"` Artist string `json:"artist"` Composer string `json:"composer"` TrackNo int `json:"trackNo"` Lyrics string `json:"lyrics"` Comment string `json:"comment"` Year int `json:"year"` URL string `json:"url"` DownloadURL string `json:"download_url"` AlbumID string `json:"album"` GenreID string `json:"genre"` AlbumArtistID string `json:"albumArtist"` }
func NewTracks ¶
func NewTracks(tracks dbmodel.TrackSlice) []*Track
type TrackPagination ¶
type TrackPagination struct { PageInfo *PaginationInfo `json:"pageInfo"` Edges []*TrackEdge `json:"edges"` Nodes []*Track `json:"nodes"` }
func NewTrackPagination ¶
func NewTrackPagination(tracks dbmodel.TrackSlice, total int64, limit int, offset *int) *TrackPagination
func (TrackPagination) IsPagination ¶
func (TrackPagination) IsPagination()
Click to show internal directories.
Click to hide internal directories.