setlist

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist added in v0.11.7

type Artist struct {
	Mbid           string `json:"mbid"`
	Tmid           int    `json:"tmid"`
	Name           string `json:"name"`
	SorName        string `json:"sortName"`
	Disambiguation string `json:"disambiguation"`
	Url            string `json:"url"`
}

type City added in v0.11.7

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

type Client added in v0.11.7

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

func NewClient added in v0.11.7

func NewClient(config Config, client client.Getter) *Client

func (*Client) ArtistYear added in v0.11.7

func (s *Client) ArtistYear(arid string, year int) []Setlist

type Config added in v0.11.7

type Config struct {
	ApiKey string
}

type Country added in v0.11.7

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

type Set added in v0.11.7

type Set struct {
	Encore int    `json:"encore"`
	Name   string `json:"name"`
	Songs  []Song `json:"song"`
}

type Setlist

type Setlist 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"`
	Info        string `json:"info"`
	Url         string `json:"url"`
}

func (Setlist) EventTime added in v0.11.7

func (s Setlist) EventTime() time.Time

type SetlistPage added in v0.11.7

type SetlistPage struct {
	Type         string    `json:"type"`
	ItemsPerPage int       `json:"itemsPerPage"`
	Page         int       `json:"page"`
	Total        int       `json:"total"`
	Setlist      []Setlist `json:"setlist"`
}

type Sets added in v0.11.7

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

type Song added in v0.11.7

type Song struct {
	Name string `json:"name"`
	Info string `json:"info"`
	Tape bool   `json:"tape"`
}

type Tour added in v0.11.7

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

type Venue added in v0.11.7

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

Jump to

Keyboard shortcuts

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