rpcutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRetry

func WithRetry[T any](ctx context.Context, operation func() (T, error)) (T, error)

WithRetry wraps an RPC operation with retry logic using exponential backoff. It retries on transient errors like network issues and rate limits.

func WithRetryCustom

func WithRetryCustom[T any](ctx context.Context, cfg retryConfig, operation func() (T, error)) (T, error)

WithRetryCustom allows custom retry configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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