restore

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package restore owns the Restore protocol shared by built-in strategies: strict state decoding, Definition-consistency validation, and cooperative cancellation around that validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode[S any](
	ctx context.Context,
	state agent.ExecutionState,
	kind string,
	invalidState error,
	validate func(context.Context, S) error,
) (S, error)

Decode returns state of kind only after validate accepts it. Decoding errors wrap invalidState; validation errors are returned unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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