failure

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPermanent

func IsPermanent(err error) bool

func Permanent

func Permanent(err error) error

func RetryAfter

func RetryAfter(delay time.Duration, err error) error

func RetryDelay

func RetryDelay(err error) (time.Duration, bool)

func ValidateRetryAfter

func ValidateRetryAfter(err error) error

Types

type Value

type Value struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

Value is the shared durable and public representation of an operational or terminal failure. Distinct lifecycle projections store this same shape.

func Clone

func Clone(value *Value) *Value

func Decode

func Decode(data []byte) (*Value, error)

Jump to

Keyboard shortcuts

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