Versions in this module Expand all Collapse all v1 v1.0.1 Jan 13, 2023 Changes in this version + var DefaultConfig = Config + var ErrQueryRateExceeded = errors.New("query rate exceeded") + func New(rate, channels int, duration time.Duration) *fingerprint + func PrintVersion(w io.Writer) + type Client struct + func NewClient(key string) *Client + func NewClientWithConfig(cfg Config) (*Client, error) + func (client *Client) Lookup(fingerprint string, duration time.Duration, flags Meta) ([]*ResponseMatch, error) + func (client *Client) String() string + type Config struct + Base string + Key string + Rate uint + Timeout time.Duration + type Meta uint + const META_ALL + const META_COMPRESS + const META_MAX + const META_MIN + const META_NONE + const META_RECORDING + const META_RECORDINGID + const META_RELEASE + const META_RELEASEGROUP + const META_RELEASEGROUPID + const META_RELEASEID + const META_SOURCE + const META_TRACK + const META_USERMETA + func (m Meta) FlagString() string + func (m Meta) String() string + type Response struct + Error ResponseError + Results []*ResponseMatch + Status string + type ResponseArtist struct + Id string + Name string + type ResponseError struct + Code int + Message string + type ResponseGroup struct + Id string + Releases []ResponseRelease + Title string + Type string + type ResponseMatch struct + Id string + Recordings []ResponseRecording + Score float64 + func (r *ResponseMatch) String() string + type ResponseMedium struct + Format string + Position uint + TrackCount uint + Tracks []ResponseTrack + type ResponseRecording struct + Artists []ResponseArtist + Duration float64 + Id string + ReleaseGroups []ResponseGroup + Title string + type ResponseRelease struct + Id string + Mediums []ResponseMedium + type ResponseTrack struct + Artists []ResponseArtist + Id string + Position uint + Title string