Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownstreamError ¶
DownstreamError will apply the source as downstream
func FromStatus ¶
func FromStatus(status backend.Status) backend.ErrorSource
FromStatus returns error source from status
func Middleware ¶
func Middleware(plugin string) httpclient.Middleware
Middleware captures error source metric
func PluginError ¶
PluginError will apply the source as plugin
func Response ¶
func Response(err error) backend.DataResponse
Response returns an error DataResponse given status, source of the error and message.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error captures error source and implements the error interface
func SourceError ¶
func SourceError(source backend.ErrorSource, err error, override bool) Error
SourceError returns an error with the source If source is already defined, it will return it, or you can override
Click to show internal directories.
Click to hide internal directories.