response

package
v1.2.2-alpha-1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 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