ratelimiter

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(token string) resources.Handler

func ResourceToRateLimiterResource

func ResourceToRateLimiterResource(resource *Resource) ratelimiter.Resource

Types

type Resource

type Resource struct {
	Entity                  *helpers.YDBEntity
	FullPath                string
	Path                    string
	DatabaseEndpoint        string
	ResourcePath            string
	MaxUnitsPerSecond       float64
	MaxBurstSizeCoefficient float64
	PrefetchCoefficient     float64
	PrefetchWatermark       float64
}

func ResourceSchemaToRateLimiterResource

func ResourceSchemaToRateLimiterResource(d *schema.ResourceData) (*Resource, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL