Documentation ¶
Index ¶
Constants ¶
View Source
const (
BaseURL = "https://api.listenbrainz.org"
)
Variables ¶
View Source
var ErrListenBrainz = errors.New("listenbrainz error")
Functions ¶
This section is empty.
Types ¶
type AdditionalInfo ¶
type AdditionalInfo struct { TrackNumber int `json:"tracknumber,omitempty"` TrackMBID string `json:"track_mbid,omitempty"` RecordingMBID string `json:"recording_mbid,omitempty"` ReleaseMBID string `json:"release_mbid,omitempty"` Duration int `json:"duration,omitempty"` SubmissionClient string `json:"submission_client,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientCustom ¶
type Payload ¶
type Payload struct { ListenedAt int `json:"listened_at,omitempty"` TrackMetadata *TrackMetadata `json:"track_metadata"` }
type TrackMetadata ¶
type TrackMetadata struct { AdditionalInfo *AdditionalInfo `json:"additional_info"` ArtistName string `json:"artist_name,omitempty"` TrackName string `json:"track_name,omitempty"` ReleaseName string `json:"release_name,omitempty"` }
Click to show internal directories.
Click to hide internal directories.