model

package
v3.37.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalid occurs when checks fails
	ErrInvalid = errors.New("invalid")

	// ErrNotFound occurs when something is not found
	ErrNotFound = errors.New("not found")

	// ErrMethodNotAllowed occurs when method is not allowed
	ErrMethodNotAllowed = errors.New("method not allowed")

	// ErrInternalError occurs when shit happens
	ErrInternalError = errors.New("internal error")
)

Functions

func ConcatError added in v3.36.1

func ConcatError(errs []error) error

ConcatError concat errors to a single string

func WrapInternal added in v3.36.1

func WrapInternal(err error) error

WrapInternal wraps given error with internal err

func WrapInvalid added in v3.36.1

func WrapInvalid(err error) error

WrapInvalid wraps given error with invalid err

func WrapMethodNotAllowed added in v3.36.1

func WrapMethodNotAllowed(err error) error

WrapMethodNotAllowed wraps given error with not method not allowed err

func WrapNotFound added in v3.36.1

func WrapNotFound(err error) error

WrapNotFound wraps given error with not found err

Types

type Middleware

type Middleware func(http.Handler) http.Handler

Middleware describe a middleware in the net/http package form

type Pinger added in v3.31.0

type Pinger = func() error

Pinger describes a function to check liveness of app

Jump to

Keyboard shortcuts

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