Documentation ¶
Index ¶
- func Render404(rw http.ResponseWriter, req *http.Request)
- func Render500(rw http.ResponseWriter, err error)
- type CreatePlaylistRequest
- type Home
- type Playlists
- type ShareRequest
- type Subscriptions
- func (s *Subscriptions) BindToMux(mux *mux.Router)
- func (s *Subscriptions) Create(rw http.ResponseWriter, req *http.Request)
- func (s *Subscriptions) Delete(rw http.ResponseWriter, req *http.Request)
- func (s *Subscriptions) ShareCreate(rw http.ResponseWriter, req *http.Request)
- func (s *Subscriptions) ShareView(rw http.ResponseWriter, req *http.Request)
- func (s *Subscriptions) View(rw http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render500 ¶
func Render500(rw http.ResponseWriter, err error)
Types ¶
type CreatePlaylistRequest ¶
type CreatePlaylistRequest struct {
PlaylistName string `json:"playlist_name`
}
type Playlists ¶
type Playlists struct {
// contains filtered or unexported fields
}
func NewPlaylistsController ¶
func NewPlaylistsController( oauth *oauth.OAuth, spotifyClientFn func(user *model.User) (*spotify.SpotifyClient, error), playlistStore model.PlaylistStore, errorHandler func(http.ResponseWriter, error)) *Playlists
type ShareRequest ¶
type ShareRequest struct {}
type Subscriptions ¶
type Subscriptions struct {
// contains filtered or unexported fields
}
func NewSubscriptionsController ¶
func NewSubscriptionsController( oauth *oauth.OAuth, spotifyClientFn func(user *model.User) (*spotify.SpotifyClient, error), playlistStore model.PlaylistStore, notifier *notifiers.Notifier, errorHandler func(http.ResponseWriter, error)) *Subscriptions
func (*Subscriptions) BindToMux ¶
func (s *Subscriptions) BindToMux(mux *mux.Router)
func (*Subscriptions) Create ¶
func (s *Subscriptions) Create(rw http.ResponseWriter, req *http.Request)
func (*Subscriptions) Delete ¶
func (s *Subscriptions) Delete(rw http.ResponseWriter, req *http.Request)
func (*Subscriptions) ShareCreate ¶
func (s *Subscriptions) ShareCreate(rw http.ResponseWriter, req *http.Request)
func (*Subscriptions) ShareView ¶
func (s *Subscriptions) ShareView(rw http.ResponseWriter, req *http.Request)
func (*Subscriptions) View ¶
func (s *Subscriptions) View(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.