v1

package
v0.0.0-...-82ef66b Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRequestError

func IsRequestError(err error) bool

func NewRequestError

func NewRequestError(err error, status int) error

Types

type ErrorResponse

type ErrorResponse struct {
	Error  string            `json:"error"`
	Fields map[string]string `json:"fields,omitempty"`
}

type RequestError

type RequestError struct {
	Err    error
	Status int
}

func GetRequestError

func GetRequestError(err error) *RequestError

func (*RequestError) Error

func (r *RequestError) Error() string

Directories

Path Synopsis
Package debug provides handler support for the debugging endpoints.
Package debug provides handler support for the debugging endpoints.
package mid contains the set of middleware functions.
package mid contains the set of middleware functions.

Jump to

Keyboard shortcuts

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