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.
Click to show internal directories.
Click to hide internal directories.