Versions in this module Expand all Collapse all v0 v0.1.2 Apr 30, 2021 Changes in this version + type Client struct + func NewClient(reg prometheus.Registerer) *Client + func (c *Client) Dial(ctx context.Context, address string) error + func (c *Client) GetRateLimits(ctx context.Context, req *request) (remaining, resetTime int64, err error) + type Config struct + Limit int + Matcher *regexp.Regexp + Tenant string + Window time.Duration + type Middleware func(http.Handler) http.Handler + func WithLocalRateLimiter(configs ...Config) Middleware + func WithSharedRateLimiter(logger log.Logger, client *Client, configs ...Config) Middleware