# Functions
NewBlockingLimiter will create a new blocking limiter.
NewDeadlineLimiter will create a new DeadlineLimiter that will wrap a limiter such that acquire will block until a provided deadline if the limit was reached instead of returning an empty listener immediately.
NewDefaultLimiter creates a new DefaultLimiter.
NewDefaultLimiterWithDefaults will create a DefaultLimit Limiter with the provided minimum config.
NewDelegateListener creates a new wrapped listener.
NewFifoBlockingLimiter will create a new FifoBlockingLimiter Deprecated, use NewQueueBlockingLimiterFromConfig instead.
NewFifoBlockingLimiterWithDefaults will create a new FifoBlockingLimiter with default values.
NewLifoBlockingLimiter will create a new LifoBlockingLimiter Deprecated, use NewQueueBlockingLimiterFromConfig instead.
NewLifoBlockingLimiterWithDefaults will create a new LifoBlockingLimiter with default values.
NewQueueBlockingLimiterFromConfig will create a new QueueBlockingLimiter.
NewQueueBlockingLimiterWithDefaults will create a new QueueBlockingLimiter with default values.
# Constants
OrderingFIFO is an enum constant used to represent a first-in first-out ordering for queue elements.
OrderingLIFO is an enum constant used to represent a last-in first-out ordering for queue elements.
# Structs
BlockingLimiter implements a Limiter that blocks the caller when the limit has been reached.
DeadlineLimiter that blocks the caller when the limit has been reached.
DefaultLimiter is a Limiter that combines a plugable limit algorithm and enforcement strategy to enforce concurrency limits to a fixed resource.
DefaultListener for.
DelegateListener wraps the wrapped Limiter's Listener to simply delegate as a wrapper.
FifoBlockingLimiter implements a Limiter that blocks the caller when the limit has been reached.
LifoBlockingLimiter implements a Limiter that blocks the caller when the limit has been reached.
QueueBlockingLimiter implements a Limiter that blocks the caller when the limit has been reached.
QueueBlockingListener implements a blocking listener for the QueueBlockingLimiter.
QueueLimiterConfig is a struct used to encapsulate the constructor arguments needed for creating a QueueBlockingLimiter instance.
# Type aliases
EvictFunc is a type denoting a function used to evict an element from a QueueBlockingLimiter backlog.
QueueOrdering is an enum used for configuring the order in which elements in a QueueBlockingLimiter backlog are consumed.