response

package
v1.3.2-rc-1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInternalServerError = errors.New("SOMETHING_WENT_WRONG")
)

Functions

This section is empty.

Types

type ErrResponse

type ErrResponse struct {
	Err error `json:"-"` // low-level runtime error

	ErrorMessage string `json:"error,omitempty"` // application-level error message, for debugging
}

func ErrorResponse

func ErrorResponse(err error) *ErrResponse

type HealthResponse

type HealthResponse struct {
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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