# Functions

DownstreamError creates a new error with status [SourceDownstream].
DownstreamErrorf creates a new error with status [SourceDownstream] and formats according to a format specifier and returns the string as a value that satisfies error.
InitSource initialize the source for the context.
InCancelledError returns true if err is context.Canceled or is gRPC status Canceled.
IsDownstreamError return true if provided error is an error with downstream source or a timeout error or a cancelled error.
IsDownstreamHTTPError return true if provided error is an error with downstream source or a HTTP timeout error or a cancelled error or a connection reset/refused error or dns not found error.
No description provided by the author
No description provided by the author
DownstreamError creates a new error with status [SourcePlugin].
SourceFromContext returns the source stored in the context.
ErrorSourceFromStatus returns a [Source] based on provided HTTP status code.
WithDownstreamSource mutates the provided context by setting the source to [SourceDownstream].
WithSource mutates the provided context by setting the source to s.

# Constants

DefaultSource is the default [Source] that should be used when it is not explicitly set.
SourceDownstream status originates from downstream service.
SourcePlugin status originates from plugin.

# Structs

No description provided by the author

# Type aliases

Source type defines the status source.