mutation

package
v0.6.17 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Committed added in v0.6.0

func Committed(err error) error

func ForceCommitted added in v0.6.0

func ForceCommitted(err error) error

ForceCommitted records that the state transition is known to have crossed its durable commit point even when a later reporting error already carries a different mutation outcome.

func Unknown

func Unknown(err error) error

Types

type Error

type Error struct {
	Outcome Outcome
	Err     error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

type Outcome

type Outcome string
const (
	OutcomeCommitted    Outcome = "committed"
	OutcomeNotCommitted Outcome = "not_committed"
	OutcomeUnknown      Outcome = "unknown"
)

func Explicit

func Explicit(err error) (Outcome, bool)

func ForError

func ForError(err error) Outcome

Jump to

Keyboard shortcuts

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