sps

package
v0.0.0-...-8a04416 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type Album

type Album struct {
	Title string
}

type DiscogsMasterResponse

type DiscogsMasterResponse struct {
	Year int `json:"year"`
}

type DiscogsSearchResponse

type DiscogsSearchResponse struct {
	Results    []DiscogsSearchResult `json:"results"`
	Pagination struct {
		Items   int `json:"items"`
		PerPage int `json:"per_page"`
		Page    int `json:"page"`
		Pages   int `json:"pages"`
		Urls    struct {
			Last string `json:"last"`
			Next string `json:"next"`
		} `json:"urls"`
	} `json:"pagination"`
}

type DiscogsSearchResult

type DiscogsSearchResult struct {
	Title     string `json:"title"`
	Community struct {
		Have int `json:"have"`
	} `json:"community"`
	Format    []string `json:"format"`
	Year      string   `json:"year"`
	Style     []string `json:"style"`
	Thumb     string   `json:"thumb"`
	Uri       string   `json:"uri"`
	Artist    []string `json:"artist"`
	MasterURL string   `json:"master_url"`
}

type SpotifyAlbumResponse

type SpotifyAlbumResponse struct {
	Tracks struct {
		Items []struct {
			URI string `json:"uri"`
		} `json:"items"`
	} `json:"tracks"`
}

type SpotifyPlaylistResponse

type SpotifyPlaylistResponse struct {
	Items []struct {
		Track struct {
			URI string `json:"uri"`
		} `json:"track"`
	} `json:"items"`
	Next string `json:"next"`
}

type SpotifyPlaylistSync

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

func NewSpotifyPlaylistSync

func NewSpotifyPlaylistSync() *SpotifyPlaylistSync

type SpotifySearchResponse

type SpotifySearchResponse struct {
	Albums struct {
		Items []struct {
			AlbumType string `json:"album_type"`
			Artists   []struct {
				Name string `json:"name"`
			} `json:"artists"`
			Name        string `json:"name"`
			ReleaseDate string `json:"release_date"`
			Href        string `json:"href"`
		}
	}
}

Jump to

Keyboard shortcuts

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