Help us shape the future of Go! Take the 2026 Go Developer Survey

misc

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrHTTPNotFound HTTP status code 404
	ErrHTTPNotFound = int64(404)
	// ErrHTTPConflict HTTP status code 409
	ErrHTTPConflict = int64(409)
	// ErrHTTPInternalServerError HTTP status code 500
	ErrHTTPInternalServerError = int64(500)
	// ErrHTTPBadRequest HTTP status code 400
	ErrHTTPBadRequest = int64(400)
)

Variables

This section is empty.

Functions

func DiscoverChildPaths

func DiscoverChildPaths(path string, spec json.RawMessage) (models.Endpoints, error)

DiscoverChildPaths return children models.Endpoints given path

func HandleError

func HandleError(err error) *models.Error

HandleError translates error codes from client native into models.Error with appropriate http status code

Types

This section is empty.

Jump to

Keyboard shortcuts

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