# Functions
4.
3.
1.
2.
No description provided by the author
判断是否为context错误,这个错误可能由上层触发或者deadline导致,不能视为retry重传的错误条件(场景:上层主动取消调用,那么重传也没有必要了).
No description provided by the author
按照callOptions的配置更新opt的原始配置.
从原始的grpc.callOptions数组配置中剥离grpcOptions与retryOptions.
attempt: 当前重试次数.
设置每次重传时的backoff时间计算回调方法,系统内置的方法见grpc-wrapper-framework/microservice/retrys/backoff.go.
.
WithCodes sets which codes should be retried.
No description provided by the author
设置最大的重传次数.
WithPerRetryTimeout sets the RPC timeout per call (including initial call) on this call, or this interceptor.
# Variables
No description provided by the author
DefaultRetriableCodes is a set of well known types gRPC codes that should be retri-able.
# Structs
CallOption is a grpc.CallOption that is local to grpc_retry.
# Type aliases
BackoffFunc denotes a family of functions that control the backoff duration between call retries.
BackoffFuncContext denotes a family of functions that control the backoff duration between call retries.