retry

package
v0.1.0-preview.2 Latest Latest
Warning

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

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

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

func RetryableHandler(
	_ context.Context,
	invocation sdk.Invocation,
) (sdk.Result, error)

RetryableHandler contributes one bounded retry policy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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