package
0.133.0
Repository: https://github.com/edmondfrank/gitally.git
Documentation: pkg.go.dev

# Packages

Package test is a generated protocol buffer package.

# Functions

EnableAcquireTimeHistogram enables histograms for acquisition times.
New creates a new rate limiter.
NewLimiter creates a new rate limiter.
NewPromMonitor creates a new ConcurrencyMonitor that tracks limiter activity in Prometheus.
SetMaxRepoConcurrency Configures the max concurrency per repo per RPC.

# Structs

ConcurrencyLimiter contains rate limiter state.
LimiterMiddleware contains rate limiter state.

# Interfaces

ConcurrencyMonitor allows the concurrency monitor to be observed.

# Type aliases

GetLockKey function defines the lock key of an RPC invocation based on its context.
LimitedFunc represents a function that will be limited.