package
0.1.2
Repository: https://github.com/observatorium/api.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewClient creates a new gubernator client with default configuration.
WithLocalRateLimiter returns a middleware that controls the amount of requests per tenant using an in-memory store.
WithSharedRateLimiter returns a middleware that controls the amount of requests per tenant using an external service.

# Structs

Client can connect to gubernator and get rate limits.
Config configures a rate limiter per endpoint, per tenant.

# Type aliases

Middleware is a convenience type for functions that wrap http.Handlers.