app

package
v0.0.0-...-bcea5fb Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Source  sources.Source   // remote data source
	Cache   caches.Cache     // cache store client
	Config  *config.Config   // songexplorer configuration data
	Metrics *metrics.Metrics // stats for api requests.
}

func (*App) ArtistBio

func (a *App) ArtistBio(ctx context.Context, req *apiai.Request) (*apiai.Response, error)

func (*App) ArtistSimilar

func (a *App) ArtistSimilar(ctx context.Context, req *apiai.Request) (*apiai.Response, error)

ArtistSimilar performs a similar artist lookup requested within the artist-recommendation intent.

func (*App) ArtistTopTracks

func (a *App) ArtistTopTracks(ctx context.Context, req *apiai.Request) (*apiai.Response, error)

func (*App) TrackSimilar

func (a *App) TrackSimilar(ctx context.Context, req *apiai.Request) (*apiai.Response, error)

TrackSimilar handles the similar tracks intent. Performs a cache lookup and then falls through to the external source on a cache miss.

Jump to

Keyboard shortcuts

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