swagger

package
v0.0.0-...-f3a18e2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyResult no results found for query params err
	ErrEmptyResult = errors.New("no results found")
	// ErrNotFound obj not found err
	ErrNotFound = errors.New("not found")
	// ErrNotValidAsset invalid asset specified
	ErrNotValidAsset = errors.New("asset not valid")
	// ErrInvalid request
	ErrInvalid = errors.New("invalid request")
	// ErrDuplicate duplicate error
	ErrDuplicate = errors.New("duplicate resource")
)

Functions

func BalanceErrorHandler

func BalanceErrorHandler(label string, err error) middleware.Responder

BalanceErrorHandler handles

func ErrorResponse

func ErrorResponse(err error) *models.ErrorResponse

ErrorResponse wraps the error in the api standard models.ErrorResponse object

func HealthErrorHandler

func HealthErrorHandler(label string, err error) middleware.Responder

HealthErrorHandler handles error resp from calls to the health endpoint

func TransactionErrorHandler

func TransactionErrorHandler(label string, err error) middleware.Responder

TransactionErrorHandler handles

Types

This section is empty.

Jump to

Keyboard shortcuts

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