handler

package
v0.0.0-...-2d98496 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertTracks

func InsertTracks(ctx context.Context, db *ent.Client, tracks []spotify.SavedTrack, playlistId int64)

Types

type Handler

type Handler struct {
	DB          *ent.Client
	SpotifyAuth *spotifyauth.Authenticator
}

func NewHandler

func NewHandler(client *ent.Client, sp *spotifyauth.Authenticator) *Handler

func (*Handler) Home

func (h *Handler) Home(c echo.Context) error

func (*Handler) LoginIndex

func (h *Handler) LoginIndex(c echo.Context) error

func (*Handler) LoginUser

func (h *Handler) LoginUser(c echo.Context) error

func (*Handler) LogoutUser

func (h *Handler) LogoutUser(c echo.Context) error

func (*Handler) PlaylistDelete

func (h *Handler) PlaylistDelete(c echo.Context) error

func (*Handler) PlaylistIndex

func (h *Handler) PlaylistIndex(c echo.Context) error

func (*Handler) PlaylistTracks

func (h *Handler) PlaylistTracks(c echo.Context) error

func (*Handler) PlaylistsIndex

func (h *Handler) PlaylistsIndex(c echo.Context) error

func (*Handler) PullLiked

func (h *Handler) PullLiked(c echo.Context) error

func (*Handler) SignupForm

func (h *Handler) SignupForm(c echo.Context) error

func (*Handler) SignupUser

func (h *Handler) SignupUser(c echo.Context) error

func (*Handler) SpotifyAuthCallback

func (h *Handler) SpotifyAuthCallback(c echo.Context) error

func (*Handler) SpotifyLoginUrl

func (h *Handler) SpotifyLoginUrl(c echo.Context) error

Jump to

Keyboard shortcuts

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