package budget
import "github.com/ydb-platform/ydb-go-sdk/v3/retry/budget"
Index ¶
- Variables
- func Limited(attemptsPerSecond int, opts ...fixedBudgetOption) *fixedBudget
- func Percent(percent int) *percentBudget
- type Budget
Variables ¶
var ( // ErrNoQuota is a special error for no quota provided by external retry budget // // Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental ErrNoQuota = xerrors.Wrap(errors.New("no retry quota")) )
Functions ¶
func Limited ¶
func Limited(attemptsPerSecond int, opts ...fixedBudgetOption) *fixedBudget
Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental
func Percent ¶
func Percent(percent int) *percentBudget
Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental
Types ¶
type Budget ¶
type Budget interface { // Acquire will called on second and subsequent retry attempts Acquire(ctx context.Context) error }
Experimental: https://github.com/ydb-platform/ydb-go-sdk/blob/master/VERSIONING.md#experimental
Source Files ¶
- Version
- v3.75.1
- Published
- Jul 17, 2024
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 33 minutes ago –
Tools for package owners.