Driver for the Redis noSQL key value store.
More...
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/modpriv.h>
#include <freeradius-devel/rad_assert.h>
#include "redis.h"
#include "cluster.h"
Go to the source code of this file.
|
static int | mod_bootstrap (CONF_SECTION *conf, void *instance) |
|
static int | mod_instantiate (CONF_SECTION *conf, void *instance) |
|
static int | redis_command_read_only (fr_redis_rcode_t *status_out, redisReply **reply_out, REQUEST *request, fr_redis_conn_t *conn, int argc, char const **argv) |
| Change the state of a connection to READONLY execute a command and switch to READWRITE. More...
|
|
static ssize_t | redis_xlat (char **out, size_t outlen, void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt) |
|
Driver for the Redis noSQL key value store.
- Id:
- 2656884de6c493c24e7d3ba36f79a799a5be23cc
- Author
- Gabriel Blanchard
- Copyright
- 2015 Arran Cudbard-Bell a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg
-
2011 TekSavvy Solutions gabe@.nosp@m.teks.nosp@m.avvy..nosp@m.com
-
2000,2006,2015 The FreeRADIUS server project
Definition in file rlm_redis.c.
rlm_redis module instance
Definition at line 50 of file rlm_redis.c.
Data Fields |
fr_redis_cluster_t * |
cluster |
Redis cluster. |
fr_redis_conf_t |
conf |
Connection parameters for the Redis server. Must be first field in this struct.
|
char const * |
name |
Instance name. |
#define MAX_QUERY_LEN 4096 |
Maximum command length.
Definition at line 39 of file rlm_redis.c.
#define MAX_REDIS_ARGS 16 |
Maximum number of arguments.
Definition at line 40 of file rlm_redis.c.
rlm_redis module instance
static int mod_bootstrap |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
static int mod_instantiate |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
Change the state of a connection to READONLY execute a command and switch to READWRITE.
- Parameters
-
[out] | status_out | Where to write the status from the command. |
[out] | reply_out | Where to write the reply associated with the highest priority status. |
[in] | request | The current request. |
[in] | conn | to issue commands with. |
[in] | argc | Redis command argument count. |
[in] | argv | Redis command arguments. |
- Returns
- 0 success.
- -1 normal failure.
- -2 failure that may leave the connection in a READONLY state.
Definition at line 72 of file rlm_redis.c.
static ssize_t redis_xlat |
( |
char ** |
out, |
|
|
size_t |
outlen, |
|
|
void const * |
mod_inst, |
|
|
UNUSED void const * |
xlat_inst, |
|
|
REQUEST * |
request, |
|
|
char const * |
fmt |
|
) |
| |
|
static |
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define REDIS_COMMON_CONFIG
Definition at line 42 of file rlm_redis.c.
Initial value:= {
.name = "redis",
}
#define RLM_TYPE_THREAD_SAFE
Module is threadsafe.
struct rlm_redis_t rlm_redis_t
rlm_redis module instance
static CONF_PARSER module_config[]
static int mod_instantiate(CONF_SECTION *conf, void *instance)
static int mod_bootstrap(CONF_SECTION *conf, void *instance)
Definition at line 345 of file rlm_redis.c.