Documentation ¶
Index ¶
- Variables
- func RegisterCoreManagerServer(s grpc.ServiceRegistrar, srv CoreManagerServer)
- type CollageInfoAndToken
- func (*CollageInfoAndToken) Descriptor() ([]byte, []int)deprecated
- func (x *CollageInfoAndToken) GetCols() int64
- func (x *CollageInfoAndToken) GetRows() int64
- func (x *CollageInfoAndToken) GetSize() int64
- func (x *CollageInfoAndToken) GetToken() *Token
- func (*CollageInfoAndToken) ProtoMessage()
- func (x *CollageInfoAndToken) ProtoReflect() protoreflect.Message
- func (x *CollageInfoAndToken) Reset()
- func (x *CollageInfoAndToken) String() string
- type CoreManagerClient
- type CoreManagerServer
- type FloatScore
- type IDWithToken
- type Image
- type JSONResponse
- type Number
- type NumberWithToken
- func (*NumberWithToken) Descriptor() ([]byte, []int)deprecated
- func (x *NumberWithToken) GetNumber() *Number
- func (x *NumberWithToken) GetToken() *Token
- func (*NumberWithToken) ProtoMessage()
- func (x *NumberWithToken) ProtoReflect() protoreflect.Message
- func (x *NumberWithToken) Reset()
- func (x *NumberWithToken) String() string
- type QueryWithToken
- func (*QueryWithToken) Descriptor() ([]byte, []int)deprecated
- func (x *QueryWithToken) GetQuery() string
- func (x *QueryWithToken) GetToken() *Token
- func (x *QueryWithToken) GetTypes() []string
- func (*QueryWithToken) ProtoMessage()
- func (x *QueryWithToken) ProtoReflect() protoreflect.Message
- func (x *QueryWithToken) Reset()
- func (x *QueryWithToken) String() string
- type Token
- type UnimplementedCoreManagerServer
- func (UnimplementedCoreManagerServer) GetPopularityScore(context.Context, *Token) (*FloatScore, error)
- func (UnimplementedCoreManagerServer) GetRandomTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
- func (UnimplementedCoreManagerServer) GetRandomTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
- func (UnimplementedCoreManagerServer) GetRecommendedSongs(context.Context, *NumberWithToken) (*JSONResponse, error)
- func (UnimplementedCoreManagerServer) GetSongAudioFeatures(context.Context, *IDWithToken) (*JSONResponse, error)
- func (UnimplementedCoreManagerServer) GetSongInfo(context.Context, *IDWithToken) (*JSONResponse, error)
- func (UnimplementedCoreManagerServer) GetTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
- func (UnimplementedCoreManagerServer) GetTopArtists(context.Context, *NumberWithToken) (*JSONResponse, error)
- func (UnimplementedCoreManagerServer) GetTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
- func (UnimplementedCoreManagerServer) GetTopGenres(context.Context, *NumberWithToken) (*JSONResponse, error)
- func (UnimplementedCoreManagerServer) GetTopSongs(context.Context, *NumberWithToken) (*JSONResponse, error)
- func (UnimplementedCoreManagerServer) MakeRecommendedPlaylist(context.Context, *Token) (*emptypb.Empty, error)
- func (UnimplementedCoreManagerServer) Search(context.Context, *QueryWithToken) (*JSONResponse, error)
- type UnsafeCoreManagerServer
Constants ¶
This section is empty.
Variables ¶
var CoreManager_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.CoreManager", HandlerType: (*CoreManagerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTopArtists", Handler: _CoreManager_GetTopArtists_Handler, }, { MethodName: "GetTopSongs", Handler: _CoreManager_GetTopSongs_Handler, }, { MethodName: "GetTopGenres", Handler: _CoreManager_GetTopGenres_Handler, }, { MethodName: "GetRecommendedSongs", Handler: _CoreManager_GetRecommendedSongs_Handler, }, { MethodName: "MakeRecommendedPlaylist", Handler: _CoreManager_MakeRecommendedPlaylist_Handler, }, { MethodName: "GetPopularityScore", Handler: _CoreManager_GetPopularityScore_Handler, }, { MethodName: "GetTopArtistsCollage", Handler: _CoreManager_GetTopArtistsCollage_Handler, }, { MethodName: "GetTopAlbumsCollage", Handler: _CoreManager_GetTopAlbumsCollage_Handler, }, { MethodName: "GetRandomTopArtistsCollage", Handler: _CoreManager_GetRandomTopArtistsCollage_Handler, }, { MethodName: "GetRandomTopAlbumsCollage", Handler: _CoreManager_GetRandomTopAlbumsCollage_Handler, }, { MethodName: "Search", Handler: _CoreManager_Search_Handler, }, { MethodName: "GetSongInfo", Handler: _CoreManager_GetSongInfo_Handler, }, { MethodName: "GetSongAudioFeatures", Handler: _CoreManager_GetSongAudioFeatures_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "core.proto", }
CoreManager_ServiceDesc is the grpc.ServiceDesc for CoreManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_core_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCoreManagerServer ¶
func RegisterCoreManagerServer(s grpc.ServiceRegistrar, srv CoreManagerServer)
Types ¶
type CollageInfoAndToken ¶
type CollageInfoAndToken struct { Rows int64 `protobuf:"varint,1,opt,name=rows,proto3" json:"rows,omitempty"` Cols int64 `protobuf:"varint,2,opt,name=cols,proto3" json:"cols,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*CollageInfoAndToken) Descriptor
deprecated
func (*CollageInfoAndToken) Descriptor() ([]byte, []int)
Deprecated: Use CollageInfoAndToken.ProtoReflect.Descriptor instead.
func (*CollageInfoAndToken) GetCols ¶
func (x *CollageInfoAndToken) GetCols() int64
func (*CollageInfoAndToken) GetRows ¶
func (x *CollageInfoAndToken) GetRows() int64
func (*CollageInfoAndToken) GetSize ¶
func (x *CollageInfoAndToken) GetSize() int64
func (*CollageInfoAndToken) GetToken ¶
func (x *CollageInfoAndToken) GetToken() *Token
func (*CollageInfoAndToken) ProtoMessage ¶
func (*CollageInfoAndToken) ProtoMessage()
func (*CollageInfoAndToken) ProtoReflect ¶
func (x *CollageInfoAndToken) ProtoReflect() protoreflect.Message
func (*CollageInfoAndToken) Reset ¶
func (x *CollageInfoAndToken) Reset()
func (*CollageInfoAndToken) String ¶
func (x *CollageInfoAndToken) String() string
type CoreManagerClient ¶
type CoreManagerClient interface { GetTopArtists(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error) GetTopSongs(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error) GetTopGenres(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error) GetRecommendedSongs(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error) MakeRecommendedPlaylist(ctx context.Context, in *Token, opts ...grpc.CallOption) (*emptypb.Empty, error) GetPopularityScore(ctx context.Context, in *Token, opts ...grpc.CallOption) (*FloatScore, error) GetTopArtistsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error) GetTopAlbumsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error) GetRandomTopArtistsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error) GetRandomTopAlbumsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error) Search(ctx context.Context, in *QueryWithToken, opts ...grpc.CallOption) (*JSONResponse, error) GetSongInfo(ctx context.Context, in *IDWithToken, opts ...grpc.CallOption) (*JSONResponse, error) GetSongAudioFeatures(ctx context.Context, in *IDWithToken, opts ...grpc.CallOption) (*JSONResponse, error) }
CoreManagerClient is the client API for CoreManager 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 NewCoreManagerClient ¶
func NewCoreManagerClient(cc grpc.ClientConnInterface) CoreManagerClient
type CoreManagerServer ¶
type CoreManagerServer interface { GetTopArtists(context.Context, *NumberWithToken) (*JSONResponse, error) GetTopSongs(context.Context, *NumberWithToken) (*JSONResponse, error) GetTopGenres(context.Context, *NumberWithToken) (*JSONResponse, error) GetRecommendedSongs(context.Context, *NumberWithToken) (*JSONResponse, error) MakeRecommendedPlaylist(context.Context, *Token) (*emptypb.Empty, error) GetPopularityScore(context.Context, *Token) (*FloatScore, error) GetTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error) GetTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error) GetRandomTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error) GetRandomTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error) Search(context.Context, *QueryWithToken) (*JSONResponse, error) GetSongInfo(context.Context, *IDWithToken) (*JSONResponse, error) GetSongAudioFeatures(context.Context, *IDWithToken) (*JSONResponse, error) // contains filtered or unexported methods }
CoreManagerServer is the server API for CoreManager service. All implementations must embed UnimplementedCoreManagerServer for forward compatibility
type FloatScore ¶
type FloatScore struct { Score float64 `protobuf:"fixed64,1,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*FloatScore) Descriptor
deprecated
func (*FloatScore) Descriptor() ([]byte, []int)
Deprecated: Use FloatScore.ProtoReflect.Descriptor instead.
func (*FloatScore) GetScore ¶
func (x *FloatScore) GetScore() float64
func (*FloatScore) ProtoMessage ¶
func (*FloatScore) ProtoMessage()
func (*FloatScore) ProtoReflect ¶
func (x *FloatScore) ProtoReflect() protoreflect.Message
func (*FloatScore) Reset ¶
func (x *FloatScore) Reset()
func (*FloatScore) String ¶
func (x *FloatScore) String() string
type IDWithToken ¶
type IDWithToken struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Token *Token `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*IDWithToken) Descriptor
deprecated
func (*IDWithToken) Descriptor() ([]byte, []int)
Deprecated: Use IDWithToken.ProtoReflect.Descriptor instead.
func (*IDWithToken) GetId ¶
func (x *IDWithToken) GetId() string
func (*IDWithToken) GetToken ¶
func (x *IDWithToken) GetToken() *Token
func (*IDWithToken) ProtoMessage ¶
func (*IDWithToken) ProtoMessage()
func (*IDWithToken) ProtoReflect ¶
func (x *IDWithToken) ProtoReflect() protoreflect.Message
func (*IDWithToken) Reset ¶
func (x *IDWithToken) Reset()
func (*IDWithToken) String ¶
func (x *IDWithToken) String() string
type Image ¶
type Image struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*Image) Descriptor
deprecated
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type JSONResponse ¶
type JSONResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*JSONResponse) Descriptor
deprecated
func (*JSONResponse) Descriptor() ([]byte, []int)
Deprecated: Use JSONResponse.ProtoReflect.Descriptor instead.
func (*JSONResponse) GetData ¶
func (x *JSONResponse) GetData() []byte
func (*JSONResponse) ProtoMessage ¶
func (*JSONResponse) ProtoMessage()
func (*JSONResponse) ProtoReflect ¶
func (x *JSONResponse) ProtoReflect() protoreflect.Message
func (*JSONResponse) Reset ¶
func (x *JSONResponse) Reset()
func (*JSONResponse) String ¶
func (x *JSONResponse) String() string
type Number ¶
type Number struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*Number) Descriptor
deprecated
func (*Number) ProtoMessage ¶
func (*Number) ProtoMessage()
func (*Number) ProtoReflect ¶
func (x *Number) ProtoReflect() protoreflect.Message
type NumberWithToken ¶
type NumberWithToken struct { Number *Number `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` Token *Token `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*NumberWithToken) Descriptor
deprecated
func (*NumberWithToken) Descriptor() ([]byte, []int)
Deprecated: Use NumberWithToken.ProtoReflect.Descriptor instead.
func (*NumberWithToken) GetNumber ¶
func (x *NumberWithToken) GetNumber() *Number
func (*NumberWithToken) GetToken ¶
func (x *NumberWithToken) GetToken() *Token
func (*NumberWithToken) ProtoMessage ¶
func (*NumberWithToken) ProtoMessage()
func (*NumberWithToken) ProtoReflect ¶
func (x *NumberWithToken) ProtoReflect() protoreflect.Message
func (*NumberWithToken) Reset ¶
func (x *NumberWithToken) Reset()
func (*NumberWithToken) String ¶
func (x *NumberWithToken) String() string
type QueryWithToken ¶
type QueryWithToken struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Types []string `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"` Token *Token `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*QueryWithToken) Descriptor
deprecated
func (*QueryWithToken) Descriptor() ([]byte, []int)
Deprecated: Use QueryWithToken.ProtoReflect.Descriptor instead.
func (*QueryWithToken) GetQuery ¶
func (x *QueryWithToken) GetQuery() string
func (*QueryWithToken) GetToken ¶
func (x *QueryWithToken) GetToken() *Token
func (*QueryWithToken) GetTypes ¶
func (x *QueryWithToken) GetTypes() []string
func (*QueryWithToken) ProtoMessage ¶
func (*QueryWithToken) ProtoMessage()
func (*QueryWithToken) ProtoReflect ¶
func (x *QueryWithToken) ProtoReflect() protoreflect.Message
func (*QueryWithToken) Reset ¶
func (x *QueryWithToken) Reset()
func (*QueryWithToken) String ¶
func (x *QueryWithToken) String() string
type Token ¶
type Token struct { Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*Token) Descriptor
deprecated
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) ProtoReflect ¶
func (x *Token) ProtoReflect() protoreflect.Message
type UnimplementedCoreManagerServer ¶
type UnimplementedCoreManagerServer struct { }
UnimplementedCoreManagerServer must be embedded to have forward compatible implementations.
func (UnimplementedCoreManagerServer) GetPopularityScore ¶
func (UnimplementedCoreManagerServer) GetPopularityScore(context.Context, *Token) (*FloatScore, error)
func (UnimplementedCoreManagerServer) GetRandomTopAlbumsCollage ¶
func (UnimplementedCoreManagerServer) GetRandomTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
func (UnimplementedCoreManagerServer) GetRandomTopArtistsCollage ¶
func (UnimplementedCoreManagerServer) GetRandomTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
func (UnimplementedCoreManagerServer) GetRecommendedSongs ¶
func (UnimplementedCoreManagerServer) GetRecommendedSongs(context.Context, *NumberWithToken) (*JSONResponse, error)
func (UnimplementedCoreManagerServer) GetSongAudioFeatures ¶
func (UnimplementedCoreManagerServer) GetSongAudioFeatures(context.Context, *IDWithToken) (*JSONResponse, error)
func (UnimplementedCoreManagerServer) GetSongInfo ¶
func (UnimplementedCoreManagerServer) GetSongInfo(context.Context, *IDWithToken) (*JSONResponse, error)
func (UnimplementedCoreManagerServer) GetTopAlbumsCollage ¶
func (UnimplementedCoreManagerServer) GetTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
func (UnimplementedCoreManagerServer) GetTopArtists ¶
func (UnimplementedCoreManagerServer) GetTopArtists(context.Context, *NumberWithToken) (*JSONResponse, error)
func (UnimplementedCoreManagerServer) GetTopArtistsCollage ¶
func (UnimplementedCoreManagerServer) GetTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
func (UnimplementedCoreManagerServer) GetTopGenres ¶
func (UnimplementedCoreManagerServer) GetTopGenres(context.Context, *NumberWithToken) (*JSONResponse, error)
func (UnimplementedCoreManagerServer) GetTopSongs ¶
func (UnimplementedCoreManagerServer) GetTopSongs(context.Context, *NumberWithToken) (*JSONResponse, error)
func (UnimplementedCoreManagerServer) MakeRecommendedPlaylist ¶
func (UnimplementedCoreManagerServer) Search ¶
func (UnimplementedCoreManagerServer) Search(context.Context, *QueryWithToken) (*JSONResponse, error)
type UnsafeCoreManagerServer ¶
type UnsafeCoreManagerServer interface {
// contains filtered or unexported methods
}
UnsafeCoreManagerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoreManagerServer will result in compilation errors.