Documentation
¶
Overview ¶
Package service 的 AlbumService impl 结构体;一行转发方法由 album_gen.go 生成。
Package service 的 ArtistService impl 结构体;一行转发方法由 artist_gen.go 生成。
Package service 的 AuthServer:需要 Set-Cookie 或组合调用的登录 RPC 手写, 纯转发由 auth_gen.go 生成。托管账号的持久化与调用方权限由 server 适配器维护。
Package service 的 FMService impl 结构体;一行转发方法由 fm_gen.go 生成。
Package service 的 PlaylistServer:结构体与组合方法;一行转发方法由 playlist_gen.go 生成。
Package service 的 RecommendService impl 结构体;一行转发方法由 recommend_gen.go 生成。
Package service 的 SearchService impl 结构体;一行转发方法由 search_gen.go 生成。
Package service 是 grpc service impl 层(薄路由,无业务逻辑)。
一行转发方法由 *_gen.go 生成(kite-gen-service,见 internal/servicegen); 本目录手写的只有各 Server 结构体 / 构造器和带副作用或组合逻辑的方法。 service 只是 gRPC server interface 的 adapter,只被 internal/server 引用; CLI 与 TUI 不经过它,共享边界是 engine + endpoint(见 docs/adr/shared-boundary-engine.md)。
Package service 的 UserServer:结构体与组合方法;一行转发方法由 user_gen.go 生成。
Index ¶
- type AlbumServer
- func (s *AlbumServer) AlbumDynamic(ctx context.Context, req *mmpb.AlbumDynamicRequest) (*mmpb.AlbumDynamicResponse, error)
- func (s *AlbumServer) AlbumSongQuality(ctx context.Context, req *mmpb.AlbumSongQualityRequest) (*mmpb.AlbumSongQualityResponse, error)
- func (s *AlbumServer) AllNewAlbums(ctx context.Context, req *mmpb.AllNewAlbumsRequest) (*mmpb.AllNewAlbumsResponse, error)
- func (s *AlbumServer) GetAlbum(ctx context.Context, req *mmpb.GetAlbumRequest) (*mmpb.GetAlbumResponse, error)
- func (s *AlbumServer) NewAlbumShelf(ctx context.Context, req *mmpb.NewAlbumShelfRequest) (*mmpb.NewAlbumShelfResponse, error)
- func (s *AlbumServer) NewestAlbums(ctx context.Context, req *mmpb.NewestAlbumsRequest) (*mmpb.NewestAlbumsResponse, error)
- func (s *AlbumServer) SubscribeAlbum(ctx context.Context, req *mmpb.SubscribeAlbumRequest) (*mmpb.SubscribeAlbumResponse, error)
- func (s *AlbumServer) SubscribedAlbums(ctx context.Context, req *mmpb.SubscribedAlbumsRequest) (*mmpb.SubscribedAlbumsResponse, error)
- func (s *AlbumServer) UnsubscribeAlbum(ctx context.Context, req *mmpb.UnsubscribeAlbumRequest) (*mmpb.UnsubscribeAlbumResponse, error)
- type ArtistServer
- func (s *ArtistServer) Albums(ctx context.Context, req *mmpb.AlbumsRequest) (*mmpb.AlbumsResponse, error)
- func (s *ArtistServer) AllSongs(ctx context.Context, req *mmpb.AllSongsRequest) (*mmpb.AllSongsResponse, error)
- func (s *ArtistServer) ArtistSubscribe(ctx context.Context, req *mmpb.ArtistSubscribeRequest) (*mmpb.ArtistSubscribeResponse, error)
- func (s *ArtistServer) Desc(ctx context.Context, req *mmpb.DescRequest) (*mmpb.DescResponse, error)
- func (s *ArtistServer) Fans(ctx context.Context, req *mmpb.FansRequest) (*mmpb.FansResponse, error)
- func (s *ArtistServer) GetArtist(ctx context.Context, req *mmpb.GetArtistRequest) (*mmpb.GetArtistResponse, error)
- func (s *ArtistServer) Similar(ctx context.Context, req *mmpb.SimilarRequest) (*mmpb.SimilarResponse, error)
- func (s *ArtistServer) TopArtists(ctx context.Context, req *mmpb.TopArtistsRequest) (*mmpb.TopArtistsResponse, error)
- func (s *ArtistServer) TopSongs(ctx context.Context, req *mmpb.TopSongsRequest) (*mmpb.TopSongsResponse, error)
- type AuthServer
- func (s *AuthServer) CheckQrcode(ctx context.Context, req *mmpb.CheckQrcodeRequest) (*mmpb.CheckQrcodeResponse, error)
- func (s *AuthServer) LoginByCellphone(ctx context.Context, req *mmpb.LoginByCellphoneRequest) (*mmpb.LoginByCellphoneResponse, error)
- func (s *AuthServer) LoginQrcode(ctx context.Context, req *mmpb.LoginQrcodeRequest) (*mmpb.LoginQrcodeResponse, error)
- func (s *AuthServer) LoginStatus(ctx context.Context, req *mmpb.LoginStatusRequest) (*mmpb.LoginStatusResponse, error)
- func (s *AuthServer) Logout(ctx context.Context, req *mmpb.LogoutRequest) (*mmpb.LogoutResponse, error)
- func (s *AuthServer) RefreshLogin(ctx context.Context, _ *mmpb.RefreshLoginRequest) (*mmpb.RefreshLoginResponse, error)
- func (s *AuthServer) SendCaptcha(ctx context.Context, req *mmpb.SendCaptchaRequest) (*mmpb.SendCaptchaResponse, error)
- type FMServer
- type PlaylistServer
- func (s *PlaylistServer) AllTracks(ctx context.Context, req *mmpb.AllTracksRequest) (*mmpb.AllTracksResponse, error)
- func (s *PlaylistServer) BrowseHot(ctx context.Context, req *mmpb.BrowseHotRequest) (*mmpb.BrowseHotResponse, error)
- func (s *PlaylistServer) CatList(ctx context.Context, req *mmpb.CatListRequest) (*mmpb.CatListResponse, error)
- func (s *PlaylistServer) Create(ctx context.Context, req *mmpb.CreateRequest) (*mmpb.CreateResponse, error)
- func (s *PlaylistServer) Delete(ctx context.Context, req *mmpb.DeleteRequest) (*mmpb.DeleteResponse, error)
- func (s *PlaylistServer) GetPlaylist(ctx context.Context, req *mmpb.GetPlaylistRequest) (*mmpb.GetPlaylistResponse, error)
- func (s *PlaylistServer) HighQuality(ctx context.Context, req *mmpb.HighQualityRequest) (*mmpb.HighQualityResponse, error)
- func (s *PlaylistServer) HighQualityTags(ctx context.Context, req *mmpb.HighQualityTagsRequest) (*mmpb.HighQualityTagsResponse, error)
- func (s *PlaylistServer) RelatedPlaylistRecommend(ctx context.Context, req *mmpb.RelatedPlaylistRecommendRequest) (*mmpb.RelatedPlaylistRecommendResponse, error)
- func (s *PlaylistServer) SimilarPlaylists(ctx context.Context, req *mmpb.SimilarPlaylistsRequest) (*mmpb.SimilarPlaylistsResponse, error)
- func (s *PlaylistServer) Subscribe(ctx context.Context, req *mmpb.SubscribeRequest) (*mmpb.SubscribeResponse, error)
- func (s *PlaylistServer) Subscribers(ctx context.Context, req *mmpb.SubscribersRequest) (*mmpb.SubscribersResponse, error)
- func (s *PlaylistServer) UpdateDesc(ctx context.Context, req *mmpb.UpdateDescRequest) (*mmpb.UpdateDescResponse, error)
- func (s *PlaylistServer) UpdateName(ctx context.Context, req *mmpb.UpdateNameRequest) (*mmpb.UpdateNameResponse, error)
- func (s *PlaylistServer) UpdateTags(ctx context.Context, req *mmpb.UpdateTagsRequest) (*mmpb.UpdateTagsResponse, error)
- func (s *PlaylistServer) UpdateTracks(ctx context.Context, req *mmpb.UpdateTracksRequest) (*mmpb.UpdateTracksResponse, error)
- type RecommendServer
- func (s *RecommendServer) DailyRecommendPlaylists(ctx context.Context, req *mmpb.DailyRecommendPlaylistsRequest) (*mmpb.DailyRecommendPlaylistsResponse, error)
- func (s *RecommendServer) GetDailyRecommend(ctx context.Context, req *mmpb.GetDailyRecommendRequest) (*mmpb.GetDailyRecommendResponse, error)
- func (s *RecommendServer) RecommendNewSongs(ctx context.Context, req *mmpb.RecommendNewSongsRequest) (*mmpb.RecommendNewSongsResponse, error)
- func (s *RecommendServer) RecommendPlaylists(ctx context.Context, req *mmpb.RecommendPlaylistsRequest) (*mmpb.RecommendPlaylistsResponse, error)
- type SearchServer
- func (s *SearchServer) DefaultKeyword(ctx context.Context, req *mmpb.DefaultKeywordRequest) (*mmpb.DefaultKeywordResponse, error)
- func (s *SearchServer) Hot(ctx context.Context, req *mmpb.HotRequest) (*mmpb.HotResponse, error)
- func (s *SearchServer) HotDetail(ctx context.Context, req *mmpb.HotDetailRequest) (*mmpb.HotDetailResponse, error)
- func (s *SearchServer) Search(ctx context.Context, req *mmpb.SearchRequest) (*mmpb.SearchResponse, error)
- func (s *SearchServer) Suggest(ctx context.Context, req *mmpb.SuggestRequest) (*mmpb.SuggestResponse, error)
- type SongServer
- func (s *SongServer) CheckAvailable(ctx context.Context, req *mmpb.CheckAvailableRequest) (*mmpb.CheckAvailableResponse, error)
- func (s *SongServer) ChorusTime(ctx context.Context, req *mmpb.ChorusTimeRequest) (*mmpb.ChorusTimeResponse, error)
- func (s *SongServer) CreatorInfo(ctx context.Context, req *mmpb.CreatorInfoRequest) (*mmpb.CreatorInfoResponse, error)
- func (s *SongServer) DisallowRecommend(ctx context.Context, req *mmpb.DisallowRecommendRequest) (*mmpb.DisallowRecommendResponse, error)
- func (s *SongServer) DynamicCover(ctx context.Context, req *mmpb.DynamicCoverRequest) (*mmpb.DynamicCoverResponse, error)
- func (s *SongServer) GetLyric(ctx context.Context, req *mmpb.GetLyricRequest) (*mmpb.GetLyricResponse, error)
- func (s *SongServer) GetSongDetail(ctx context.Context, req *mmpb.GetSongDetailRequest) (*mmpb.GetSongDetailResponse, error)
- func (s *SongServer) GetSongURL(ctx context.Context, req *mmpb.GetSongURLRequest) (*mmpb.GetSongURLResponse, error)
- func (s *SongServer) GetWordLyric(ctx context.Context, req *mmpb.GetWordLyricRequest) (*mmpb.GetWordLyricResponse, error)
- func (s *SongServer) IsLike(ctx context.Context, req *mmpb.IsLikeRequest) (*mmpb.IsLikeResponse, error)
- func (s *SongServer) Like(ctx context.Context, req *mmpb.LikeRequest) (*mmpb.LikeResponse, error)
- func (s *SongServer) LikeCount(ctx context.Context, req *mmpb.LikeCountRequest) (*mmpb.LikeCountResponse, error)
- func (s *SongServer) LikedList(ctx context.Context, req *mmpb.LikedListRequest) (*mmpb.LikedListResponse, error)
- func (s *SongServer) QualityDetail(ctx context.Context, req *mmpb.QualityDetailRequest) (*mmpb.QualityDetailResponse, error)
- func (s *SongServer) SimilarSongs(ctx context.Context, req *mmpb.SimilarSongsRequest) (*mmpb.SimilarSongsResponse, error)
- func (s *SongServer) Trash(ctx context.Context, req *mmpb.TrashRequest) (*mmpb.TrashResponse, error)
- type UserServer
- func (s *UserServer) Account(ctx context.Context, req *mmpb.AccountRequest) (*mmpb.AccountResponse, error)
- func (s *UserServer) Detail(ctx context.Context, req *mmpb.DetailRequest) (*mmpb.DetailResponse, error)
- func (s *UserServer) DetailByName(ctx context.Context, req *mmpb.DetailByNameRequest) (*mmpb.DetailByNameResponse, error)
- func (s *UserServer) Events(ctx context.Context, req *mmpb.EventsRequest) (*mmpb.EventsResponse, error)
- func (s *UserServer) FollowEachOther(ctx context.Context, req *mmpb.FollowEachOtherRequest) (*mmpb.FollowEachOtherResponse, error)
- func (s *UserServer) Followeds(ctx context.Context, req *mmpb.FollowedsRequest) (*mmpb.FollowedsResponse, error)
- func (s *UserServer) Follows(ctx context.Context, req *mmpb.FollowsRequest) (*mmpb.FollowsResponse, error)
- func (s *UserServer) Level(ctx context.Context, req *mmpb.LevelRequest) (*mmpb.LevelResponse, error)
- func (s *UserServer) Record(ctx context.Context, req *mmpb.RecordRequest) (*mmpb.RecordResponse, error)
- func (s *UserServer) SimilarUsers(ctx context.Context, req *mmpb.SimilarUsersRequest) (*mmpb.SimilarUsersResponse, error)
- func (s *UserServer) SubCount(ctx context.Context, req *mmpb.SubCountRequest) (*mmpb.SubCountResponse, error)
- func (s *UserServer) UserPlaylist(ctx context.Context, req *mmpb.UserPlaylistRequest) (*mmpb.UserPlaylistResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumServer ¶
type AlbumServer struct {
mmpb.UnimplementedAlbumServiceServer
// contains filtered or unexported fields
}
AlbumServer 实现 AlbumServiceServer,持有 *engine.Engine。
func NewAlbumServer ¶
func NewAlbumServer(eng *engine.Engine) *AlbumServer
NewAlbumServer 创建 AlbumServer。
func (*AlbumServer) AlbumDynamic ¶
func (s *AlbumServer) AlbumDynamic(ctx context.Context, req *mmpb.AlbumDynamicRequest) (*mmpb.AlbumDynamicResponse, error)
AlbumDynamic 转发 albumendpoint.AlbumDynamic(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) AlbumSongQuality ¶
func (s *AlbumServer) AlbumSongQuality(ctx context.Context, req *mmpb.AlbumSongQualityRequest) (*mmpb.AlbumSongQualityResponse, error)
AlbumSongQuality 转发 albumendpoint.AlbumSongQuality(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) AllNewAlbums ¶
func (s *AlbumServer) AllNewAlbums(ctx context.Context, req *mmpb.AllNewAlbumsRequest) (*mmpb.AllNewAlbumsResponse, error)
AllNewAlbums 转发 albumendpoint.AllNewAlbums(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) GetAlbum ¶
func (s *AlbumServer) GetAlbum(ctx context.Context, req *mmpb.GetAlbumRequest) (*mmpb.GetAlbumResponse, error)
GetAlbum 转发 albumendpoint.GetAlbum(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) NewAlbumShelf ¶
func (s *AlbumServer) NewAlbumShelf(ctx context.Context, req *mmpb.NewAlbumShelfRequest) (*mmpb.NewAlbumShelfResponse, error)
NewAlbumShelf 转发 albumendpoint.NewAlbumShelf(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) NewestAlbums ¶
func (s *AlbumServer) NewestAlbums(ctx context.Context, req *mmpb.NewestAlbumsRequest) (*mmpb.NewestAlbumsResponse, error)
NewestAlbums 转发 albumendpoint.NewestAlbums(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) SubscribeAlbum ¶
func (s *AlbumServer) SubscribeAlbum(ctx context.Context, req *mmpb.SubscribeAlbumRequest) (*mmpb.SubscribeAlbumResponse, error)
SubscribeAlbum 转发 albumendpoint.Subscribe(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) SubscribedAlbums ¶
func (s *AlbumServer) SubscribedAlbums(ctx context.Context, req *mmpb.SubscribedAlbumsRequest) (*mmpb.SubscribedAlbumsResponse, error)
SubscribedAlbums 转发 albumendpoint.SubscribedAlbums(语义注释见 proto 与 endpoint 声明)。
func (*AlbumServer) UnsubscribeAlbum ¶
func (s *AlbumServer) UnsubscribeAlbum(ctx context.Context, req *mmpb.UnsubscribeAlbumRequest) (*mmpb.UnsubscribeAlbumResponse, error)
UnsubscribeAlbum 转发 albumendpoint.Unsubscribe(语义注释见 proto 与 endpoint 声明)。
type ArtistServer ¶
type ArtistServer struct {
mmpb.UnimplementedArtistServiceServer
// contains filtered or unexported fields
}
ArtistServer 实现 ArtistServiceServer,持有 *engine.Engine。
func NewArtistServer ¶
func NewArtistServer(eng *engine.Engine) *ArtistServer
NewArtistServer 创建 ArtistServer。
func (*ArtistServer) Albums ¶
func (s *ArtistServer) Albums(ctx context.Context, req *mmpb.AlbumsRequest) (*mmpb.AlbumsResponse, error)
Albums 转发 artistendpoint.Albums(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) AllSongs ¶
func (s *ArtistServer) AllSongs(ctx context.Context, req *mmpb.AllSongsRequest) (*mmpb.AllSongsResponse, error)
AllSongs 转发 artistendpoint.AllSongs(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) ArtistSubscribe ¶
func (s *ArtistServer) ArtistSubscribe(ctx context.Context, req *mmpb.ArtistSubscribeRequest) (*mmpb.ArtistSubscribeResponse, error)
ArtistSubscribe 转发 artistendpoint.Subscribe(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) Desc ¶
func (s *ArtistServer) Desc(ctx context.Context, req *mmpb.DescRequest) (*mmpb.DescResponse, error)
Desc 转发 artistendpoint.Desc(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) Fans ¶
func (s *ArtistServer) Fans(ctx context.Context, req *mmpb.FansRequest) (*mmpb.FansResponse, error)
Fans 转发 artistendpoint.Fans(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) GetArtist ¶
func (s *ArtistServer) GetArtist(ctx context.Context, req *mmpb.GetArtistRequest) (*mmpb.GetArtistResponse, error)
GetArtist 转发 artistendpoint.GetArtist(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) Similar ¶
func (s *ArtistServer) Similar(ctx context.Context, req *mmpb.SimilarRequest) (*mmpb.SimilarResponse, error)
Similar 转发 artistendpoint.Similar(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) TopArtists ¶
func (s *ArtistServer) TopArtists(ctx context.Context, req *mmpb.TopArtistsRequest) (*mmpb.TopArtistsResponse, error)
TopArtists 转发 artistendpoint.TopArtists(语义注释见 proto 与 endpoint 声明)。
func (*ArtistServer) TopSongs ¶
func (s *ArtistServer) TopSongs(ctx context.Context, req *mmpb.TopSongsRequest) (*mmpb.TopSongsResponse, error)
TopSongs 转发 artistendpoint.TopSongs(语义注释见 proto 与 endpoint 声明)。
type AuthServer ¶
type AuthServer struct {
mmpb.UnimplementedAuthServiceServer
// contains filtered or unexported fields
}
AuthServer 实现 AuthServiceServer。
func NewAuthServer ¶
func NewAuthServer(eng *engine.Engine) *AuthServer
NewAuthServer 创建 AuthServer。
func (*AuthServer) CheckQrcode ¶
func (s *AuthServer) CheckQrcode(ctx context.Context, req *mmpb.CheckQrcodeRequest) (*mmpb.CheckQrcodeResponse, error)
CheckQrcode 轮询二维码登录状态。
func (*AuthServer) LoginByCellphone ¶
func (s *AuthServer) LoginByCellphone(ctx context.Context, req *mmpb.LoginByCellphoneRequest) (*mmpb.LoginByCellphoneResponse, error)
LoginByCellphone 手机号登录,返回完整的登录会话。
func (*AuthServer) LoginQrcode ¶
func (s *AuthServer) LoginQrcode(ctx context.Context, req *mmpb.LoginQrcodeRequest) (*mmpb.LoginQrcodeResponse, error)
LoginQrcode 转发 authendpoint.LoginQrcode(语义注释见 proto 与 endpoint 声明)。
func (*AuthServer) LoginStatus ¶
func (s *AuthServer) LoginStatus(ctx context.Context, req *mmpb.LoginStatusRequest) (*mmpb.LoginStatusResponse, error)
LoginStatus 查询当前登录态。
func (*AuthServer) Logout ¶
func (s *AuthServer) Logout(ctx context.Context, req *mmpb.LogoutRequest) (*mmpb.LogoutResponse, error)
Logout 转发 authendpoint.Logout(语义注释见 proto 与 endpoint 声明)。
func (*AuthServer) RefreshLogin ¶ added in v0.4.0
func (s *AuthServer) RefreshLogin(ctx context.Context, _ *mmpb.RefreshLoginRequest) (*mmpb.RefreshLoginResponse, error)
RefreshLogin 刷新登录态,返回合并了上游新下发值的完整 cookie。
func (*AuthServer) SendCaptcha ¶
func (s *AuthServer) SendCaptcha(ctx context.Context, req *mmpb.SendCaptchaRequest) (*mmpb.SendCaptchaResponse, error)
SendCaptcha 转发 authendpoint.SendCaptcha(语义注释见 proto 与 endpoint 声明)。
type FMServer ¶
type FMServer struct {
mmpb.UnimplementedFMServiceServer
// contains filtered or unexported fields
}
FMServer 实现 FMServiceServer,持有 *engine.Engine。
func (*FMServer) GetPersonalFM ¶
func (s *FMServer) GetPersonalFM(ctx context.Context, req *mmpb.GetPersonalFMRequest) (*mmpb.GetPersonalFMResponse, error)
GetPersonalFM 转发 fmendpoint.GetPersonalFM(语义注释见 proto 与 endpoint 声明)。
type PlaylistServer ¶
type PlaylistServer struct {
mmpb.UnimplementedPlaylistServiceServer
// contains filtered or unexported fields
}
PlaylistServer 实现 PlaylistServiceServer,持有 *engine.Engine。
func NewPlaylistServer ¶
func NewPlaylistServer(eng *engine.Engine) *PlaylistServer
NewPlaylistServer 创建 PlaylistServer。
func (*PlaylistServer) AllTracks ¶
func (s *PlaylistServer) AllTracks(ctx context.Context, req *mmpb.AllTracksRequest) (*mmpb.AllTracksResponse, error)
AllTracks 按歌单顺序分页获取歌曲(两次上游调用的组合,见 compose.PlaylistTracks)。
func (*PlaylistServer) BrowseHot ¶
func (s *PlaylistServer) BrowseHot(ctx context.Context, req *mmpb.BrowseHotRequest) (*mmpb.BrowseHotResponse, error)
BrowseHot 转发 playlistendpoint.BrowseHot(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) CatList ¶
func (s *PlaylistServer) CatList(ctx context.Context, req *mmpb.CatListRequest) (*mmpb.CatListResponse, error)
CatList 转发 playlistendpoint.CatList(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) Create ¶
func (s *PlaylistServer) Create(ctx context.Context, req *mmpb.CreateRequest) (*mmpb.CreateResponse, error)
Create 转发 playlistendpoint.Create(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) Delete ¶
func (s *PlaylistServer) Delete(ctx context.Context, req *mmpb.DeleteRequest) (*mmpb.DeleteResponse, error)
Delete 转发 playlistendpoint.Delete(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) GetPlaylist ¶
func (s *PlaylistServer) GetPlaylist(ctx context.Context, req *mmpb.GetPlaylistRequest) (*mmpb.GetPlaylistResponse, error)
GetPlaylist 转发 playlistendpoint.GetPlaylist(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) HighQuality ¶
func (s *PlaylistServer) HighQuality(ctx context.Context, req *mmpb.HighQualityRequest) (*mmpb.HighQualityResponse, error)
HighQuality 转发 playlistendpoint.HighQuality(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) HighQualityTags ¶
func (s *PlaylistServer) HighQualityTags(ctx context.Context, req *mmpb.HighQualityTagsRequest) (*mmpb.HighQualityTagsResponse, error)
HighQualityTags 转发 playlistendpoint.HighQualityTags(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) RelatedPlaylistRecommend ¶
func (s *PlaylistServer) RelatedPlaylistRecommend(ctx context.Context, req *mmpb.RelatedPlaylistRecommendRequest) (*mmpb.RelatedPlaylistRecommendResponse, error)
RelatedPlaylistRecommend 转发 playlistendpoint.RelatedPlaylistRecommend(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) SimilarPlaylists ¶
func (s *PlaylistServer) SimilarPlaylists(ctx context.Context, req *mmpb.SimilarPlaylistsRequest) (*mmpb.SimilarPlaylistsResponse, error)
SimilarPlaylists 转发 playlistendpoint.SimilarPlaylists(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) Subscribe ¶
func (s *PlaylistServer) Subscribe(ctx context.Context, req *mmpb.SubscribeRequest) (*mmpb.SubscribeResponse, error)
Subscribe 转发 playlistendpoint.Subscribe(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) Subscribers ¶
func (s *PlaylistServer) Subscribers(ctx context.Context, req *mmpb.SubscribersRequest) (*mmpb.SubscribersResponse, error)
Subscribers 转发 playlistendpoint.Subscribers(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) UpdateDesc ¶
func (s *PlaylistServer) UpdateDesc(ctx context.Context, req *mmpb.UpdateDescRequest) (*mmpb.UpdateDescResponse, error)
UpdateDesc 转发 playlistendpoint.UpdateDesc(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) UpdateName ¶
func (s *PlaylistServer) UpdateName(ctx context.Context, req *mmpb.UpdateNameRequest) (*mmpb.UpdateNameResponse, error)
UpdateName 转发 playlistendpoint.UpdateName(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) UpdateTags ¶
func (s *PlaylistServer) UpdateTags(ctx context.Context, req *mmpb.UpdateTagsRequest) (*mmpb.UpdateTagsResponse, error)
UpdateTags 转发 playlistendpoint.UpdateTags(语义注释见 proto 与 endpoint 声明)。
func (*PlaylistServer) UpdateTracks ¶
func (s *PlaylistServer) UpdateTracks(ctx context.Context, req *mmpb.UpdateTracksRequest) (*mmpb.UpdateTracksResponse, error)
UpdateTracks 转发 playlistendpoint.UpdateTracks(语义注释见 proto 与 endpoint 声明)。
type RecommendServer ¶
type RecommendServer struct {
mmpb.UnimplementedRecommendServiceServer
// contains filtered or unexported fields
}
RecommendServer 实现 RecommendServiceServer,持有 *engine.Engine。
func NewRecommendServer ¶
func NewRecommendServer(eng *engine.Engine) *RecommendServer
NewRecommendServer 创建 RecommendServer。
func (*RecommendServer) DailyRecommendPlaylists ¶
func (s *RecommendServer) DailyRecommendPlaylists(ctx context.Context, req *mmpb.DailyRecommendPlaylistsRequest) (*mmpb.DailyRecommendPlaylistsResponse, error)
DailyRecommendPlaylists 转发 recommendendpoint.DailyRecommendPlaylists(语义注释见 proto 与 endpoint 声明)。
func (*RecommendServer) GetDailyRecommend ¶
func (s *RecommendServer) GetDailyRecommend(ctx context.Context, req *mmpb.GetDailyRecommendRequest) (*mmpb.GetDailyRecommendResponse, error)
GetDailyRecommend 转发 recommendendpoint.GetDailyRecommend(语义注释见 proto 与 endpoint 声明)。
func (*RecommendServer) RecommendNewSongs ¶
func (s *RecommendServer) RecommendNewSongs(ctx context.Context, req *mmpb.RecommendNewSongsRequest) (*mmpb.RecommendNewSongsResponse, error)
RecommendNewSongs 转发 recommendendpoint.RecommendNewSongs(语义注释见 proto 与 endpoint 声明)。
func (*RecommendServer) RecommendPlaylists ¶
func (s *RecommendServer) RecommendPlaylists(ctx context.Context, req *mmpb.RecommendPlaylistsRequest) (*mmpb.RecommendPlaylistsResponse, error)
RecommendPlaylists 转发 recommendendpoint.RecommendPlaylists(语义注释见 proto 与 endpoint 声明)。
type SearchServer ¶
type SearchServer struct {
mmpb.UnimplementedSearchServiceServer
// contains filtered or unexported fields
}
SearchServer 实现 SearchServiceServer,持有 *engine.Engine。
func NewSearchServer ¶
func NewSearchServer(eng *engine.Engine) *SearchServer
NewSearchServer 创建 SearchServer。
func (*SearchServer) DefaultKeyword ¶
func (s *SearchServer) DefaultKeyword(ctx context.Context, req *mmpb.DefaultKeywordRequest) (*mmpb.DefaultKeywordResponse, error)
DefaultKeyword 转发 searchendpoint.DefaultKeyword(语义注释见 proto 与 endpoint 声明)。
func (*SearchServer) Hot ¶
func (s *SearchServer) Hot(ctx context.Context, req *mmpb.HotRequest) (*mmpb.HotResponse, error)
Hot 转发 searchendpoint.Hot(语义注释见 proto 与 endpoint 声明)。
func (*SearchServer) HotDetail ¶
func (s *SearchServer) HotDetail(ctx context.Context, req *mmpb.HotDetailRequest) (*mmpb.HotDetailResponse, error)
HotDetail 转发 searchendpoint.HotDetail(语义注释见 proto 与 endpoint 声明)。
func (*SearchServer) Search ¶
func (s *SearchServer) Search(ctx context.Context, req *mmpb.SearchRequest) (*mmpb.SearchResponse, error)
Search 转发 searchendpoint.Search(语义注释见 proto 与 endpoint 声明)。
func (*SearchServer) Suggest ¶
func (s *SearchServer) Suggest(ctx context.Context, req *mmpb.SuggestRequest) (*mmpb.SuggestResponse, error)
Suggest 转发 searchendpoint.Suggest(语义注释见 proto 与 endpoint 声明)。
type SongServer ¶
type SongServer struct {
mmpb.UnimplementedSongServiceServer
// contains filtered or unexported fields
}
SongServer 实现 SongServiceServer,持有 *engine.Engine。
func NewSongServer ¶
func NewSongServer(eng *engine.Engine) *SongServer
NewSongServer 创建 SongServer。
func (*SongServer) CheckAvailable ¶
func (s *SongServer) CheckAvailable(ctx context.Context, req *mmpb.CheckAvailableRequest) (*mmpb.CheckAvailableResponse, error)
CheckAvailable 转发 songendpoint.CheckAvailable(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) ChorusTime ¶
func (s *SongServer) ChorusTime(ctx context.Context, req *mmpb.ChorusTimeRequest) (*mmpb.ChorusTimeResponse, error)
ChorusTime 转发 songendpoint.ChorusTime(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) CreatorInfo ¶
func (s *SongServer) CreatorInfo(ctx context.Context, req *mmpb.CreatorInfoRequest) (*mmpb.CreatorInfoResponse, error)
CreatorInfo 转发 songendpoint.CreatorInfo(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) DisallowRecommend ¶
func (s *SongServer) DisallowRecommend(ctx context.Context, req *mmpb.DisallowRecommendRequest) (*mmpb.DisallowRecommendResponse, error)
DisallowRecommend 转发 songendpoint.DisallowRecommend(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) DynamicCover ¶
func (s *SongServer) DynamicCover(ctx context.Context, req *mmpb.DynamicCoverRequest) (*mmpb.DynamicCoverResponse, error)
DynamicCover 转发 songendpoint.DynamicCover(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) GetLyric ¶
func (s *SongServer) GetLyric(ctx context.Context, req *mmpb.GetLyricRequest) (*mmpb.GetLyricResponse, error)
GetLyric 转发 songendpoint.Lyric(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) GetSongDetail ¶
func (s *SongServer) GetSongDetail(ctx context.Context, req *mmpb.GetSongDetailRequest) (*mmpb.GetSongDetailResponse, error)
GetSongDetail 转发 songendpoint.Detail(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) GetSongURL ¶
func (s *SongServer) GetSongURL(ctx context.Context, req *mmpb.GetSongURLRequest) (*mmpb.GetSongURLResponse, error)
GetSongURL 转发 songendpoint.URL(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) GetWordLyric ¶
func (s *SongServer) GetWordLyric(ctx context.Context, req *mmpb.GetWordLyricRequest) (*mmpb.GetWordLyricResponse, error)
GetWordLyric 转发 songendpoint.WordLyricEP(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) IsLike ¶
func (s *SongServer) IsLike(ctx context.Context, req *mmpb.IsLikeRequest) (*mmpb.IsLikeResponse, error)
IsLike 转发 songendpoint.IsLike(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) Like ¶
func (s *SongServer) Like(ctx context.Context, req *mmpb.LikeRequest) (*mmpb.LikeResponse, error)
Like 转发 songendpoint.Like(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) LikeCount ¶
func (s *SongServer) LikeCount(ctx context.Context, req *mmpb.LikeCountRequest) (*mmpb.LikeCountResponse, error)
LikeCount 转发 songendpoint.LikeCount(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) LikedList ¶
func (s *SongServer) LikedList(ctx context.Context, req *mmpb.LikedListRequest) (*mmpb.LikedListResponse, error)
LikedList 转发 songendpoint.LikedList(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) QualityDetail ¶
func (s *SongServer) QualityDetail(ctx context.Context, req *mmpb.QualityDetailRequest) (*mmpb.QualityDetailResponse, error)
QualityDetail 转发 songendpoint.QualityDetail(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) SimilarSongs ¶
func (s *SongServer) SimilarSongs(ctx context.Context, req *mmpb.SimilarSongsRequest) (*mmpb.SimilarSongsResponse, error)
SimilarSongs 转发 songendpoint.SimilarSongs(语义注释见 proto 与 endpoint 声明)。
func (*SongServer) Trash ¶
func (s *SongServer) Trash(ctx context.Context, req *mmpb.TrashRequest) (*mmpb.TrashResponse, error)
Trash 转发 songendpoint.Trash(语义注释见 proto 与 endpoint 声明)。
type UserServer ¶
type UserServer struct {
mmpb.UnimplementedUserServiceServer
// contains filtered or unexported fields
}
UserServer 实现 UserServiceServer,持有 *engine.Engine。
func NewUserServer ¶
func NewUserServer(eng *engine.Engine) *UserServer
NewUserServer 创建 UserServer。
func (*UserServer) Account ¶
func (s *UserServer) Account(ctx context.Context, req *mmpb.AccountRequest) (*mmpb.AccountResponse, error)
Account 转发 userendpoint.Account(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) Detail ¶
func (s *UserServer) Detail(ctx context.Context, req *mmpb.DetailRequest) (*mmpb.DetailResponse, error)
Detail 转发 userendpoint.Detail(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) DetailByName ¶
func (s *UserServer) DetailByName(ctx context.Context, req *mmpb.DetailByNameRequest) (*mmpb.DetailByNameResponse, error)
DetailByName 转发 userendpoint.DetailByName(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) Events ¶
func (s *UserServer) Events(ctx context.Context, req *mmpb.EventsRequest) (*mmpb.EventsResponse, error)
Events 转发 userendpoint.Events(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) FollowEachOther ¶
func (s *UserServer) FollowEachOther(ctx context.Context, req *mmpb.FollowEachOtherRequest) (*mmpb.FollowEachOtherResponse, error)
FollowEachOther 转发 userendpoint.FollowEachOther(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) Followeds ¶
func (s *UserServer) Followeds(ctx context.Context, req *mmpb.FollowedsRequest) (*mmpb.FollowedsResponse, error)
Followeds 转发 userendpoint.Followeds(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) Follows ¶
func (s *UserServer) Follows(ctx context.Context, req *mmpb.FollowsRequest) (*mmpb.FollowsResponse, error)
Follows 转发 userendpoint.Follows(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) Level ¶
func (s *UserServer) Level(ctx context.Context, req *mmpb.LevelRequest) (*mmpb.LevelResponse, error)
Level 转发 userendpoint.Level(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) Record ¶
func (s *UserServer) Record(ctx context.Context, req *mmpb.RecordRequest) (*mmpb.RecordResponse, error)
Record 转发 userendpoint.Record(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) SimilarUsers ¶
func (s *UserServer) SimilarUsers(ctx context.Context, req *mmpb.SimilarUsersRequest) (*mmpb.SimilarUsersResponse, error)
SimilarUsers 转发 userendpoint.SimilarUsers(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) SubCount ¶
func (s *UserServer) SubCount(ctx context.Context, req *mmpb.SubCountRequest) (*mmpb.SubCountResponse, error)
SubCount 转发 userendpoint.SubCount(语义注释见 proto 与 endpoint 声明)。
func (*UserServer) UserPlaylist ¶
func (s *UserServer) UserPlaylist(ctx context.Context, req *mmpb.UserPlaylistRequest) (*mmpb.UserPlaylistResponse, error)
UserPlaylist 获取用户歌单列表(取全量后筛选、分页,见 compose.UserPlaylists)。