Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStreamingServer(s grpc.ServiceRegistrar, srv StreamingServer)
- func UnifyAlbums(albums []*Album) (res []unification.Album)
- func UnifyArtists(artists []*Artist) (res []unification.Artist)
- func UnifyTracks(tracks []*Track) (res []unification.Track)
- type Album
- func (*Album) Descriptor() ([]byte, []int)deprecated
- func (x *Album) GetArtists() []*Artist
- func (x *Album) GetId() string
- func (x *Album) GetImageUrl() string
- func (x *Album) GetRelease() *timestamppb.Timestamp
- func (x *Album) GetTitle() string
- func (x *Album) GetVersion() string
- func (*Album) ProtoMessage()
- func (x *Album) ProtoReflect() protoreflect.Message
- func (x *Album) Reset()
- func (x *Album) String() string
- func (a *Album) Unify() unification.Album
- type AlbumFull
- func (*AlbumFull) Descriptor() ([]byte, []int)deprecated
- func (x *AlbumFull) GetAlbum() *Album
- func (x *AlbumFull) GetTracks() []*Track
- func (*AlbumFull) ProtoMessage()
- func (x *AlbumFull) ProtoReflect() protoreflect.Message
- func (x *AlbumFull) Reset()
- func (x *AlbumFull) String() string
- func (a *AlbumFull) Unify() unification.AlbumFull
- type Albums
- type Artist
- func (*Artist) Descriptor() ([]byte, []int)deprecated
- func (x *Artist) GetId() string
- func (x *Artist) GetImageUrl() string
- func (x *Artist) GetTitle() string
- func (*Artist) ProtoMessage()
- func (x *Artist) ProtoReflect() protoreflect.Message
- func (x *Artist) Reset()
- func (x *Artist) String() string
- func (a *Artist) Unify() unification.Artist
- type ArtistFull
- func (*ArtistFull) Descriptor() ([]byte, []int)deprecated
- func (x *ArtistFull) GetAlbums() []*Album
- func (x *ArtistFull) GetAppearances() []*Album
- func (x *ArtistFull) GetArtist() *Artist
- func (x *ArtistFull) GetPopularTracks() []*Track
- func (x *ArtistFull) GetSinglesAndEps() []*Album
- func (*ArtistFull) ProtoMessage()
- func (x *ArtistFull) ProtoReflect() protoreflect.Message
- func (x *ArtistFull) Reset()
- func (x *ArtistFull) String() string
- func (a *ArtistFull) Unify() unification.ArtistFull
- type Artists
- type AudioFormat
- func (AudioFormat) Descriptor() protoreflect.EnumDescriptor
- func (x AudioFormat) Enum() *AudioFormat
- func (AudioFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x AudioFormat) Number() protoreflect.EnumNumber
- func (x AudioFormat) String() string
- func (AudioFormat) Type() protoreflect.EnumType
- type Client
- func (c *Client) Close()
- func (c *Client) GetAlbumFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*AlbumFull, error)
- func (c *Client) GetArtist(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Artist, error)
- func (c *Client) GetArtistFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*ArtistFull, error)
- func (c *Client) GetArtistPopularTracks(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Tracks, error)
- func (c *Client) GetPage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Page, error)
- func (c *Client) GetPageEntry(ctx context.Context, in *EntryTitle, opts ...grpc.CallOption) (*PageEntry, error)
- func (c *Client) GetPlaylist(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Playlist, error)
- func (c *Client) GetPlaylistFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*PlaylistFull, error)
- func (c *Client) GetStreamingInfo(ctx context.Context, in *Id, opts ...grpc.CallOption) (*StreamingInfo, error)
- func (c *Client) GetTrack(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Track, error)
- func (c *Client) ListUserAlbums(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Albums, error)
- func (c *Client) ListUserArtists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Artists, error)
- func (c *Client) ListUserPlaylists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Playlists, error)
- func (c *Client) Search(ctx context.Context, in *SearchQuery, opts ...grpc.CallOption) (*SearchRes, error)
- type EntryTitle
- type Id
- type Page
- type PageEntry
- func (*PageEntry) Descriptor() ([]byte, []int)deprecated
- func (x *PageEntry) GetAlbums() *Albums
- func (x *PageEntry) GetContent() isPageEntry_Content
- func (x *PageEntry) GetPlaylists() *Playlists
- func (x *PageEntry) GetTitle() string
- func (x *PageEntry) GetTracks() *Tracks
- func (*PageEntry) ProtoMessage()
- func (x *PageEntry) ProtoReflect() protoreflect.Message
- func (x *PageEntry) Reset()
- func (x *PageEntry) String() string
- type PageEntry_Albums
- type PageEntry_Playlists
- type PageEntry_Tracks
- type Playlist
- func (*Playlist) Descriptor() ([]byte, []int)deprecated
- func (x *Playlist) GetDescription() string
- func (x *Playlist) GetId() string
- func (x *Playlist) GetImageUrl() string
- func (x *Playlist) GetTitle() string
- func (*Playlist) ProtoMessage()
- func (x *Playlist) ProtoReflect() protoreflect.Message
- func (x *Playlist) Reset()
- func (x *Playlist) String() string
- func (p *Playlist) Unify() unification.Playlist
- type PlaylistFull
- func (*PlaylistFull) Descriptor() ([]byte, []int)deprecated
- func (x *PlaylistFull) GetPlaylist() *Playlist
- func (x *PlaylistFull) GetTracks() []*Track
- func (*PlaylistFull) ProtoMessage()
- func (x *PlaylistFull) ProtoReflect() protoreflect.Message
- func (x *PlaylistFull) Reset()
- func (x *PlaylistFull) String() string
- func (p *PlaylistFull) Unify() unification.PlaylistFull
- type Playlists
- type SearchQuery
- type SearchRes
- func (*SearchRes) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRes) GetAlbums() []*Album
- func (x *SearchRes) GetArtists() []*Artist
- func (x *SearchRes) GetTracks() []*Track
- func (*SearchRes) ProtoMessage()
- func (x *SearchRes) ProtoReflect() protoreflect.Message
- func (x *SearchRes) Reset()
- func (x *SearchRes) String() string
- type StreamingClient
- type StreamingInfo
- func (*StreamingInfo) Descriptor() ([]byte, []int)deprecated
- func (x *StreamingInfo) GetBitDepth() int32
- func (x *StreamingInfo) GetFormat() AudioFormat
- func (x *StreamingInfo) GetSampleRate() int32
- func (x *StreamingInfo) GetUrl() string
- func (*StreamingInfo) ProtoMessage()
- func (x *StreamingInfo) ProtoReflect() protoreflect.Message
- func (x *StreamingInfo) Reset()
- func (x *StreamingInfo) String() string
- type StreamingServer
- type Track
- func (*Track) Descriptor() ([]byte, []int)deprecated
- func (x *Track) GetAlbum() *Album
- func (x *Track) GetArtists() []*Artist
- func (x *Track) GetDisc() int32
- func (x *Track) GetDuration() *durationpb.Duration
- func (x *Track) GetId() string
- func (x *Track) GetImageUrl() string
- func (x *Track) GetNum() int32
- func (x *Track) GetTitle() string
- func (x *Track) GetVersion() string
- func (*Track) ProtoMessage()
- func (x *Track) ProtoReflect() protoreflect.Message
- func (x *Track) Reset()
- func (x *Track) String() string
- func (t *Track) Unify() unification.Track
- type Tracks
- type UnimplementedStreamingServer
- func (UnimplementedStreamingServer) GetAlbumFull(context.Context, *Id) (*AlbumFull, error)
- func (UnimplementedStreamingServer) GetArtist(context.Context, *Id) (*Artist, error)
- func (UnimplementedStreamingServer) GetArtistFull(context.Context, *Id) (*ArtistFull, error)
- func (UnimplementedStreamingServer) GetPage(context.Context, *emptypb.Empty) (*Page, error)
- func (UnimplementedStreamingServer) GetPageEntry(context.Context, *EntryTitle) (*PageEntry, error)
- func (UnimplementedStreamingServer) GetPlaylist(context.Context, *Id) (*Playlist, error)
- func (UnimplementedStreamingServer) GetPlaylistFull(context.Context, *Id) (*PlaylistFull, error)
- func (UnimplementedStreamingServer) GetStreamingInfo(context.Context, *Id) (*StreamingInfo, error)
- func (UnimplementedStreamingServer) GetTrack(context.Context, *Id) (*Track, error)
- func (UnimplementedStreamingServer) ListArtistPopularTracks(context.Context, *Id) (*Tracks, error)
- func (UnimplementedStreamingServer) ListUserAlbums(context.Context, *emptypb.Empty) (*Albums, error)
- func (UnimplementedStreamingServer) ListUserArtists(context.Context, *emptypb.Empty) (*Artists, error)
- func (UnimplementedStreamingServer) ListUserPlaylists(context.Context, *emptypb.Empty) (*Playlists, error)
- func (UnimplementedStreamingServer) Search(context.Context, *SearchQuery) (*SearchRes, error)
- type UnsafeStreamingServer
Constants ¶
const ( Streaming_Search_FullMethodName = "/streaming.Streaming/Search" Streaming_GetArtist_FullMethodName = "/streaming.Streaming/GetArtist" Streaming_GetArtistFull_FullMethodName = "/streaming.Streaming/GetArtistFull" Streaming_GetAlbumFull_FullMethodName = "/streaming.Streaming/GetAlbumFull" Streaming_GetPlaylist_FullMethodName = "/streaming.Streaming/GetPlaylist" Streaming_GetPlaylistFull_FullMethodName = "/streaming.Streaming/GetPlaylistFull" Streaming_GetTrack_FullMethodName = "/streaming.Streaming/GetTrack" Streaming_GetPageEntry_FullMethodName = "/streaming.Streaming/GetPageEntry" Streaming_GetPage_FullMethodName = "/streaming.Streaming/GetPage" Streaming_GetStreamingInfo_FullMethodName = "/streaming.Streaming/GetStreamingInfo" Streaming_ListArtistPopularTracks_FullMethodName = "/streaming.Streaming/ListArtistPopularTracks" Streaming_ListUserArtists_FullMethodName = "/streaming.Streaming/ListUserArtists" Streaming_ListUserAlbums_FullMethodName = "/streaming.Streaming/ListUserAlbums" Streaming_ListUserPlaylists_FullMethodName = "/streaming.Streaming/ListUserPlaylists" )
Variables ¶
var ( AudioFormat_name = map[int32]string{ 0: "AUDIO_FORMAT_FLAC", } AudioFormat_value = map[string]int32{ "AUDIO_FORMAT_FLAC": 0, } )
Enum value maps for AudioFormat.
var ErrUnconfigured = errors.New("unconfigured usage")
var File_streaming_streaming_proto protoreflect.FileDescriptor
var Streaming_ServiceDesc = grpc.ServiceDesc{ ServiceName: "streaming.Streaming", HandlerType: (*StreamingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Search", Handler: _Streaming_Search_Handler, }, { MethodName: "GetArtist", Handler: _Streaming_GetArtist_Handler, }, { MethodName: "GetArtistFull", Handler: _Streaming_GetArtistFull_Handler, }, { MethodName: "GetAlbumFull", Handler: _Streaming_GetAlbumFull_Handler, }, { MethodName: "GetPlaylist", Handler: _Streaming_GetPlaylist_Handler, }, { MethodName: "GetPlaylistFull", Handler: _Streaming_GetPlaylistFull_Handler, }, { MethodName: "GetTrack", Handler: _Streaming_GetTrack_Handler, }, { MethodName: "GetPageEntry", Handler: _Streaming_GetPageEntry_Handler, }, { MethodName: "GetPage", Handler: _Streaming_GetPage_Handler, }, { MethodName: "GetStreamingInfo", Handler: _Streaming_GetStreamingInfo_Handler, }, { MethodName: "ListArtistPopularTracks", Handler: _Streaming_ListArtistPopularTracks_Handler, }, { MethodName: "ListUserArtists", Handler: _Streaming_ListUserArtists_Handler, }, { MethodName: "ListUserAlbums", Handler: _Streaming_ListUserAlbums_Handler, }, { MethodName: "ListUserPlaylists", Handler: _Streaming_ListUserPlaylists_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "streaming/streaming.proto", }
Streaming_ServiceDesc is the grpc.ServiceDesc for Streaming service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamingServer ¶
func RegisterStreamingServer(s grpc.ServiceRegistrar, srv StreamingServer)
func UnifyAlbums ¶ added in v0.2.0
func UnifyAlbums(albums []*Album) (res []unification.Album)
func UnifyArtists ¶ added in v0.2.0
func UnifyArtists(artists []*Artist) (res []unification.Artist)
func UnifyTracks ¶ added in v0.2.0
func UnifyTracks(tracks []*Track) (res []unification.Track)
Types ¶
type Album ¶
type Album struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Release *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=release,proto3,oneof" json:"release,omitempty"` ImageUrl *string `protobuf:"bytes,5,opt,name=image_url,json=imageUrl,proto3,oneof" json:"image_url,omitempty"` Artists []*Artist `protobuf:"bytes,6,rep,name=artists,proto3" json:"artists,omitempty"` // contains filtered or unexported fields }
func (*Album) Descriptor
deprecated
func (*Album) GetArtists ¶
func (*Album) GetImageUrl ¶
func (*Album) GetRelease ¶
func (x *Album) GetRelease() *timestamppb.Timestamp
func (*Album) GetVersion ¶
func (*Album) ProtoMessage ¶
func (*Album) ProtoMessage()
func (*Album) ProtoReflect ¶
func (x *Album) ProtoReflect() protoreflect.Message
func (*Album) Unify ¶ added in v0.2.0
func (a *Album) Unify() unification.Album
type AlbumFull ¶
type AlbumFull struct { Album *Album `protobuf:"bytes,1,opt,name=album,proto3" json:"album,omitempty"` Tracks []*Track `protobuf:"bytes,2,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*AlbumFull) Descriptor
deprecated
func (*AlbumFull) ProtoMessage ¶
func (*AlbumFull) ProtoMessage()
func (*AlbumFull) ProtoReflect ¶
func (x *AlbumFull) ProtoReflect() protoreflect.Message
func (*AlbumFull) Unify ¶ added in v0.2.0
func (a *AlbumFull) Unify() unification.AlbumFull
type Albums ¶ added in v0.2.0
type Albums struct { List []*Album `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Albums) Descriptor
deprecated
added in
v0.2.0
func (*Albums) ProtoMessage ¶ added in v0.2.0
func (*Albums) ProtoMessage()
func (*Albums) ProtoReflect ¶ added in v0.2.0
func (x *Albums) ProtoReflect() protoreflect.Message
type Artist ¶
type Artist struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` ImageUrl *string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3,oneof" json:"image_url,omitempty"` // contains filtered or unexported fields }
func (*Artist) Descriptor
deprecated
func (*Artist) GetImageUrl ¶
func (*Artist) ProtoMessage ¶
func (*Artist) ProtoMessage()
func (*Artist) ProtoReflect ¶
func (x *Artist) ProtoReflect() protoreflect.Message
func (*Artist) Unify ¶ added in v0.2.0
func (a *Artist) Unify() unification.Artist
type ArtistFull ¶
type ArtistFull struct { Artist *Artist `protobuf:"bytes,1,opt,name=artist,proto3" json:"artist,omitempty"` PopularTracks []*Track `protobuf:"bytes,2,rep,name=popular_tracks,json=popularTracks,proto3" json:"popular_tracks,omitempty"` Albums []*Album `protobuf:"bytes,3,rep,name=albums,proto3" json:"albums,omitempty"` SinglesAndEps []*Album `protobuf:"bytes,4,rep,name=singles_and_eps,json=singlesAndEps,proto3" json:"singles_and_eps,omitempty"` Appearances []*Album `protobuf:"bytes,5,rep,name=appearances,proto3" json:"appearances,omitempty"` // contains filtered or unexported fields }
func (*ArtistFull) Descriptor
deprecated
func (*ArtistFull) Descriptor() ([]byte, []int)
Deprecated: Use ArtistFull.ProtoReflect.Descriptor instead.
func (*ArtistFull) GetAlbums ¶
func (x *ArtistFull) GetAlbums() []*Album
func (*ArtistFull) GetAppearances ¶
func (x *ArtistFull) GetAppearances() []*Album
func (*ArtistFull) GetArtist ¶
func (x *ArtistFull) GetArtist() *Artist
func (*ArtistFull) GetPopularTracks ¶
func (x *ArtistFull) GetPopularTracks() []*Track
func (*ArtistFull) GetSinglesAndEps ¶
func (x *ArtistFull) GetSinglesAndEps() []*Album
func (*ArtistFull) ProtoMessage ¶
func (*ArtistFull) ProtoMessage()
func (*ArtistFull) ProtoReflect ¶
func (x *ArtistFull) ProtoReflect() protoreflect.Message
func (*ArtistFull) Reset ¶
func (x *ArtistFull) Reset()
func (*ArtistFull) String ¶
func (x *ArtistFull) String() string
func (*ArtistFull) Unify ¶ added in v0.2.0
func (a *ArtistFull) Unify() unification.ArtistFull
type Artists ¶ added in v0.2.0
type Artists struct { List []*Artist `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Artists) Descriptor
deprecated
added in
v0.2.0
func (*Artists) ProtoMessage ¶ added in v0.2.0
func (*Artists) ProtoMessage()
func (*Artists) ProtoReflect ¶ added in v0.2.0
func (x *Artists) ProtoReflect() protoreflect.Message
type AudioFormat ¶
type AudioFormat int32
const (
AudioFormat_AUDIO_FORMAT_FLAC AudioFormat = 0
)
func (AudioFormat) Descriptor ¶
func (AudioFormat) Descriptor() protoreflect.EnumDescriptor
func (AudioFormat) Enum ¶
func (x AudioFormat) Enum() *AudioFormat
func (AudioFormat) EnumDescriptor
deprecated
func (AudioFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use AudioFormat.Descriptor instead.
func (AudioFormat) Number ¶
func (x AudioFormat) Number() protoreflect.EnumNumber
func (AudioFormat) String ¶
func (x AudioFormat) String() string
func (AudioFormat) Type ¶
func (AudioFormat) Type() protoreflect.EnumType
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAlbumFull ¶ added in v0.2.0
func (*Client) GetArtistFull ¶ added in v0.2.0
func (c *Client) GetArtistFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*ArtistFull, error)
func (*Client) GetArtistPopularTracks ¶ added in v0.2.0
func (*Client) GetPageEntry ¶ added in v0.2.0
func (c *Client) GetPageEntry(ctx context.Context, in *EntryTitle, opts ...grpc.CallOption) (*PageEntry, error)
func (*Client) GetPlaylist ¶ added in v0.2.0
func (*Client) GetPlaylistFull ¶ added in v0.2.0
func (c *Client) GetPlaylistFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*PlaylistFull, error)
func (*Client) GetStreamingInfo ¶ added in v0.2.0
func (c *Client) GetStreamingInfo(ctx context.Context, in *Id, opts ...grpc.CallOption) (*StreamingInfo, error)
func (*Client) ListUserAlbums ¶ added in v0.2.0
func (*Client) ListUserArtists ¶ added in v0.2.0
func (*Client) ListUserPlaylists ¶ added in v0.2.0
func (*Client) Search ¶ added in v0.2.0
func (c *Client) Search(ctx context.Context, in *SearchQuery, opts ...grpc.CallOption) (*SearchRes, error)
type EntryTitle ¶
type EntryTitle struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*EntryTitle) Descriptor
deprecated
func (*EntryTitle) Descriptor() ([]byte, []int)
Deprecated: Use EntryTitle.ProtoReflect.Descriptor instead.
func (*EntryTitle) GetTitle ¶
func (x *EntryTitle) GetTitle() string
func (*EntryTitle) ProtoMessage ¶
func (*EntryTitle) ProtoMessage()
func (*EntryTitle) ProtoReflect ¶
func (x *EntryTitle) ProtoReflect() protoreflect.Message
func (*EntryTitle) Reset ¶
func (x *EntryTitle) Reset()
func (*EntryTitle) String ¶
func (x *EntryTitle) String() string
type Id ¶
type Id struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Id) Descriptor
deprecated
func (*Id) ProtoMessage ¶
func (*Id) ProtoMessage()
func (*Id) ProtoReflect ¶
func (x *Id) ProtoReflect() protoreflect.Message
type Page ¶
type Page struct { Entries []*PageEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
func (*Page) Descriptor
deprecated
func (*Page) GetEntries ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
type PageEntry ¶
type PageEntry struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Types that are valid to be assigned to Content: // // *PageEntry_Albums // *PageEntry_Playlists // *PageEntry_Tracks Content isPageEntry_Content `protobuf_oneof:"content"` // contains filtered or unexported fields }
func (*PageEntry) Descriptor
deprecated
func (*PageEntry) GetContent ¶ added in v0.2.0
func (x *PageEntry) GetContent() isPageEntry_Content
func (*PageEntry) GetPlaylists ¶
func (*PageEntry) ProtoMessage ¶
func (*PageEntry) ProtoMessage()
func (*PageEntry) ProtoReflect ¶
func (x *PageEntry) ProtoReflect() protoreflect.Message
type PageEntry_Albums ¶ added in v0.2.0
type PageEntry_Albums struct {
Albums *Albums `protobuf:"bytes,3,opt,name=albums,proto3,oneof"`
}
type PageEntry_Playlists ¶ added in v0.2.0
type PageEntry_Playlists struct {
Playlists *Playlists `protobuf:"bytes,4,opt,name=playlists,proto3,oneof"`
}
type PageEntry_Tracks ¶ added in v0.2.0
type PageEntry_Tracks struct {
Tracks *Tracks `protobuf:"bytes,5,opt,name=tracks,proto3,oneof"`
}
type Playlist ¶
type Playlist struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` ImageUrl *string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3,oneof" json:"image_url,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Playlist) Descriptor
deprecated
func (*Playlist) GetDescription ¶
func (*Playlist) GetImageUrl ¶
func (*Playlist) ProtoMessage ¶
func (*Playlist) ProtoMessage()
func (*Playlist) ProtoReflect ¶
func (x *Playlist) ProtoReflect() protoreflect.Message
func (*Playlist) Unify ¶ added in v0.2.0
func (p *Playlist) Unify() unification.Playlist
type PlaylistFull ¶
type PlaylistFull struct { Playlist *Playlist `protobuf:"bytes,1,opt,name=playlist,proto3" json:"playlist,omitempty"` Tracks []*Track `protobuf:"bytes,2,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*PlaylistFull) Descriptor
deprecated
func (*PlaylistFull) Descriptor() ([]byte, []int)
Deprecated: Use PlaylistFull.ProtoReflect.Descriptor instead.
func (*PlaylistFull) GetPlaylist ¶
func (x *PlaylistFull) GetPlaylist() *Playlist
func (*PlaylistFull) GetTracks ¶
func (x *PlaylistFull) GetTracks() []*Track
func (*PlaylistFull) ProtoMessage ¶
func (*PlaylistFull) ProtoMessage()
func (*PlaylistFull) ProtoReflect ¶
func (x *PlaylistFull) ProtoReflect() protoreflect.Message
func (*PlaylistFull) Reset ¶
func (x *PlaylistFull) Reset()
func (*PlaylistFull) String ¶
func (x *PlaylistFull) String() string
func (*PlaylistFull) Unify ¶ added in v0.2.0
func (p *PlaylistFull) Unify() unification.PlaylistFull
type Playlists ¶ added in v0.2.0
type Playlists struct { List []*Playlist `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Playlists) Descriptor
deprecated
added in
v0.2.0
func (*Playlists) ProtoMessage ¶ added in v0.2.0
func (*Playlists) ProtoMessage()
func (*Playlists) ProtoReflect ¶ added in v0.2.0
func (x *Playlists) ProtoReflect() protoreflect.Message
type SearchQuery ¶
type SearchQuery struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*SearchQuery) Descriptor
deprecated
func (*SearchQuery) Descriptor() ([]byte, []int)
Deprecated: Use SearchQuery.ProtoReflect.Descriptor instead.
func (*SearchQuery) GetQuery ¶
func (x *SearchQuery) GetQuery() string
func (*SearchQuery) ProtoMessage ¶
func (*SearchQuery) ProtoMessage()
func (*SearchQuery) ProtoReflect ¶
func (x *SearchQuery) ProtoReflect() protoreflect.Message
func (*SearchQuery) Reset ¶
func (x *SearchQuery) Reset()
func (*SearchQuery) String ¶
func (x *SearchQuery) String() string
type SearchRes ¶
type SearchRes struct { Artists []*Artist `protobuf:"bytes,1,rep,name=artists,proto3" json:"artists,omitempty"` Albums []*Album `protobuf:"bytes,2,rep,name=albums,proto3" json:"albums,omitempty"` Tracks []*Track `protobuf:"bytes,3,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*SearchRes) Descriptor
deprecated
func (*SearchRes) GetArtists ¶
func (*SearchRes) ProtoMessage ¶
func (*SearchRes) ProtoMessage()
func (*SearchRes) ProtoReflect ¶
func (x *SearchRes) ProtoReflect() protoreflect.Message
type StreamingClient ¶
type StreamingClient interface { Search(ctx context.Context, in *SearchQuery, opts ...grpc.CallOption) (*SearchRes, error) GetArtist(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Artist, error) GetArtistFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*ArtistFull, error) GetAlbumFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*AlbumFull, error) GetPlaylist(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Playlist, error) GetPlaylistFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*PlaylistFull, error) GetTrack(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Track, error) GetPageEntry(ctx context.Context, in *EntryTitle, opts ...grpc.CallOption) (*PageEntry, error) GetPage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Page, error) GetStreamingInfo(ctx context.Context, in *Id, opts ...grpc.CallOption) (*StreamingInfo, error) ListArtistPopularTracks(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Tracks, error) ListUserArtists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Artists, error) ListUserAlbums(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Albums, error) ListUserPlaylists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Playlists, error) }
StreamingClient is the client API for Streaming service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStreamingClient ¶
func NewStreamingClient(cc grpc.ClientConnInterface) StreamingClient
type StreamingInfo ¶
type StreamingInfo struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Format AudioFormat `protobuf:"varint,2,opt,name=format,proto3,enum=streaming.AudioFormat" json:"format,omitempty"` SampleRate int32 `protobuf:"varint,3,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` BitDepth int32 `protobuf:"varint,4,opt,name=bit_depth,json=bitDepth,proto3" json:"bit_depth,omitempty"` // contains filtered or unexported fields }
func (*StreamingInfo) Descriptor
deprecated
func (*StreamingInfo) Descriptor() ([]byte, []int)
Deprecated: Use StreamingInfo.ProtoReflect.Descriptor instead.
func (*StreamingInfo) GetBitDepth ¶
func (x *StreamingInfo) GetBitDepth() int32
func (*StreamingInfo) GetFormat ¶
func (x *StreamingInfo) GetFormat() AudioFormat
func (*StreamingInfo) GetSampleRate ¶
func (x *StreamingInfo) GetSampleRate() int32
func (*StreamingInfo) GetUrl ¶
func (x *StreamingInfo) GetUrl() string
func (*StreamingInfo) ProtoMessage ¶
func (*StreamingInfo) ProtoMessage()
func (*StreamingInfo) ProtoReflect ¶
func (x *StreamingInfo) ProtoReflect() protoreflect.Message
func (*StreamingInfo) Reset ¶
func (x *StreamingInfo) Reset()
func (*StreamingInfo) String ¶
func (x *StreamingInfo) String() string
type StreamingServer ¶
type StreamingServer interface { Search(context.Context, *SearchQuery) (*SearchRes, error) GetArtist(context.Context, *Id) (*Artist, error) GetArtistFull(context.Context, *Id) (*ArtistFull, error) GetAlbumFull(context.Context, *Id) (*AlbumFull, error) GetPlaylist(context.Context, *Id) (*Playlist, error) GetPlaylistFull(context.Context, *Id) (*PlaylistFull, error) GetTrack(context.Context, *Id) (*Track, error) GetPageEntry(context.Context, *EntryTitle) (*PageEntry, error) GetPage(context.Context, *emptypb.Empty) (*Page, error) GetStreamingInfo(context.Context, *Id) (*StreamingInfo, error) ListArtistPopularTracks(context.Context, *Id) (*Tracks, error) ListUserArtists(context.Context, *emptypb.Empty) (*Artists, error) ListUserAlbums(context.Context, *emptypb.Empty) (*Albums, error) ListUserPlaylists(context.Context, *emptypb.Empty) (*Playlists, error) // contains filtered or unexported methods }
StreamingServer is the server API for Streaming service. All implementations must embed UnimplementedStreamingServer for forward compatibility.
type Track ¶
type Track struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` ImageUrl *string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3,oneof" json:"image_url,omitempty"` Duration *durationpb.Duration `protobuf:"bytes,4,opt,name=duration,proto3" json:"duration,omitempty"` Num int32 `protobuf:"varint,5,opt,name=num,proto3" json:"num,omitempty"` Album *Album `protobuf:"bytes,6,opt,name=album,proto3" json:"album,omitempty"` Artists []*Artist `protobuf:"bytes,7,rep,name=artists,proto3" json:"artists,omitempty"` Disc int32 `protobuf:"varint,8,opt,name=disc,proto3" json:"disc,omitempty"` Version string `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Track) Descriptor
deprecated
func (*Track) GetArtists ¶
func (*Track) GetDuration ¶
func (x *Track) GetDuration() *durationpb.Duration
func (*Track) GetImageUrl ¶
func (*Track) GetVersion ¶
func (*Track) ProtoMessage ¶
func (*Track) ProtoMessage()
func (*Track) ProtoReflect ¶
func (x *Track) ProtoReflect() protoreflect.Message
func (*Track) Unify ¶ added in v0.2.0
func (t *Track) Unify() unification.Track
type Tracks ¶ added in v0.2.0
type Tracks struct { List []*Track `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Tracks) Descriptor
deprecated
added in
v0.2.0
func (*Tracks) ProtoMessage ¶ added in v0.2.0
func (*Tracks) ProtoMessage()
func (*Tracks) ProtoReflect ¶ added in v0.2.0
func (x *Tracks) ProtoReflect() protoreflect.Message
type UnimplementedStreamingServer ¶
type UnimplementedStreamingServer struct{}
UnimplementedStreamingServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedStreamingServer) GetAlbumFull ¶
func (UnimplementedStreamingServer) GetArtistFull ¶
func (UnimplementedStreamingServer) GetArtistFull(context.Context, *Id) (*ArtistFull, error)
func (UnimplementedStreamingServer) GetPageEntry ¶
func (UnimplementedStreamingServer) GetPageEntry(context.Context, *EntryTitle) (*PageEntry, error)
func (UnimplementedStreamingServer) GetPlaylist ¶
func (UnimplementedStreamingServer) GetPlaylistFull ¶
func (UnimplementedStreamingServer) GetPlaylistFull(context.Context, *Id) (*PlaylistFull, error)
func (UnimplementedStreamingServer) GetStreamingInfo ¶
func (UnimplementedStreamingServer) GetStreamingInfo(context.Context, *Id) (*StreamingInfo, error)
func (UnimplementedStreamingServer) ListArtistPopularTracks ¶ added in v0.2.0
func (UnimplementedStreamingServer) ListUserAlbums ¶ added in v0.2.0
func (UnimplementedStreamingServer) ListUserArtists ¶ added in v0.2.0
func (UnimplementedStreamingServer) ListUserPlaylists ¶ added in v0.2.0
func (UnimplementedStreamingServer) Search ¶
func (UnimplementedStreamingServer) Search(context.Context, *SearchQuery) (*SearchRes, error)
type UnsafeStreamingServer ¶
type UnsafeStreamingServer interface {
// contains filtered or unexported methods
}
UnsafeStreamingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamingServer will result in compilation errors.