Documentation ¶
Index ¶
- func EncodeArtist(artist Artist) ([]byte, error)
- func EncodeArtistInfo(artists ArtistInfo) ([]byte, error)
- func EncodeInfoRetrieval(info InfoRetrieval) ([]byte, error)
- func EncodeJob(job Job) ([]byte, error)
- type Artist
- type ArtistInfo
- type InfoRetrieval
- type InfoRetrievalType
- type Job
- type JobType
- type Record
- type RecordType
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeArtist ¶
func EncodeArtistInfo ¶
func EncodeArtistInfo(artists ArtistInfo) ([]byte, error)
func EncodeInfoRetrieval ¶
func EncodeInfoRetrieval(info InfoRetrieval) ([]byte, error)
Types ¶
type Artist ¶
type Artist struct { Name string URL string ID string Genre string Country string Records []Record }
func DecodeArtist ¶
type ArtistInfo ¶
func DecodeArtistInfo ¶
func DecodeArtistInfo(encoded []byte) (ArtistInfo, error)
type InfoRetrieval ¶
type InfoRetrieval struct { Type InfoRetrievalType Data []byte Artist string Album string }
func DecodeInfoRetrieval ¶
func DecodeInfoRetrieval(encoded []byte) (InfoRetrieval, error)
type InfoRetrievalType ¶
type InfoRetrievalType int
const ( ArtistName InfoRetrievalType = 1 << iota ArtistData AlbumName AlbumData AlbumWithArtistData )
type Job ¶
type RecordType ¶
type RecordType int
const ( FullLength RecordType = 1 << iota Demo EP Compilation Live BoxedSet Single Video Split Other )
Click to show internal directories.
Click to hide internal directories.