Versions in this module Expand all Collapse all v1 v1.0.2 May 30, 2025 Changes in this version + var IsTest = os.Getenv("IS_TEST") + var NetEaseAPIBaseURL = "http://netease-api:3335" + var NetEaseGCtx = &NetEaseContext + type Album struct + Artist struct{ ... } + IDStr string + Name string + PicURL string + PublishTime int64 + Type string + type AlbumDetail struct + Songs []Song + type CommentResult struct + Data struct{ ... } + Message string + type CommentType string + const CommentTypeAlbum + const CommentTypeSong + type GlobRecommendMusicRes struct + Result []struct{ ... } + type LoginStatusStruct struct + Data struct{ ... } + type MusicDetail struct + Code int + Privileges []struct{ ... } + Songs []struct{ ... } + type MusicIDName struct + ID string + Name string + type MusicInfo struct + ID string + Name string + URL string + type NetEaseContext struct + func (neteaseCtx *NetEaseContext) AsyncGetSearchRes(ctx context.Context, searchRes SearchMusic) (result []*SearchMusicItem, err error) + func (neteaseCtx *NetEaseContext) CheckIfLogin(ctx context.Context) bool + func (neteaseCtx *NetEaseContext) GetAlbumDetail(ctx context.Context, albumID string) (result *AlbumDetail, err error) + func (neteaseCtx *NetEaseContext) GetComment(ctx context.Context, commentType CommentType, id string) (res *CommentResult, err error) + func (neteaseCtx *NetEaseContext) GetDailyRecommendID() (musicIDs map[string]string, err error) + func (neteaseCtx *NetEaseContext) GetDetail(ctx context.Context, musicID string) (musicDetail *MusicDetail) + func (neteaseCtx *NetEaseContext) GetLyrics(ctx context.Context, songID string) (lyrics string, lyricsURL string) + func (neteaseCtx *NetEaseContext) GetMusicURL(ctx context.Context, ID string) (url string, err error) + func (neteaseCtx *NetEaseContext) GetMusicURLByID(ctx context.Context, musicIDName []*MusicIDName) (InfoList []MusicInfo, err error) + func (neteaseCtx *NetEaseContext) GetMusicURLByIDs(ctx context.Context, musicIDs []string) (musicIDURL map[string]string, err error) + func (neteaseCtx *NetEaseContext) GetNewRecommendMusic() (res []SearchMusicItem, err error) + func (neteaseCtx *NetEaseContext) GetQRBase64(ctx context.Context) (err error) + func (neteaseCtx *NetEaseContext) GetUniKey(ctx context.Context) (err error) + func (neteaseCtx *NetEaseContext) InnerAsyncGetSearchRes(ctx context.Context, searchMusic SearchMusic, err error, ...) + func (neteaseCtx *NetEaseContext) LoginNetEase(ctx context.Context) (err error) + func (neteaseCtx *NetEaseContext) LoginNetEaseQR(ctx context.Context) (err error) + func (neteaseCtx *NetEaseContext) RefreshLogin(ctx context.Context) error + func (neteaseCtx *NetEaseContext) SaveCookie(ctx context.Context) + func (neteaseCtx *NetEaseContext) SearchAlbumByKeyWord(ctx context.Context, keywords ...string) (result []*Album, err error) + func (neteaseCtx *NetEaseContext) SearchMusicByKeyWord(ctx context.Context, keywords ...string) (result []*SearchMusicItem, err error) + func (neteaseCtx *NetEaseContext) SearchPlaylistByKeyWord(ctx context.Context, keywords ...string) + func (neteaseCtx *NetEaseContext) TryGetLastCookie(ctx context.Context) + type Playlist struct + Code int + Result struct{ ... } + type SearchLyrics struct + Code int + Klyric struct{ ... } + Lrc struct{ ... } + LyricUser struct{ ... } + Qfy bool + Romalrc struct{ ... } + Sfy bool + Sgc bool + Tlyric struct{ ... } + TransUser struct{ ... } + type SearchMusic struct + Result struct{ ... } + type SearchMusicItem struct + ArtistName string + ID string + ImageKey string + Index int + Name string + PicURL string + SongURL string + type Song struct + Al struct{ ... } + Ar []struct{ ... } + ID int + Name string