azlyrics

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 11 Imported by: 1

README

azlyrics

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lyrics

type Lyrics struct {
	PersistentID pid.PersistentID `json:"persistent_id,omitempty" db:"id"`
	Search       string           `json:"search" db:"search"`
	Lyrics       *string          `json:"lyrics" db:"lyrics"`
}

type LyricsClient

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

func NewLyricsClient

func NewLyricsClient(cacheDir string, cacheTime time.Duration) (*LyricsClient, error)

func (*LyricsClient) LoadResult

func (c *LyricsClient) LoadResult(r *LyricsSearchResult) error

func (*LyricsClient) Search

func (c *LyricsClient) Search(t Track) (*LyricsSearch, error)

type LyricsSearch

type LyricsSearch struct {
	Artist  string                `json:"artist"`
	Song    string                `json:"song"`
	Search  string                `json:"search"`
	Results []*LyricsSearchResult `json:"results"`
}

type LyricsSearchResult

type LyricsSearchResult struct {
	Artist string  `json:"artist"`
	Song   string  `json:"song"`
	Search string  `json:"search"`
	URL    string  `json:"url"`
	Lyrics *string `json:"lyrics"`
}

type Track

type Track interface {
	GetArtist() string
	GetName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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