Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface {
AuthenticateClient(ctx *Context) (*SpotifyContext, error)
}
func NewAuthService ¶
func NewAuthService(logger Logger) AuthService
type ConfigService ¶
func NewConfigService ¶
func NewConfigService(logger Logger) ConfigService
type Context ¶
type Context struct { Properties map[string]string Config *models.Config SpotifyContext *SpotifyContext }
func NewContext ¶
type Logger ¶
type SearchService ¶
type SearchService interface {
Search(ctx *Context, term string) (models.SearchResult, error)
}
func NewSearchService ¶
func NewSearchService(logger Logger) SearchService
type SpotifyContext ¶
type SpotifyContext struct {
// contains filtered or unexported fields
}
func NewSpotifyContext ¶
func NewSpotifyContext(config clientcredentials.Config, client spotify.Client) *SpotifyContext
Click to show internal directories.
Click to hide internal directories.