Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeniusResponse ¶
type GeniusResponse struct { Meta struct { Status int `json:"status"` } `json:"meta"` Response struct { Hits []SearchResult `json:"hits"` } `json:"response"` }
GeniusResponse The results of calling genius api
type MeTrackResponse ¶
type MeTrackResponse struct { Href string `json:"href"` Items []struct { Track Track `json:"track"` } `json:"items"` Previous string `json:"previous"` Next string `json:"next"` Offset string `json:"offset"` Total string `json:"total"` }
MeTrackResponse /me/track response
type SearchResult ¶
type SearchResult struct { Highlights []interface{} `json:"highlights"` Index string `json:"index"` Type string `json:"type"` Result struct { AnnotationCount int `json:"annotation_count"` APIPath string `json:"api_path"` FullTitle string `json:"full_title"` HeaderImageThumbnailURL string `json:"header_image_thumbnail_url"` HeaderImageURL string `json:"header_image_url"` ID int `json:"id"` LyricsOwnerID int `json:"lyrics_owner_id"` LyricsState string `json:"lyrics_state"` Path string `json:"path"` PyongsCount int `json:"pyongs_count"` SongArtImageThumbnailURL string `json:"song_art_image_thumbnail_url"` SongArtImageURL string `json:"song_art_image_url"` Stats struct { UnreviewedAnnotations int `json:"unreviewed_annotations"` Concurrents int `json:"concurrents"` Hot bool `json:"hot"` Pageviews int `json:"pageviews"` } `json:"stats"` Title string `json:"title"` TitleWithFeatured string `json:"title_with_featured"` URL string `json:"url"` PrimaryArtist struct { APIPath string `json:"api_path"` HeaderImageURL string `json:"header_image_url"` ID int `json:"id"` ImageURL string `json:"image_url"` IsMemeVerified bool `json:"is_meme_verified"` IsVerified bool `json:"is_verified"` Name string `json:"name"` URL string `json:"url"` Iq int `json:"iq"` } `json:"primary_artist"` } `json:"result"` }
SearchResult search results from Genius API
Click to show internal directories.
Click to hide internal directories.