Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHaltingError ¶ added in v1.3.0
IsHaltingError returns true if the error is a fatal error or a request to cancel the operation
Types ¶
type HookErrorFatal ¶ added in v0.17.0
type HookErrorFatal struct {
Err error
}
HookErrorFatal stops evaluation of subsequent hooks and will propagate to the hook flow's caller
func (HookErrorFatal) Error ¶ added in v0.17.0
func (e HookErrorFatal) Error() string
func (HookErrorFatal) Unwrap ¶ added in v0.17.0
func (e HookErrorFatal) Unwrap() error
type HookErrorRequestCancel ¶ added in v0.17.0
type HookErrorRequestCancel struct {
Err error
}
HookErrorCancel requests that the calling operation cancel itself. It must be handled explicitly caller. Subsequent hooks will be skipped.
func (HookErrorRequestCancel) Error ¶ added in v0.17.0
func (e HookErrorRequestCancel) Error() string
func (HookErrorRequestCancel) Unwrap ¶ added in v0.17.0
func (e HookErrorRequestCancel) Unwrap() error
type HookErrorRetry ¶ added in v1.5.0
type HookErrorRetry struct { Err error Backoff RetryBackoffPolicy }
HookErrorRetry requests that the calling operation retry after a specified backoff duration
func (HookErrorRetry) Error ¶ added in v1.5.0
func (e HookErrorRetry) Error() string
type RetryBackoffPolicy ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.