handlers

package
v0.0.0-...-6c8f5b4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const SEVEN_DAYS_IN_SECONDS = 60 * 60 * 24 * 7

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(database *db.DB) *Handler

func (*Handler) AddPetHandler

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

func (*Handler) DeletePetHandler

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

func (*Handler) HomeHandler

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

func (*Handler) PetConnectionStatusHandler

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

func (*Handler) PetGetQRCodeHandler

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

func (*Handler) PetInfoHandler

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

func (*Handler) PetPingHandler

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

func (*Handler) RootHandler

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

func (*Handler) UserLoginHandler

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

func (*Handler) UserLogoutHandler

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

func (*Handler) UserSignUpHandler

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

Jump to

Keyboard shortcuts

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