streaming

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var (
	AudioFormat_name = map[int32]string{
		0: "AUDIO_FORMAT_FLAC",
	}
	AudioFormat_value = map[string]int32{
		"AUDIO_FORMAT_FLAC": 0,
	}
)

Enum value maps for AudioFormat.

View Source
var ErrUnconfigured = errors.New("unconfigured usage")
View Source
var File_streaming_streaming_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Album.ProtoReflect.Descriptor instead.

func (*Album) GetArtists

func (x *Album) GetArtists() []*Artist

func (*Album) GetId

func (x *Album) GetId() string

func (*Album) GetImageUrl

func (x *Album) GetImageUrl() string

func (*Album) GetRelease

func (x *Album) GetRelease() *timestamppb.Timestamp

func (*Album) GetTitle

func (x *Album) GetTitle() string

func (*Album) GetVersion

func (x *Album) GetVersion() string

func (*Album) ProtoMessage

func (*Album) ProtoMessage()

func (*Album) ProtoReflect

func (x *Album) ProtoReflect() protoreflect.Message

func (*Album) Reset

func (x *Album) Reset()

func (*Album) String

func (x *Album) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use AlbumFull.ProtoReflect.Descriptor instead.

func (*AlbumFull) GetAlbum

func (x *AlbumFull) GetAlbum() *Album

func (*AlbumFull) GetTracks

func (x *AlbumFull) GetTracks() []*Track

func (*AlbumFull) ProtoMessage

func (*AlbumFull) ProtoMessage()

func (*AlbumFull) ProtoReflect

func (x *AlbumFull) ProtoReflect() protoreflect.Message

func (*AlbumFull) Reset

func (x *AlbumFull) Reset()

func (*AlbumFull) String

func (x *AlbumFull) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Albums.ProtoReflect.Descriptor instead.

func (*Albums) GetList added in v0.2.0

func (x *Albums) GetList() []*Album

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

func (*Albums) Reset added in v0.2.0

func (x *Albums) Reset()

func (*Albums) String added in v0.2.0

func (x *Albums) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Artist.ProtoReflect.Descriptor instead.

func (*Artist) GetId

func (x *Artist) GetId() string

func (*Artist) GetImageUrl

func (x *Artist) GetImageUrl() string

func (*Artist) GetTitle

func (x *Artist) GetTitle() string

func (*Artist) ProtoMessage

func (*Artist) ProtoMessage()

func (*Artist) ProtoReflect

func (x *Artist) ProtoReflect() protoreflect.Message

func (*Artist) Reset

func (x *Artist) Reset()

func (*Artist) String

func (x *Artist) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Artists.ProtoReflect.Descriptor instead.

func (*Artists) GetList added in v0.2.0

func (x *Artists) GetList() []*Artist

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

func (*Artists) Reset added in v0.2.0

func (x *Artists) Reset()

func (*Artists) String added in v0.2.0

func (x *Artists) String() string

type AudioFormat

type AudioFormat int32
const (
	AudioFormat_AUDIO_FORMAT_FLAC AudioFormat = 0
)

func (AudioFormat) Descriptor

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

type Client added in v0.2.0

type Client struct {
	// contains filtered or unexported fields
}

func InitClient added in v0.2.0

func InitClient(host string, port int) (*Client, error)

func (*Client) Close added in v0.2.0

func (c *Client) Close()

func (*Client) GetAlbumFull added in v0.2.0

func (c *Client) GetAlbumFull(ctx context.Context, in *Id, opts ...grpc.CallOption) (*AlbumFull, error)

func (*Client) GetArtist added in v0.2.0

func (c *Client) GetArtist(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Artist, error)

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 (c *Client) GetArtistPopularTracks(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Tracks, error)

func (*Client) GetPage added in v0.2.0

func (c *Client) GetPage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Page, error)

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 (c *Client) GetPlaylist(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Playlist, error)

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) GetTrack added in v0.2.0

func (c *Client) GetTrack(ctx context.Context, in *Id, opts ...grpc.CallOption) (*Track, error)

func (*Client) ListUserAlbums added in v0.2.0

func (c *Client) ListUserAlbums(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Albums, error)

func (*Client) ListUserArtists added in v0.2.0

func (c *Client) ListUserArtists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Artists, error)

func (*Client) ListUserPlaylists added in v0.2.0

func (c *Client) ListUserPlaylists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Playlists, error)

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) Descriptor() ([]byte, []int)

Deprecated: Use Id.ProtoReflect.Descriptor instead.

func (*Id) GetValue added in v0.2.0

func (x *Id) GetValue() string

func (*Id) ProtoMessage

func (*Id) ProtoMessage()

func (*Id) ProtoReflect

func (x *Id) ProtoReflect() protoreflect.Message

func (*Id) Reset

func (x *Id) Reset()

func (*Id) String

func (x *Id) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Page.ProtoReflect.Descriptor instead.

func (*Page) GetEntries

func (x *Page) GetEntries() []*PageEntry

func (*Page) ProtoMessage

func (*Page) ProtoMessage()

func (*Page) ProtoReflect

func (x *Page) ProtoReflect() protoreflect.Message

func (*Page) Reset

func (x *Page) Reset()

func (*Page) String

func (x *Page) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PageEntry.ProtoReflect.Descriptor instead.

func (*PageEntry) GetAlbums

func (x *PageEntry) GetAlbums() *Albums

func (*PageEntry) GetContent added in v0.2.0

func (x *PageEntry) GetContent() isPageEntry_Content

func (*PageEntry) GetPlaylists

func (x *PageEntry) GetPlaylists() *Playlists

func (*PageEntry) GetTitle

func (x *PageEntry) GetTitle() string

func (*PageEntry) GetTracks

func (x *PageEntry) GetTracks() *Tracks

func (*PageEntry) ProtoMessage

func (*PageEntry) ProtoMessage()

func (*PageEntry) ProtoReflect

func (x *PageEntry) ProtoReflect() protoreflect.Message

func (*PageEntry) Reset

func (x *PageEntry) Reset()

func (*PageEntry) String

func (x *PageEntry) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Playlist.ProtoReflect.Descriptor instead.

func (*Playlist) GetDescription

func (x *Playlist) GetDescription() string

func (*Playlist) GetId

func (x *Playlist) GetId() string

func (*Playlist) GetImageUrl

func (x *Playlist) GetImageUrl() string

func (*Playlist) GetTitle

func (x *Playlist) GetTitle() string

func (*Playlist) ProtoMessage

func (*Playlist) ProtoMessage()

func (*Playlist) ProtoReflect

func (x *Playlist) ProtoReflect() protoreflect.Message

func (*Playlist) Reset

func (x *Playlist) Reset()

func (*Playlist) String

func (x *Playlist) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Playlists.ProtoReflect.Descriptor instead.

func (*Playlists) GetList added in v0.2.0

func (x *Playlists) GetList() []*Playlist

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

func (*Playlists) Reset added in v0.2.0

func (x *Playlists) Reset()

func (*Playlists) String added in v0.2.0

func (x *Playlists) 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) Descriptor() ([]byte, []int)

Deprecated: Use SearchRes.ProtoReflect.Descriptor instead.

func (*SearchRes) GetAlbums

func (x *SearchRes) GetAlbums() []*Album

func (*SearchRes) GetArtists

func (x *SearchRes) GetArtists() []*Artist

func (*SearchRes) GetTracks

func (x *SearchRes) GetTracks() []*Track

func (*SearchRes) ProtoMessage

func (*SearchRes) ProtoMessage()

func (*SearchRes) ProtoReflect

func (x *SearchRes) ProtoReflect() protoreflect.Message

func (*SearchRes) Reset

func (x *SearchRes) Reset()

func (*SearchRes) String

func (x *SearchRes) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Track.ProtoReflect.Descriptor instead.

func (*Track) GetAlbum

func (x *Track) GetAlbum() *Album

func (*Track) GetArtists

func (x *Track) GetArtists() []*Artist

func (*Track) GetDisc

func (x *Track) GetDisc() int32

func (*Track) GetDuration

func (x *Track) GetDuration() *durationpb.Duration

func (*Track) GetId

func (x *Track) GetId() string

func (*Track) GetImageUrl

func (x *Track) GetImageUrl() string

func (*Track) GetNum

func (x *Track) GetNum() int32

func (*Track) GetTitle

func (x *Track) GetTitle() string

func (*Track) GetVersion

func (x *Track) GetVersion() string

func (*Track) ProtoMessage

func (*Track) ProtoMessage()

func (*Track) ProtoReflect

func (x *Track) ProtoReflect() protoreflect.Message

func (*Track) Reset

func (x *Track) Reset()

func (*Track) String

func (x *Track) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Tracks.ProtoReflect.Descriptor instead.

func (*Tracks) GetList added in v0.2.0

func (x *Tracks) GetList() []*Track

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

func (*Tracks) Reset added in v0.2.0

func (x *Tracks) Reset()

func (*Tracks) String added in v0.2.0

func (x *Tracks) String() string

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) GetArtist

func (UnimplementedStreamingServer) GetArtistFull

func (UnimplementedStreamingServer) GetPage

func (UnimplementedStreamingServer) GetPageEntry

func (UnimplementedStreamingServer) GetPlaylist

func (UnimplementedStreamingServer) GetPlaylistFull

func (UnimplementedStreamingServer) GetStreamingInfo

func (UnimplementedStreamingServer) GetTrack

func (UnimplementedStreamingServer) ListArtistPopularTracks added in v0.2.0

func (UnimplementedStreamingServer) ListArtistPopularTracks(context.Context, *Id) (*Tracks, error)

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

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.

Jump to

Keyboard shortcuts

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