Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupArtistLocation ¶
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 (*GoogleMapsController) NormalizeLocation ¶
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 ¶
func (hc *HomepageController) Index(w http.ResponseWriter, r *http.Request)
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)
Click to show internal directories.
Click to hide internal directories.