Documentation
¶
Index ¶
- type Artist
- type Artists
- type Client
- func (c *Client) Fingerprint(ctx context.Context, r io.Reader) (string, int, error)
- func (c *Client) Lookup(ctx context.Context, fingerprint string, duration int) (*Response, error)
- func (c *Client) LookupFile(ctx context.Context, file string) (*Response, error)
- func (c *Client) LookupReader(ctx context.Context, r io.Reader) (*Response, error)
- type Config
- type Recording
- type ReleaseGroup
- type ReleaseGroups
- type ReleaseType
- type Response
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Fingerprint ¶
func (*Client) LookupFile ¶
type Recording ¶
type Recording struct { ID string `json:"id"` Duration int `json:"duration"` Title string `json:"title"` ReleaseGroups ReleaseGroups `json:"releasegroups"` Artists Artists `json:"artists"` }
type ReleaseGroup ¶
type ReleaseGroup struct { ID string `json:"id"` Type ReleaseType `json:"type"` SecondaryTypes []ReleaseType `json:"secondarytypes"` Title string `json:"title"` }
type ReleaseGroups ¶
type ReleaseGroups []*ReleaseGroup
func (ReleaseGroups) Filter ¶
func (r ReleaseGroups) Filter(t ...ReleaseType) ReleaseGroups
func (ReleaseGroups) FilterNot ¶
func (r ReleaseGroups) FilterNot(t ...ReleaseType) ReleaseGroups
type ReleaseType ¶
type ReleaseType string
const Album ReleaseType = "Album"
const Compilation ReleaseType = "Compilation"
const Single ReleaseType = "Single"
Click to show internal directories.
Click to hide internal directories.