error

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 2 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{}

func NewErrorHandler

func NewErrorHandler() *Handler

func (*Handler) BadRequestHandler

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

func (*Handler) ForbiddenHandler

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

func (*Handler) InternalServerErrorHandler

func (h *Handler) InternalServerErrorHandler(w http.ResponseWriter, r *http.Request, err error)

func (*Handler) MethodNotAllowedHandler

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

func (*Handler) NoContentHandler

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

func (*Handler) NotFoundHandler

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

func (*Handler) SeeOtherHandler

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

Jump to

Keyboard shortcuts

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