utils

package
v0.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RequestErrorSummary  = "Request Error"
	ClientErrorSummary   = "Client Error"
	InternalErrorSummary = "Internal Error"
)

Variables

This section is empty.

Functions

func BuildClientErrorMessage

func BuildClientErrorMessage(err error) string

func BuildInternalErrorMessage

func BuildInternalErrorMessage(err error) string

func BuildRequestErrorMessage

func BuildRequestErrorMessage(status string, body []byte) (string, error)

Types

type ErrorResponse

type ErrorResponse struct {
	Error *string `json:"error"`
}

Jump to

Keyboard shortcuts

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