errors

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrConflict added in v0.2.0

func ErrConflict(tId string) render.Renderer

func ErrFobiddenRequest added in v0.2.0

func ErrFobiddenRequest(tId string) render.Renderer

func ErrInternal added in v0.2.0

func ErrInternal(tId string) render.Renderer

func ErrInvalidRequest added in v0.2.0

func ErrInvalidRequest(tId string) render.Renderer

func ErrRender added in v0.2.0

func ErrRender(tId string) render.Renderer

func GenericErr added in v0.2.0

func GenericErr(tId string, code int, msg string) render.Renderer

func NoErr added in v0.2.0

func NoErr(tId string) render.Renderer

Types

type ErrResponse added in v0.2.0

type ErrResponse struct {
	RequestID      string `json:"requestId"`
	HttpStatusCode int    `json:"code"`
	StatusText     string `json:"status"`
}

func (*ErrResponse) Render added in v0.2.0

func (e *ErrResponse) Render(rw http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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