handler

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerLogTodo

func HandlerLogTodo(w http.ResponseWriter, r *http.Request)

func HandlerLogUser

func HandlerLogUser(w http.ResponseWriter, r *http.Request)

func HandlerLogin

func HandlerLogin(w http.ResponseWriter, r *http.Request)

func HandlerRegister

func HandlerRegister(w http.ResponseWriter, r *http.Request)

func HandlerTodo

func HandlerTodo(w http.ResponseWriter, r *http.Request)

func HandlerTodoCategory

func HandlerTodoCategory(w http.ResponseWriter, r *http.Request)

func HandlerTodoClear

func HandlerTodoClear(w http.ResponseWriter, r *http.Request)

func HandlerUser

func HandlerUser(w http.ResponseWriter, r *http.Request)

func Home

func Home(w http.ResponseWriter, r *http.Request)

func JDecoder

func JDecoder(w http.ResponseWriter, r *http.Request, data any) error

func PasetoDecode

func PasetoDecode(w http.ResponseWriter, r *http.Request, headerName string) (model.Payload, error)

func ReturnStruct

func ReturnStruct(DataStuct any) string

func StatusBadRequest

func StatusBadRequest(w http.ResponseWriter, message string)

func StatusConflict

func StatusConflict(w http.ResponseWriter, message string)

func StatusCreated

func StatusCreated(w http.ResponseWriter, message string)

func StatusMethodNotAllowed

func StatusMethodNotAllowed(w http.ResponseWriter, message string)

func StatusNoContent

func StatusNoContent(w http.ResponseWriter, message string)

func StatusNotFound added in v0.0.3

func StatusNotFound(w http.ResponseWriter, message string)

func StatusOK

func StatusOK(w http.ResponseWriter, message string, data ...any)

func StatusUnauthorized

func StatusUnauthorized(w http.ResponseWriter, message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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