discogs

package
v0.0.0-...-0747294 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DiscogsApiBaseUrl = "https://api.discogs.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ReleasesService *ReleasesService
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client *http.Client) *Client

type ReleaseModel

type ReleaseModel struct {
	ID            int     `json:"id"`
	Status        string  `json:"status"`
	Year          int     `json:"year"`
	ResourceURL   string  `json:"resource_url"`
	URI           string  `json:"uri"`
	NumberForSale int     `json:"num_for_sale"`
	LowestPrice   float32 `json:"lowest_price"`
	MasterID      int     `json:"master_id"`
	MasterURL     string  `json:"master_url"`
	Title         string  `json:"title"`
	Country       string  `json:"country"`
	ReleasedOn    string  `json:"released"`
}

type ReleasesService

type ReleasesService struct {
	// contains filtered or unexported fields
}

func (*ReleasesService) GetRelease

func (s *ReleasesService) GetRelease(id string) (*ReleaseModel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL