data

package
v0.0.0-...-ad6571d Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "DEVELOPMENT"

Functions

func ExtractImageURL

func ExtractImageURL(image string) string

Types

type Album

type Album struct {
	AlbumPreview
	Artist ArtistPreview
	About  string

	Tracks []Track
}

func (*Album) Parse

func (a *Album) Parse(doc *goquery.Document) error

type AlbumAppearances

type AlbumAppearances struct {
	Id          int `json:"id"`
	TrackNumber int `json:"track_number"`
	Song        struct {
		Title string `json:"title"`
		Url   string `json:"url"`
	}
}

type AlbumPreview

type AlbumPreview struct {
	Name  string
	Image string
	URL   string
}

type Annotation

type Annotation struct {
	Body struct {
		HTML string `json:"html"`
	} `json:"body"`
	State    string `json:"state"`
	Verified bool   `json:"verified"`
}

type AnnotationsResponse

type AnnotationsResponse struct {
	Response struct {
		Referent struct {
			Annotations []Annotation `json:"annotations"`
		} `json:"referent"`
	} `json:"response"`
}

type Article

type Article struct {
	Title       string
	Subtitle    string
	HTML        string
	Authors     []Author
	PublishedAt time.Time
	Image       string
}

func (*Article) Parse

func (a *Article) Parse(doc *goquery.Document) error

type Artist

type Artist struct {
	Name        string
	Description string
	Albums      []AlbumPreview
	Image       string
}

func (*Artist) Parse

func (a *Artist) Parse(doc *goquery.Document) error

type ArtistPreview

type ArtistPreview struct {
	Name string
	URL  string
}

type Author

type Author struct {
	Name  string
	Role  string `json:"human_readable_role_for_display"`
	About string `json:"about_me_summary"`
}

type SearchResponse

type SearchResponse struct {
	Response struct {
		Sections sections
	}
}

type SearchResults

type SearchResults struct {
	Query    string
	Sections sections
}

type Song

type Song struct {
	Artist        string
	Title         string
	Image         string
	Lyrics        string
	Credits       map[string]string
	About         string
	Album         AlbumPreview
	ArtistPageURL string
}

func (*Song) Parse

func (s *Song) Parse(doc *goquery.Document) error

type Track

type Track struct {
	Title  string
	Url    string
	Number int
}

Jump to

Keyboard shortcuts

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