response

package
v0.0.0-...-1825ddb Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	ID         string        `json:"id,omitempty"`
	Status     string        `json:"status,omitempty"`
	Code       string        `json:"code,omitempty"`
	Message    string        `json:"message,omitempty"`
	Title      string        `json:"title,omitempty"`
	Detail     string        `json:"detail,omitempty"`
	Resolution string        `json:"resolution,omitempty"`
	Source     []ErrorSource `json:"source,omitempty"`
}

Error a given error

func (Error) Error

func (err Error) Error() string

type ErrorResponse

type ErrorResponse struct {
	Errors []Error `json:"errors,omitempty"`
	Err    Error   `json:"error,omitempty"`
}

ErrorResponse when a none 200 HTTP Status is returned. This handles the JSON

func (ErrorResponse) Error

func (err ErrorResponse) Error() string

type ErrorSource

type ErrorSource struct {
	Pointer   string `json:"pointer,omitempty"`
	Parameter string `json:"parameter,omitempty"`
}

ErrorSource error source representation

Jump to

Keyboard shortcuts

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