package retry
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/retry"
Index ¶
- func Check(err error) ( statusCode int64, operationStatus operation.Status, backoffType backoff.Type, deleteSession bool, )
- func IsIdempotent(ctx context.Context) bool
- func MustDeleteSession(err error) bool
- func MustRetry(err error, isOperationIdempotent bool) bool
- func WithIdempotent(ctx context.Context, idempotent bool) context.Context
- type Mode
- func NewMode(statusCode int64, operationStatus operation.Status, backoff backoff.Type, deleteSession bool) Mode
- func (m Mode) BackoffType() backoff.Type
- func (m Mode) MustBackoff() bool
- func (m Mode) MustDeleteSession() bool
- func (m Mode) MustRetry(isOperationIdempotent bool) bool
- func (m Mode) StatusCode() int64
Functions ¶
func Check ¶
func Check(err error) ( statusCode int64, operationStatus operation.Status, backoffType backoff.Type, deleteSession bool, )
Check returns retry mode for err.
func IsIdempotent ¶
func MustDeleteSession ¶
func MustRetry ¶
func WithIdempotent ¶
Types ¶
type Mode ¶
type Mode struct {
// contains filtered or unexported fields
}
Mode reports whether operation is able retried and with which properties.
func NewMode ¶
func NewMode(statusCode int64, operationStatus operation.Status, backoff backoff.Type, deleteSession bool) Mode
func (Mode) BackoffType ¶
func (Mode) MustBackoff ¶
func (Mode) MustDeleteSession ¶
func (Mode) MustRetry ¶
func (Mode) StatusCode ¶
Source Files ¶
- Version
- v3.37.8
- Published
- Sep 14, 2022
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 1 minute ago –
Tools for package owners.