Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestinationDownError ¶
type DestinationDownError struct {
Message string
// contains filtered or unexported fields
}
DestinationDownError indicates the destination is down and wraps another error. It is a useful specific error that can be used, for example, in a circuit breaker to distinguish when a destination service is down and an internal error.
func NewDestinationDownError ¶
func NewDestinationDownError(msg string, err error) *DestinationDownError
func (*DestinationDownError) Error ¶
func (e *DestinationDownError) Error() string
func (*DestinationDownError) Unwrap ¶
func (e *DestinationDownError) Unwrap() error
type UnprocessableTaskError ¶
type UnprocessableTaskError struct {
Message string
}
UnprocessableTaskError is an error type that indicates a task cannot be processed and should be marked as failed without retrying.
func NewUnprocessableTaskError ¶
func NewUnprocessableTaskError(message string) *UnprocessableTaskError
NewUnprocessableTaskError returns a new UnprocessableTaskError from given message.
func (UnprocessableTaskError) Error ¶
func (e UnprocessableTaskError) Error() string
Click to show internal directories.
Click to hide internal directories.