service

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

AlbumDynamic 转发 albumendpoint.AlbumDynamic(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) AlbumSongQuality

AlbumSongQuality 转发 albumendpoint.AlbumSongQuality(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) AllNewAlbums

AllNewAlbums 转发 albumendpoint.AllNewAlbums(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) GetAlbum

GetAlbum 转发 albumendpoint.GetAlbum(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) NewAlbumShelf

NewAlbumShelf 转发 albumendpoint.NewAlbumShelf(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) NewestAlbums

NewestAlbums 转发 albumendpoint.NewestAlbums(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) SubscribeAlbum

SubscribeAlbum 转发 albumendpoint.Subscribe(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) SubscribedAlbums

SubscribedAlbums 转发 albumendpoint.SubscribedAlbums(语义注释见 proto 与 endpoint 声明)。

func (*AlbumServer) UnsubscribeAlbum

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

Albums 转发 artistendpoint.Albums(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) AllSongs

AllSongs 转发 artistendpoint.AllSongs(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) ArtistSubscribe

ArtistSubscribe 转发 artistendpoint.Subscribe(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) Desc

Desc 转发 artistendpoint.Desc(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) Fans

Fans 转发 artistendpoint.Fans(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) GetArtist

GetArtist 转发 artistendpoint.GetArtist(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) Similar

Similar 转发 artistendpoint.Similar(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) TopArtists

TopArtists 转发 artistendpoint.TopArtists(语义注释见 proto 与 endpoint 声明)。

func (*ArtistServer) TopSongs

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

CheckQrcode 轮询二维码登录状态。

func (*AuthServer) LoginByCellphone

LoginByCellphone 手机号登录,返回完整的登录会话。

func (*AuthServer) LoginQrcode

LoginQrcode 转发 authendpoint.LoginQrcode(语义注释见 proto 与 endpoint 声明)。

func (*AuthServer) LoginStatus

LoginStatus 查询当前登录态。

func (*AuthServer) Logout

Logout 转发 authendpoint.Logout(语义注释见 proto 与 endpoint 声明)。

func (*AuthServer) RefreshLogin added in v0.4.0

RefreshLogin 刷新登录态,返回合并了上游新下发值的完整 cookie。

func (*AuthServer) SendCaptcha

SendCaptcha 转发 authendpoint.SendCaptcha(语义注释见 proto 与 endpoint 声明)。

type FMServer

type FMServer struct {
	mmpb.UnimplementedFMServiceServer
	// contains filtered or unexported fields
}

FMServer 实现 FMServiceServer,持有 *engine.Engine。

func NewFMServer

func NewFMServer(eng *engine.Engine) *FMServer

NewFMServer 创建 FMServer。

func (*FMServer) GetPersonalFM

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

AllTracks 按歌单顺序分页获取歌曲(两次上游调用的组合,见 compose.PlaylistTracks)。

func (*PlaylistServer) BrowseHot

BrowseHot 转发 playlistendpoint.BrowseHot(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) CatList

CatList 转发 playlistendpoint.CatList(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) Create

Create 转发 playlistendpoint.Create(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) Delete

Delete 转发 playlistendpoint.Delete(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) GetPlaylist

GetPlaylist 转发 playlistendpoint.GetPlaylist(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) HighQuality

HighQuality 转发 playlistendpoint.HighQuality(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) HighQualityTags

HighQualityTags 转发 playlistendpoint.HighQualityTags(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) RelatedPlaylistRecommend

RelatedPlaylistRecommend 转发 playlistendpoint.RelatedPlaylistRecommend(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) SimilarPlaylists

SimilarPlaylists 转发 playlistendpoint.SimilarPlaylists(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) Subscribe

Subscribe 转发 playlistendpoint.Subscribe(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) Subscribers

Subscribers 转发 playlistendpoint.Subscribers(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) UpdateDesc

UpdateDesc 转发 playlistendpoint.UpdateDesc(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) UpdateName

UpdateName 转发 playlistendpoint.UpdateName(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) UpdateTags

UpdateTags 转发 playlistendpoint.UpdateTags(语义注释见 proto 与 endpoint 声明)。

func (*PlaylistServer) UpdateTracks

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

DailyRecommendPlaylists 转发 recommendendpoint.DailyRecommendPlaylists(语义注释见 proto 与 endpoint 声明)。

func (*RecommendServer) GetDailyRecommend

GetDailyRecommend 转发 recommendendpoint.GetDailyRecommend(语义注释见 proto 与 endpoint 声明)。

func (*RecommendServer) RecommendNewSongs

RecommendNewSongs 转发 recommendendpoint.RecommendNewSongs(语义注释见 proto 与 endpoint 声明)。

func (*RecommendServer) RecommendPlaylists

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

DefaultKeyword 转发 searchendpoint.DefaultKeyword(语义注释见 proto 与 endpoint 声明)。

func (*SearchServer) Hot

Hot 转发 searchendpoint.Hot(语义注释见 proto 与 endpoint 声明)。

func (*SearchServer) HotDetail

HotDetail 转发 searchendpoint.HotDetail(语义注释见 proto 与 endpoint 声明)。

func (*SearchServer) Search

Search 转发 searchendpoint.Search(语义注释见 proto 与 endpoint 声明)。

func (*SearchServer) Suggest

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

CheckAvailable 转发 songendpoint.CheckAvailable(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) ChorusTime

ChorusTime 转发 songendpoint.ChorusTime(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) CreatorInfo

CreatorInfo 转发 songendpoint.CreatorInfo(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) DisallowRecommend

DisallowRecommend 转发 songendpoint.DisallowRecommend(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) DynamicCover

DynamicCover 转发 songendpoint.DynamicCover(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) GetLyric

GetLyric 转发 songendpoint.Lyric(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) GetSongDetail

GetSongDetail 转发 songendpoint.Detail(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) GetSongURL

GetSongURL 转发 songendpoint.URL(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) GetWordLyric

GetWordLyric 转发 songendpoint.WordLyricEP(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) IsLike

IsLike 转发 songendpoint.IsLike(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) Like

Like 转发 songendpoint.Like(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) LikeCount

LikeCount 转发 songendpoint.LikeCount(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) LikedList

LikedList 转发 songendpoint.LikedList(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) QualityDetail

QualityDetail 转发 songendpoint.QualityDetail(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) SimilarSongs

SimilarSongs 转发 songendpoint.SimilarSongs(语义注释见 proto 与 endpoint 声明)。

func (*SongServer) Trash

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

Account 转发 userendpoint.Account(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) Detail

Detail 转发 userendpoint.Detail(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) DetailByName

DetailByName 转发 userendpoint.DetailByName(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) Events

Events 转发 userendpoint.Events(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) FollowEachOther

FollowEachOther 转发 userendpoint.FollowEachOther(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) Followeds

Followeds 转发 userendpoint.Followeds(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) Follows

Follows 转发 userendpoint.Follows(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) Level

Level 转发 userendpoint.Level(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) Record

Record 转发 userendpoint.Record(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) SimilarUsers

SimilarUsers 转发 userendpoint.SimilarUsers(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) SubCount

SubCount 转发 userendpoint.SubCount(语义注释见 proto 与 endpoint 声明)。

func (*UserServer) UserPlaylist

UserPlaylist 获取用户歌单列表(取全量后筛选、分页,见 compose.UserPlaylists)。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL