package ratelimiter

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/ratelimiter"

Index

Types

type Client

type Client interface {
	CreateResource(
		ctx context.Context,
		coordinationNodePath string,
		resource ratelimiter.Resource,
	) (err error)
	AlterResource(
		ctx context.Context,
		coordinationNodePath string,
		resource ratelimiter.Resource,
	) (err error)
	DropResource(
		ctx context.Context,
		coordinationNodePath string,
		resourcePath string,
	) (err error)
	ListResource(
		ctx context.Context,
		coordinationNodePath string,
		resourcePath string,
		recursive bool,
	) (_ []string, err error)
	DescribeResource(
		ctx context.Context,
		coordinationNodePath string,
		resourcePath string,
	) (_ *ratelimiter.Resource, err error)
	AcquireResource(
		ctx context.Context,
		coordinationNodePath string,
		resourcePath string,
		amount uint64,
		isUsedAmount bool,
	) (err error)
	Close(ctx context.Context) error
}

func New

Source Files

ratelimiter.go

Version
v3.9.4
Published
Feb 11, 2022
Platform
darwin/amd64
Imports
6 packages
Last checked
1 second ago

Tools for package owners.