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, )
- 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.
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.26.5
- Published
- May 27, 2022
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 3 minutes ago –
Tools for package owners.