# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReadClusterConfigOrFatal assumes conventional service env vars and populates a ClusterConfig or Fatals out.
No description provided by the author
NewJsonResource constructs a new instance of JsonResource, given the configuration.
No description provided by the author
No description provided by the author
NewRedisStore returns a new RedisStore with default configuration.
NewResource - creates pool of connections to redis that manages a decrementing counter.
No description provided by the author
If limit is less than zero then the limit is disabled and all methods are noops.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
nolint:gosec.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
CountResource - the counter is initialised with a maximum value and as resources are created the counter is decremented.
Gob serialiser.
GorillaStore stores gorilla sessions in Redis
nolint:golint.
HashCache uses redis optimistic locking and hash store to cache strings safely and prevents race conditions between Get/Set and Delete https://redis.io/topics/transactions#optimistic-locking-using-check-and-set.
JsonResource is a Redis resource holding an object in JSON.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
defines a redis client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SessionSerialiser provides an interface for serialise/deserialise a session.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
KeyGenFunc defines a function used by store to generate a key.
No description provided by the author
No description provided by the author
ResourceCounter is a function which accepts a context and counts the number of reources in the database.
ResourceLimiter is a function which accepts a resource and retrieves the latest caps limit setting from upstream.
No description provided by the author