services

package
v0.0.0-...-ac1cd91 Latest Latest
Warning

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

Go to latest
Published: May 18, 2019 License: MIT Imports: 8 Imported by: 0

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

type ConfigService interface {
	Get() (models.Config, error)
}

func NewConfigService

func NewConfigService(logger Logger) ConfigService

type Context

type Context struct {
	Properties     map[string]string
	Config         *models.Config
	SpotifyContext *SpotifyContext
}

func NewContext

func NewContext(config models.Config) *Context

type Logger

type Logger interface {
	Log(message string, args ...interface{})
	Error(err error)
	Fatal(err error)
}

func NewLogger

func NewLogger() 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

Jump to

Keyboard shortcuts

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