Documentation
¶
Index ¶
- Constants
- Variables
- func AlbumFullToClient(album *AlbumFull) client.AlbumFull
- func AlbumToClient(album *Album) client.Album
- func ArtistFullToClient(artist *ArtistFull) client.ArtistFull
- func ArtistToClient(artist *Artist) client.Artist
- func PageEntryToClient(entry *PageEntry) (res client.Entry)
- func PlaylistFullToClient(playlist *PlaylistFull) client.PlaylistFull
- func PlaylistToClient(playlist *Playlist) client.Playlist
- func RegisterStreamingServer(s grpc.ServiceRegistrar, srv StreamingServer)
- func TrackToClient(track *Track) client.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
- type AlbumFull
- type 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
- 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 EntryTitle
- type EntryType
- type Id
- type Page
- type PageEntry
- func (*PageEntry) Descriptor() ([]byte, []int)deprecated
- func (x *PageEntry) GetAlbums() []*Album
- func (x *PageEntry) GetMixes() []*Playlist
- func (x *PageEntry) GetPlaylists() []*Playlist
- func (x *PageEntry) GetTitle() string
- func (x *PageEntry) GetTracks() []*Track
- func (x *PageEntry) GetType() EntryType
- func (*PageEntry) ProtoMessage()
- func (x *PageEntry) ProtoReflect() protoreflect.Message
- func (x *PageEntry) Reset()
- func (x *PageEntry) String() string
- 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
- 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
- type PopularTracks
- 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 Streaming
- 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() int32
- 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
- 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) GetArtistPopularTracks(context.Context, *Id) (*PopularTracks, 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) GetUserAlbums(context.Context, *emptypb.Empty) (*UserAlbums, error)
- func (UnimplementedStreamingServer) GetUserArtists(context.Context, *emptypb.Empty) (*UserArtists, error)
- func (UnimplementedStreamingServer) GetUserPlaylists(context.Context, *emptypb.Empty) (*UserPlaylists, error)
- func (UnimplementedStreamingServer) Search(context.Context, *SearchQuery) (*SearchRes, error)
- type UnsafeStreamingServer
- type UserAlbums
- type UserArtists
- type UserPlaylists
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_GetArtistPopularTracks_FullMethodName = "/streaming.Streaming/GetArtistPopularTracks" Streaming_GetUserArtists_FullMethodName = "/streaming.Streaming/GetUserArtists" Streaming_GetUserAlbums_FullMethodName = "/streaming.Streaming/GetUserAlbums" Streaming_GetUserPlaylists_FullMethodName = "/streaming.Streaming/GetUserPlaylists" )
Variables ¶
var ( EntryType_name = map[int32]string{ 0: "ALBUMS", 1: "PLAYLISTS", 2: "MIXS", 3: "TRACKS", } EntryType_value = map[string]int32{ "ALBUMS": 0, "PLAYLISTS": 1, "MIXS": 2, "TRACKS": 3, } )
Enum value maps for EntryType.
var ( AudioFormat_name = map[int32]string{ 0: "FLAC", } AudioFormat_value = map[string]int32{ "FLAC": 0, } )
Enum value maps for AudioFormat.
var File_assets_protos_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: "GetArtistPopularTracks", Handler: _Streaming_GetArtistPopularTracks_Handler, }, { MethodName: "GetUserArtists", Handler: _Streaming_GetUserArtists_Handler, }, { MethodName: "GetUserAlbums", Handler: _Streaming_GetUserAlbums_Handler, }, { MethodName: "GetUserPlaylists", Handler: _Streaming_GetUserPlaylists_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "assets/protos/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 AlbumFullToClient ¶
func AlbumToClient ¶
func ArtistFullToClient ¶
func ArtistFullToClient(artist *ArtistFull) client.ArtistFull
func ArtistToClient ¶
func PageEntryToClient ¶
func PlaylistFullToClient ¶
func PlaylistFullToClient(playlist *PlaylistFull) client.PlaylistFull
func PlaylistToClient ¶
func RegisterStreamingServer ¶
func RegisterStreamingServer(s grpc.ServiceRegistrar, srv StreamingServer)
func TrackToClient ¶
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" json:"release,omitempty"` ImageUrl string `protobuf:"bytes,5,opt,name=image_url,json=imageUrl,proto3" 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
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
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" 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
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
type AudioFormat ¶
type AudioFormat int32
const (
AudioFormat_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 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 EntryType ¶
type EntryType int32
func (EntryType) Descriptor ¶
func (EntryType) Descriptor() protoreflect.EnumDescriptor
func (EntryType) EnumDescriptor
deprecated
func (EntryType) Number ¶
func (x EntryType) Number() protoreflect.EnumNumber
func (EntryType) Type ¶
func (EntryType) Type() protoreflect.EnumType
type Id ¶
type Id struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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"` Type EntryType `protobuf:"varint,2,opt,name=type,proto3,enum=streaming.EntryType" json:"type,omitempty"` Albums []*Album `protobuf:"bytes,3,rep,name=albums,proto3" json:"albums,omitempty"` Playlists []*Playlist `protobuf:"bytes,4,rep,name=playlists,proto3" json:"playlists,omitempty"` Mixes []*Playlist `protobuf:"bytes,5,rep,name=mixes,proto3" json:"mixes,omitempty"` Tracks []*Track `protobuf:"bytes,6,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*PageEntry) Descriptor
deprecated
func (*PageEntry) GetPlaylists ¶
func (*PageEntry) ProtoMessage ¶
func (*PageEntry) ProtoMessage()
func (*PageEntry) ProtoReflect ¶
func (x *PageEntry) ProtoReflect() protoreflect.Message
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" json:"image_url,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" 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
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
type PopularTracks ¶
type PopularTracks struct { Tracks []*Track `protobuf:"bytes,2,rep,name=tracks,proto3" json:"tracks,omitempty"` // contains filtered or unexported fields }
func (*PopularTracks) Descriptor
deprecated
func (*PopularTracks) Descriptor() ([]byte, []int)
Deprecated: Use PopularTracks.ProtoReflect.Descriptor instead.
func (*PopularTracks) GetTracks ¶
func (x *PopularTracks) GetTracks() []*Track
func (*PopularTracks) ProtoMessage ¶
func (*PopularTracks) ProtoMessage()
func (*PopularTracks) ProtoReflect ¶
func (x *PopularTracks) ProtoReflect() protoreflect.Message
func (*PopularTracks) Reset ¶
func (x *PopularTracks) Reset()
func (*PopularTracks) String ¶
func (x *PopularTracks) String() string
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 Streaming ¶
type Streaming struct { API StreamingClient // contains filtered or unexported fields }
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) GetArtistPopularTracks(ctx context.Context, in *Id, opts ...grpc.CallOption) (*PopularTracks, error) GetUserArtists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserArtists, error) GetUserAlbums(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserAlbums, error) GetUserPlaylists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserPlaylists, 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) GetArtistPopularTracks(context.Context, *Id) (*PopularTracks, error) GetUserArtists(context.Context, *emptypb.Empty) (*UserArtists, error) GetUserAlbums(context.Context, *emptypb.Empty) (*UserAlbums, error) GetUserPlaylists(context.Context, *emptypb.Empty) (*UserPlaylists, 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" json:"image_url,omitempty"` Duration int32 `protobuf:"varint,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 (*Track) GetImageUrl ¶
func (*Track) GetVersion ¶
func (*Track) ProtoMessage ¶
func (*Track) ProtoMessage()
func (*Track) ProtoReflect ¶
func (x *Track) 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) GetArtistPopularTracks ¶
func (UnimplementedStreamingServer) GetArtistPopularTracks(context.Context, *Id) (*PopularTracks, 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) GetUserAlbums ¶
func (UnimplementedStreamingServer) GetUserAlbums(context.Context, *emptypb.Empty) (*UserAlbums, error)
func (UnimplementedStreamingServer) GetUserArtists ¶
func (UnimplementedStreamingServer) GetUserArtists(context.Context, *emptypb.Empty) (*UserArtists, error)
func (UnimplementedStreamingServer) GetUserPlaylists ¶
func (UnimplementedStreamingServer) GetUserPlaylists(context.Context, *emptypb.Empty) (*UserPlaylists, error)
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.
type UserAlbums ¶
type UserAlbums struct { Albums []*Album `protobuf:"bytes,1,rep,name=albums,proto3" json:"albums,omitempty"` // contains filtered or unexported fields }
func (*UserAlbums) Descriptor
deprecated
func (*UserAlbums) Descriptor() ([]byte, []int)
Deprecated: Use UserAlbums.ProtoReflect.Descriptor instead.
func (*UserAlbums) GetAlbums ¶
func (x *UserAlbums) GetAlbums() []*Album
func (*UserAlbums) ProtoMessage ¶
func (*UserAlbums) ProtoMessage()
func (*UserAlbums) ProtoReflect ¶
func (x *UserAlbums) ProtoReflect() protoreflect.Message
func (*UserAlbums) Reset ¶
func (x *UserAlbums) Reset()
func (*UserAlbums) String ¶
func (x *UserAlbums) String() string
type UserArtists ¶
type UserArtists struct { Artists []*Artist `protobuf:"bytes,1,rep,name=artists,proto3" json:"artists,omitempty"` // contains filtered or unexported fields }
func (*UserArtists) Descriptor
deprecated
func (*UserArtists) Descriptor() ([]byte, []int)
Deprecated: Use UserArtists.ProtoReflect.Descriptor instead.
func (*UserArtists) GetArtists ¶
func (x *UserArtists) GetArtists() []*Artist
func (*UserArtists) ProtoMessage ¶
func (*UserArtists) ProtoMessage()
func (*UserArtists) ProtoReflect ¶
func (x *UserArtists) ProtoReflect() protoreflect.Message
func (*UserArtists) Reset ¶
func (x *UserArtists) Reset()
func (*UserArtists) String ¶
func (x *UserArtists) String() string
type UserPlaylists ¶
type UserPlaylists struct { Playlists []*Playlist `protobuf:"bytes,1,rep,name=playlists,proto3" json:"playlists,omitempty"` // contains filtered or unexported fields }
func (*UserPlaylists) Descriptor
deprecated
func (*UserPlaylists) Descriptor() ([]byte, []int)
Deprecated: Use UserPlaylists.ProtoReflect.Descriptor instead.
func (*UserPlaylists) GetPlaylists ¶
func (x *UserPlaylists) GetPlaylists() []*Playlist
func (*UserPlaylists) ProtoMessage ¶
func (*UserPlaylists) ProtoMessage()
func (*UserPlaylists) ProtoReflect ¶
func (x *UserPlaylists) ProtoReflect() protoreflect.Message
func (*UserPlaylists) Reset ¶
func (x *UserPlaylists) Reset()
func (*UserPlaylists) String ¶
func (x *UserPlaylists) String() string