ratelimit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRatelimitTransport

func NewRatelimitTransport(next http.RoundTripper, opts ...RatelimitTransportOption) *ratelimitTransport

NewRatelimitTransport initializes a new *ratelimitTransport instance

Types

type RatelimitTransportOption

type RatelimitTransportOption func(*ratelimitTransport)

RatelimitTransportOption option for RateLimitTransport

func WithCache

func WithCache(cache *cache.Cache) RatelimitTransportOption

WithCache allows to specify cache instance for *ratelimitTransport

func WithLimiter

WithLimiter allows to specify limiter instance for *ratelimitTransport

Jump to

Keyboard shortcuts

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