setlistfm

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	MBID           string `json:"mbid"`
	Name           string `json:"name"`
	SortName       string `json:"sortName"`
	Disambiguation string `json:"disambiguation"`
	URL            string `json:"url"`
}

type City

type City struct {
	ID        string  `json:"id"`
	Name      string  `json:"name"`
	State     string  `json:"state"`
	StateCode string  `json:"stateCode"`
	Coords    Coords  `json:"coords"`
	Country   Country `json:"country"`
}

type Coords

type Coords struct {
	Lat  float64 `json:"lat"`
	Long float64 `json:"long"`
}

type Country

type Country struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type GetSetlistByIDInput

type GetSetlistByIDInput struct {
	URL string
}

func NewGetSetlistByIDInput

func NewGetSetlistByIDInput(url string) GetSetlistByIDInput

func (GetSetlistByIDInput) SetlistID

func (in GetSetlistByIDInput) SetlistID() (*string, error)

func (GetSetlistByIDInput) Validate

func (in GetSetlistByIDInput) Validate() error

type Set

type Set struct {
	ID          string `json:"id"`
	VersionID   string `json:"versionId"`
	EventDate   string `json:"eventDate"`
	LastUpdated string `json:"lastUpdated"`
	Artist      Artist `json:"artist"`
	Venue       Venue  `json:"venue"`
	Tour        Tour   `json:"tour"`
	Sets        Sets   `json:"sets"`
	URL         string `json:"url"`
}

func (*Set) ArtistName

func (s *Set) ArtistName() string

func (*Set) Songs

func (s *Set) Songs() []string

func (*Set) Title

func (s *Set) Title() string

type Sets

type Sets struct {
	Set []Songs `json:"set"`
}

type Song

type Song struct {
	Name string `json:"name"`
}

type Songs

type Songs struct {
	Song   []Song `json:"song"`
	Encore int    `json:"encore,omitempty"`
}

type Tour

type Tour struct {
	Name string `json:"name"`
}

type Venue

type Venue struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	City City   `json:"city"`
	URL  string `json:"url"`
}

Jump to

Keyboard shortcuts

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