package
0.5.3
Repository: https://github.com/srfrog/go-relax.git
Documentation: pkg.go.dev

# Functions

MD5RequestKey returns a key made from MD5 hash of Request.RemoteAddr and Request.UserAgent.
Min returns the smaller integer between a and b.
NewMemBucket returns a new MemBucket container object.
NewRedisBucket returns a new Redis bucket.
SplitPort splits an host:port address and returns the parts.

# Constants

Version is the semantic version of this package More info: https://semver.org.

# Structs

MemBucket implements Container using an in-memory LRU cache.
Memory sets limits on application and system memory usage.
RedisBucket implements Container using Redis strings.
Throttle allows to limit the rate of requests to a resource per specific time duration.
Usage monitors request usage limits to the service, resource or to specific route(s).

# Interfaces

Container objects that implement this interface can serve as token bucket containers.