core

package
v0.0.0-...-34395f8 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSeedProfile

func DefaultSeedProfile(c *CoreService, token *oauth2.Token) (spotify.Seeds, error)

Types

type CoreService

type CoreService struct {
	Authenticator          *spotifyauth.Authenticator
	CollageGeneratorClient collage_maker_pb.ImageProcessorClient
	core_pb.UnimplementedCoreManagerServer
}

func (*CoreService) GetPopularityScore

func (c *CoreService) GetPopularityScore(ctx context.Context, token_json *core_pb.Token) (*core_pb.FloatScore, error)

func (*CoreService) GetRandomTopAlbumsCollage

func (c *CoreService) GetRandomTopAlbumsCollage(ctx context.Context, info_and_token *core_pb.CollageInfoAndToken) (*core_pb.Image, error)

func (*CoreService) GetRandomTopArtistsCollage

func (c *CoreService) GetRandomTopArtistsCollage(ctx context.Context, info_and_token *core_pb.CollageInfoAndToken) (*core_pb.Image, error)

func (*CoreService) GetRecommendedSongs

func (c *CoreService) GetRecommendedSongs(ctx context.Context, number_with_token *core_pb.NumberWithToken) (*core_pb.JSONResponse, error)

func (*CoreService) GetSongAudioFeatures

func (c *CoreService) GetSongAudioFeatures(ctx context.Context, track *core_pb.IDWithToken) (*core_pb.JSONResponse, error)

func (*CoreService) GetSongInfo

func (c *CoreService) GetSongInfo(ctx context.Context, track *core_pb.IDWithToken) (*core_pb.JSONResponse, error)

func (*CoreService) GetTopAlbumsCollage

func (c *CoreService) GetTopAlbumsCollage(ctx context.Context, info_and_token *core_pb.CollageInfoAndToken) (*core_pb.Image, error)

func (*CoreService) GetTopArtists

func (c *CoreService) GetTopArtists(ctx context.Context, artist *core_pb.NumberWithToken) (*core_pb.JSONResponse, error)

func (*CoreService) GetTopArtistsCollage

func (c *CoreService) GetTopArtistsCollage(ctx context.Context, info_and_token *core_pb.CollageInfoAndToken) (*core_pb.Image, error)

func (*CoreService) GetTopGenres

func (c *CoreService) GetTopGenres(ctx context.Context, number_and_token *core_pb.NumberWithToken) (*core_pb.JSONResponse, error)

func (*CoreService) GetTopSongs

func (c *CoreService) GetTopSongs(ctx context.Context, track *core_pb.NumberWithToken) (*core_pb.JSONResponse, error)

func (*CoreService) MakeRecommendedPlaylist

func (c *CoreService) MakeRecommendedPlaylist(ctx context.Context, token_json *core_pb.Token) (*emptypb.Empty, error)

func (*CoreService) Search

func (c *CoreService) Search(ctx context.Context, query_with_token *core_pb.QueryWithToken) (*core_pb.JSONResponse, error)

type GenreWithFrequency

type GenreWithFrequency struct {
	Frequency int    `json:"frequency"`
	Total     int    `json:"total"`
	Genre     string `json:"genre"`
}

Jump to

Keyboard shortcuts

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