package
0.0.0-20221019062149-4514fd00f571
Repository: https://github.com/hellobchain/fabric-sdk-go.git
Documentation: pkg.go.dev

# Functions

New retry Handler with the given opts.
NewInvoker creates a new RetryableInvoker.
WithAttempts new retry Handler with given attempts.
WithBeforeRetry specifies a function to call before a retry attempt.
WithDefaults new retry Handler with default opts.

# Constants

DefaultAttempts number of retry attempts made by default.
DefaultBackoffFactor default backoff factor.
DefaultInitialBackoff default initial backoff.
DefaultMaxBackoff default maximum backoff.
ResMgmtDefaultAttempts number of retry attempts made by default.
ResMgmtDefaultBackoffFactor default backoff factor.
ResMgmtDefaultInitialBackoff default initial backoff.
ResMgmtDefaultMaxBackoff default maximum backoff.
TestAttempts number of retry attempts made by default.
TestBackoffFactor default backoff factor.
TestInitialBackoff default initial backoff.
TestMaxBackoff default maximum backoff.

# Variables

ChannelClientRetryableCodes are the suggested codes that should be treated as transient by fabric-sdk-go/pkg/client/channel.Client.
ChannelConfigRetryableCodes error codes to be taken into account for query channel config retry.
DefaultChannelOpts default retry options for the channel client.
DefaultOpts default retry options.
DefaultResMgmtOpts default retry options for the resource management client.
DefaultRetryableCodes these are the error codes, grouped by source of error, that are considered to be transient error conditions by default.
ResMgmtDefaultRetryableCodes are the suggested codes that should be treated as transient by fabric-sdk-go/pkg/client/resmgmt.Client.
TestRetryableCodes are used by tests to determine error situations that can be retried.
TestRetryOpts are used by tests to determine retry parameters.

# Structs

Opts defines the retry parameters.
RetryableInvoker manages invocations that could return errors and retries the invocation on transient errors.

# Interfaces

Handler retry handler interface decides whether a retry is required for the given error.

# Type aliases

BeforeRetryHandler is a function that's invoked before a retry attempt.
Invocation is the function to be invoked.
InvokerOpt is an invoker option.