Documentation
¶
Index ¶
Constants ¶
View Source
const ( TEST_BASE_URI = "http://test.lyricfind.com/api_service" LIVE_BASE_URI = "http://api.lyricfind.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(env *Environment) *Client
func (*Client) Lyric ¶
func (c *Client) Lyric(loc location, useragent string, amg int) (*LyricsResponse, error)
func (*Client) Search ¶
func (c *Client) Search(loc location, options *SearchOptions) (*SearchResponse, error)
type Environment ¶
func (*Environment) Url ¶
func (e *Environment) Url() *url.URL
type LyricsResponse ¶
type SearchOptions ¶
type SearchResponse ¶
type Track ¶
type Track struct {
Amg int `json:"amg"`
Instrumental bool `json:"instrumental"`
Viewable bool `json:"viewable"`
HasLrc bool `json:"has_lrc"`
Title string `json:"title"`
Artist *Artist `json:"artist"`
Snippet string `json:"snippet"`
LastUpdate string `json:"last_update"`
Score float64 `json:"score"`
Lyrics string `json:"lyrics"`
Copyright string `json:"copyright"`
Writer string `json:"writer"`
}
Click to show internal directories.
Click to hide internal directories.