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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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