Documentation
¶
Overview ¶
Package retry defines canonical descriptors for generated bounded retry policies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Retryable ¶
func Retryable() sdk.Definition
Retryable marks an interface-bound managed service method for bounded, context-aware retry. The optional classifier names an exported same-package func(error) bool. Without one, generated code uses retry.Transient, which retries only explicitly transient errors and never cancellation.
// @import { Retryable } from "github.com/spice-framework/spice/annotation/retry"
// @Retryable(maxAttempts=3, classifier=IsTransient)
func RetryableHandler ¶
RetryableHandler contributes one bounded retry policy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.