model

package
v4.75.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalid          = errors.New("invalid")
	ErrUnauthorized     = errors.New("unauthorized")
	ErrForbidden        = errors.New("forbidden")
	ErrNotFound         = errors.New("not found")
	ErrMethodNotAllowed = errors.New("method not allowed")
	ErrInternalError    = errors.New("internal error")
)

Functions

func ChainMiddlewares

func ChainMiddlewares(handler http.Handler, middlewares ...Middleware) http.Handler

func ConcatError

func ConcatError(errs []error) error

func GitSha added in v4.69.10

func GitSha() string

func IsNil added in v4.36.0

func IsNil(i any) bool

func Version added in v4.69.0

func Version() string

func WrapForbidden added in v4.3.0

func WrapForbidden(err error) error

func WrapInternal

func WrapInternal(err error) error

func WrapInvalid

func WrapInvalid(err error) error

func WrapMethodNotAllowed

func WrapMethodNotAllowed(err error) error

func WrapNotFound

func WrapNotFound(err error) error

func WrapUnauthorized added in v4.3.0

func WrapUnauthorized(err error) error

Types

type Middleware

type Middleware func(http.Handler) http.Handler

type Pinger

type Pinger = func(context.Context) error

Jump to

Keyboard shortcuts

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