Versions in this module Expand all Collapse all v0 v0.0.1 Aug 6, 2024 Changes in this version + const AuthHeader + const BaseURL + const DefaultAppName + const RateLimitAuth + const RateLimitHeader + const RateLimitUnauth + const TypeArtist + const TypeLabel + const TypeMaster + const TypeRelease + const UserAgentHeader + var EndpointAuthMap = map[string]AuthType + type AuthType string + const AuthTypeKeySecret + const AuthTypeNone + const AuthTypeOAuth + const AuthTypePAT + const AuthTypeUnknown + type Currency string + const CurrencyAUD + const CurrencyBRL + const CurrencyCAD + const CurrencyCHF + const CurrencyEUR + const CurrencyGBP + const CurrencyJPY + const CurrencyMXN + const CurrencyNZD + const CurrencySEK + const CurrencyUSD + const CurrencyZAR + type DiscogsClient struct + Config DiscogsConfig + Host string + func NewDiscogsClient(config *DiscogsConfig) *DiscogsClient + func (dc *DiscogsClient) Delete(ctx context.Context, endpoint string, params url.Values, ...) error + func (dc *DiscogsClient) Do(ctx context.Context, req *http.Request, res interface{}) error + func (dc *DiscogsClient) Get(ctx context.Context, endpoint string, params url.Values, ...) error + func (dc *DiscogsClient) Limit() rate.Limit + func (dc *DiscogsClient) Post(ctx context.Context, endpoint string, params url.Values, ...) error + func (dc *DiscogsClient) Put(ctx context.Context, endpoint string, params url.Values, ...) error + func (dc *DiscogsClient) Release(ctx context.Context, releaseID int64, options *ReleaseOptions) (*ReleaseResponse, error) + func (dc *DiscogsClient) Search(ctx context.Context, options *SearchOptions) (*SearchResponse, error) + func (dc *DiscogsClient) SetMaxRequests(requestsPerMinute int) + func (dc *DiscogsClient) Tokens() float64 + type DiscogsConfig struct + AccessToken *string + AppName string + ConsumerKey *string + ConsumerSecret *string + MaxRequests int + type ErrMatchNotFound struct + Endpoint string + func (e *ErrMatchNotFound) Error() string + type ErrMissingCredentials struct + Endpoint string + RequiredAuthType AuthType + func (e *ErrMissingCredentials) Error() string + type ErrReleaseNotFound struct + ReleaseID int + func (e *ErrReleaseNotFound) Error() string + type HTTPError struct + Message string + StatusCode int + func (e *HTTPError) Error() string + type Pagination struct + Items int64 + Page int64 + Pages int64 + PerPage int64 + Urls ... + type PaginationParams struct + Page *int + PerPage *int + type ReleaseOptions struct + CurrAbr Currency + type ReleaseResponse struct + Artists []struct{ ... } + Community ... + Companies []struct{ ... } + Country string + DataQuality string + DateAdded *time.Time + DateChanged *time.Time + EstimatedWeight *int64 + ExtraArtists []struct{ ... } + FormatQuantity *int64 + Formats []struct{ ... } + Genres []string + ID int64 + Identifiers []struct{ ... } + Images []struct{ ... } + Labels []struct{ ... } + LowestPrice *float64 + MasterID *int64 + MasterURL string + Notes string + NumForSale *int64 + Released string + ReleasedFormatted string + ResourceURL string + Series []interface{} + Status string + Styles []string + Thumb string + Title string + Tracklist []struct{ ... } + URI string + Videos []struct{ ... } + Year *int64 + type SearchOptions struct + ANV string + Artist string + Barcode string + CatNo string + Contributor string + Country string + Credit string + Format string + Genre string + Label string + Pagination PaginationParams + Query string + ReleaseTitle string + Style string + Submitter string + Title string + Track string + Type Type + Year string + type SearchResponse struct + Pagination *Pagination + Results []SearchResult + type SearchResult struct + CatNo string + Community struct{ ... } + Country string + Format []string + Genre []string + ID *int64 + Label []string + ResourceURL string + Style []string + Thumb string + Title string + Type Type + URI string + Year string + type Type string