api

package
v0.0.0-...-7708c96 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LookupArtistLocation

func LookupArtistLocation(artist string) dal.Location

LookupArtistLocation queries wikipedia for an artists location and returns it.

Types

type ArtistByLocation

type ArtistByLocation = struct {
	Location dal.Location `json:"location"`
	Artists  []dal.Artist `json:"artists"`
}

ArtistByLocation Artists grouped by location, for viewing in map.

type ArtistController

type ArtistController struct {
	// contains filtered or unexported fields
}

func NewArtistController

func NewArtistController(newArtistStore dal.ArtistStore, newLocationStore dal.LocationStore) *ArtistController

func (*ArtistController) LookupArtist

func (ac *ArtistController) LookupArtist(w http.ResponseWriter, r *http.Request)

func (*ArtistController) UpdateArtistLocation

func (ac *ArtistController) UpdateArtistLocation(w http.ResponseWriter, r *http.Request)

UpdateArtistLocation Updates the location for an existing artist.

type GoogleMapsController

type GoogleMapsController struct {
	// contains filtered or unexported fields
}

func NewGoogleMapsController

func NewGoogleMapsController() *GoogleMapsController

func (*GoogleMapsController) GetCoordinates

func (gmc *GoogleMapsController) GetCoordinates(location dal.Location) (*dal.Location, error)

func (*GoogleMapsController) NormalizeLocation

func (gmc *GoogleMapsController) NormalizeLocation(location dal.Location) (*dal.Location, error)

type HomepageController

type HomepageController struct {
}

func NewHomepageController

func NewHomepageController() *HomepageController

func (*HomepageController) AboutPage

func (hc *HomepageController) AboutPage(w http.ResponseWriter, r *http.Request)

func (*HomepageController) Index

type SpotifyClient

type SpotifyClient struct {
	// contains filtered or unexported fields
}

func NewSpotifyClient

func NewSpotifyClient() *SpotifyClient

type SpotifyController

type SpotifyController struct {
	// contains filtered or unexported fields
}

func NewSpotifyController

func NewSpotifyController(newArtistStore dal.ArtistStore, newLocationStore dal.LocationStore) *SpotifyController

func (*SpotifyController) AuthorizationCallback

func (sc *SpotifyController) AuthorizationCallback(w http.ResponseWriter, r *http.Request)

func (*SpotifyController) AuthorizationRequest

func (sc *SpotifyController) AuthorizationRequest(w http.ResponseWriter, r *http.Request)

func (*SpotifyController) FindUserArtistLocations

func (sc *SpotifyController) FindUserArtistLocations(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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