Documentation ¶
Index ¶
Constants ¶
View Source
const (
Base62 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
)
Variables ¶
View Source
var ( ErrEmptyTrackList = errors.New("empty track list") ErrEmptyKuwoToken = errors.New("empty kuwo token") ErrEmptyKuwoLRC = errors.New("empty kuwo lyric") )
View Source
var ( ErrStatusNotOK = errors.New("status != 200") ErrNotImplemented = errors.New("not implemented yet") ErrNoAuthorizeInfo = errors.New("no authorize info") )
View Source
var ( ErrEmptyMidURLInfoField = errors.New("empty MidURLInfo field") ErrEmptyPURL = errors.New("empty PURL, may be VIP needed") )
View Source
var (
ErrEmptyKugouKRC = errors.New("empty kugou KRC")
)
Functions ¶
func GetSongIDPattern ¶
Types ¶
type IProvider ¶
type IProvider interface { SearchSongs(keyword string, page int, limit int) (SearchResult, error) ResolveSongURL(song Song) (Song, error) ResolveSongLyric(song Song, format string) (Song, error) HotPlaylist(page int, limit int) (Playlists, error) PlaylistDetail(pl Playlist) (Songs, error) ArtistSongs(id string) (Songs, error) AlbumSongs(id string) (Songs, error) Name() string Login() error RefreshToken() error }
func GetProvider ¶
GetProvider return the specified provider
type SearchResult ¶
type SearchResult []Song
Click to show internal directories.
Click to hide internal directories.