27 RCSIDH(couchbase_h,
"$Id: 0aabb447e0c40c9162d2d764841ae76019a53da7 $")
29 #ifdef HAVE_WDOCUMENTATION
32 #include <libcouchbase/couchbase.h>
33 #ifdef HAVE_WDOCUMENTATION
37 #include <freeradius-devel/json/base.h>
47 enum json_tokener_error jerr;
79 const lcb_server_stat_resp_t *resp);
83 lcb_error_t error,
const lcb_store_resp_t *
item);
87 const lcb_get_resp_t *
item);
91 const void *cookie, lcb_error_t error,
const lcb_http_resp_t *resp);
101 lcb_error_t
couchbase_set_key(lcb_t instance,
const char *key,
const char *document,
int expire);
104 lcb_error_t
couchbase_get_key(lcb_t instance,
const void *cookie,
const char *key);
107 lcb_error_t
couchbase_query_view(lcb_t instance,
const void *cookie,
const char *path,
const char *post);
lcb_error_t couchbase_query_view(lcb_t instance, const void *cookie, const char *path, const char *post)
Query a Couchbase design document view.
lcb_error_t couchbase_server_stats(lcb_t instance, const void *cookie)
Request Couchbase server statistics.
lcb_error_t couchbase_init_connection(lcb_t *instance, const char *host, const char *bucket, const char *user, const char *pass, lcb_uint32_t timeout, const couchbase_opts_t *opts)
Initialize a Couchbase connection instance.
json_object * jobj
JSON objects handled by the json-c library.
union cookie_u cookie_u
Union of constant and non-constant pointers.
lcb_error_t couchbase_set_key(lcb_t instance, const char *key, const char *document, int expire)
Store a document by key in Couchbase.
HIDDEN fr_dict_attr_t const * attr_event_timestamp
void couchbase_http_data_callback(lcb_http_request_t request, lcb_t instance, const void *cookie, lcb_error_t error, const lcb_http_resp_t *resp)
Couchbase callback for http (view) operations.
const void * cdata
Constant pointer to cookie payload (cookie_t).
HIDDEN fr_dict_attr_t const * attr_acct_session_time
void * data
Non-constant pointer to data payload (cookie_t).
void couchbase_store_callback(lcb_t instance, const void *cookie, lcb_storage_t operation, lcb_error_t error, const lcb_store_resp_t *item)
Couchbase callback for store (write) operations.
void couchbase_stat_callback(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_server_stat_resp_t *resp)
Couchbase callback for cluster statistics requests.
char * val
Value for the key used in lcb_cntl_string().
HIDDEN fr_dict_attr_t const * attr_acct_status_type
void couchbase_get_callback(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_get_resp_t *item)
Couchbase callback for get (read) operations.
char * key
Key value for lcb_cntl_string().
lcb_error_t couchbase_get_key(lcb_t instance, const void *cookie, const char *key)
Retrieve a document by key from Couchbase.
couchbase_opts_t * next
Linked list.
Information relating to the parsing of Couchbase document payloads.
Union of constant and non-constant pointers.
static fr_time_delta_t timeout