streaming

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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_GetArtistPopularTracks_FullMethodName = "/streaming.Streaming/GetArtistPopularTracks"
	Streaming_GetUserArtists_FullMethodName         = "/streaming.Streaming/GetUserArtists"
	Streaming_GetUserAlbums_FullMethodName          = "/streaming.Streaming/GetUserAlbums"
	Streaming_GetUserPlaylists_FullMethodName       = "/streaming.Streaming/GetUserPlaylists"
)

Variables

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

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

Enum value maps for AudioFormat.

View Source
var File_assets_protos_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: "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 AlbumFullToClient(album *AlbumFull) client.AlbumFull

func AlbumToClient

func AlbumToClient(album *Album) client.Album

func ArtistFullToClient

func ArtistFullToClient(artist *ArtistFull) client.ArtistFull

func ArtistToClient

func ArtistToClient(artist *Artist) client.Artist

func PageEntryToClient

func PageEntryToClient(entry *PageEntry) (res client.Entry)

func PlaylistFullToClient

func PlaylistFullToClient(playlist *PlaylistFull) client.PlaylistFull

func PlaylistToClient

func PlaylistToClient(playlist *Playlist) client.Playlist

func RegisterStreamingServer

func RegisterStreamingServer(s grpc.ServiceRegistrar, srv StreamingServer)

func TrackToClient

func TrackToClient(track *Track) client.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" 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) 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

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

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

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) 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 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
const (
	EntryType_ALBUMS    EntryType = 0
	EntryType_PLAYLISTS EntryType = 1
	EntryType_MIXS      EntryType = 2
	EntryType_TRACKS    EntryType = 3
)

func (EntryType) Descriptor

func (EntryType) Descriptor() protoreflect.EnumDescriptor

func (EntryType) Enum

func (x EntryType) Enum() *EntryType

func (EntryType) EnumDescriptor deprecated

func (EntryType) EnumDescriptor() ([]byte, []int)

Deprecated: Use EntryType.Descriptor instead.

func (EntryType) Number

func (x EntryType) Number() protoreflect.EnumNumber

func (EntryType) String

func (x EntryType) String() string

func (EntryType) Type

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

Deprecated: Use Id.ProtoReflect.Descriptor instead.

func (*Id) GetId

func (x *Id) GetId() 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"`
	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) Descriptor() ([]byte, []int)

Deprecated: Use PageEntry.ProtoReflect.Descriptor instead.

func (*PageEntry) GetAlbums

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

func (*PageEntry) GetMixes

func (x *PageEntry) GetMixes() []*Playlist

func (*PageEntry) GetPlaylists

func (x *PageEntry) GetPlaylists() []*Playlist

func (*PageEntry) GetTitle

func (x *PageEntry) GetTitle() string

func (*PageEntry) GetTracks

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

func (*PageEntry) GetType

func (x *PageEntry) GetType() EntryType

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

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

type Streaming struct {
	API StreamingClient
	// contains filtered or unexported fields
}

func Init

func Init(host string, port int, logger *slog.Logger) (*Streaming, error)

func (*Streaming) Close

func (s *Streaming) Close()

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) 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() int32

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

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

func (UnimplementedStreamingServer) GetArtistPopularTracks(context.Context, *Id) (*PopularTracks, error)

func (UnimplementedStreamingServer) GetPage

func (UnimplementedStreamingServer) GetPageEntry

func (UnimplementedStreamingServer) GetPlaylist

func (UnimplementedStreamingServer) GetPlaylistFull

func (UnimplementedStreamingServer) GetStreamingInfo

func (UnimplementedStreamingServer) GetTrack

func (UnimplementedStreamingServer) GetUserAlbums

func (UnimplementedStreamingServer) GetUserArtists

func (UnimplementedStreamingServer) GetUserPlaylists

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.

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

Jump to

Keyboard shortcuts

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