handlers

package
v0.0.0-...-9bc3247 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 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 Handler

type Handler struct {
	Logger  *slog.Logger
	Storage storage.Queries
}

func NewHandler

func NewHandler(logger *slog.Logger, storage storage.Queries) Handler

func (Handler) CreateWorkouts

func (h Handler) CreateWorkouts(w http.ResponseWriter, r *http.Request)

func (Handler) DeleteWorkoutsByID

func (h Handler) DeleteWorkoutsByID(w http.ResponseWriter, r *http.Request)

func (*Handler) GetWorkoutsByID

func (h *Handler) GetWorkoutsByID(w http.ResponseWriter, r *http.Request)

func (Handler) GetWorkoutsByUserID

func (h Handler) GetWorkoutsByUserID(w http.ResponseWriter, r *http.Request)

func (*Handler) UpdateWorkoutsByUserID

func (h *Handler) UpdateWorkoutsByUserID(w http.ResponseWriter, r *http.Request)

func (Handler) UserLogin

func (h Handler) UserLogin(w http.ResponseWriter, r *http.Request)

func (Handler) UserRegister

func (h Handler) UserRegister(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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