server

package
v0.0.0-...-a8d8f77 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

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

func NewEnv

func NewEnv(ds *data_store.DataStore, config *config.Config) *Env

func (*Env) LastfmAuthHandler

func (e *Env) LastfmAuthHandler(w http.ResponseWriter, r *http.Request)

func (*Env) LastfmLovedTracksHandler

func (e *Env) LastfmLovedTracksHandler(w http.ResponseWriter, r *http.Request)

func (*Env) LastfmTopTracksHandler

func (e *Env) LastfmTopTracksHandler(w http.ResponseWriter, r *http.Request)

func (*Env) LogoutHandler

func (e *Env) LogoutHandler(w http.ResponseWriter, r *http.Request)

func (*Env) MeHandler

func (e *Env) MeHandler(w http.ResponseWriter, r *http.Request)

func (*Env) RedirectToFrontendHandler

func (e *Env) RedirectToFrontendHandler(w http.ResponseWriter, r *http.Request)

func (*Env) SpotifyAuthHandler

func (e *Env) SpotifyAuthHandler(w http.ResponseWriter, r *http.Request)

func (*Env) SpotifyCheckSavedTracksHandler

func (e *Env) SpotifyCheckSavedTracksHandler(w http.ResponseWriter, r *http.Request)

func (*Env) SpotifySaveTracksHandler

func (e *Env) SpotifySaveTracksHandler(w http.ResponseWriter, r *http.Request)

func (*Env) SpotifySearchTracksHandler

func (e *Env) SpotifySearchTracksHandler(w http.ResponseWriter, r *http.Request)

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type MeResponse

type MeResponse struct {
	SpotifyUserId       string `json:"spotifyUserId"`
	LastfmUsername      string `json:"lastfmUsername"`
	IsSignedIntoLastfm  bool   `json:"isSignedIntoLastfm"`
	IsSignedIntoSpotify bool   `json:"isSignedIntoSpotify"`
}

Jump to

Keyboard shortcuts

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