package
0.0.6
Repository: https://github.com/coderi421/gframework.git
Documentation: pkg.go.dev

# Functions

Connected returns true if we are connected to redis.
ConnectToRedis starts a go routine that periodically tries to connect to redis.
DisableRedis very handy when testsing it allows to dynamically enable/disable talking with redisW.
GenerateToken generate token, if hashing algorithm is empty, use legacy key generation.
HashKey return hash the give string and return.
HashStr return hash the give string and return.
NewRedisClusterPool create a redis cluster pool.
TokenHashAlgo ...
TokenOrg ...

# Constants

B64JSONPrefix stand for `{"` in base64.

# Variables

ErrKeyNotFound is a standard error for when a key is not found in the storage engine.
ErrRedisIsDown is returned when we can't communicate with redis.
Defines algorithm constant.
Defines algorithm constant.
Defines algorithm constant.
Defines algorithm constant.

# Structs

Config defines options for redis cluster.
RedisCluster is a storage manager that uses the redis database.

# Interfaces

AnalyticsHandler defines the interface for analytics.
Handler is a standard interface to a storage backend, used by AuthorisationManager to read and write key values to the backend.

# Type aliases

RedisOpts is the overridden type of redis.UniversalOptions.