Versions in this module Expand all Collapse all v0 v0.3.0 Jul 11, 2022 v0.2.0 Jun 11, 2021 Changes in this version + type Limiter struct + func New(limit int, options ...LimiterOption) *Limiter + func (l *Limiter) Active() int + func (l *Limiter) Enter(ctx context.Context, priority int, uuid string) error + func (l *Limiter) Leave() error + type LimiterOption func(*Limiter) + func WithMetrics(activeGauge, waitingGauge prometheus.Gauge) LimiterOption