Couchbase C Client
2.4.4
|
Functions | |
lcb_error_t | lcb_server_versions (lcb_t instance, const void *command_cookie, lcb_SIZE num, const lcb_server_version_cmd_t *const *commands) |
Request server versions. More... | |
lcb_version_callback | lcb_set_version_callback (lcb_t, lcb_version_callback) |
lcb_error_t | lcb_set_verbosity (lcb_t instance, const void *command_cookie, lcb_SIZE num, const lcb_verbosity_cmd_t *const *commands) |
Set the loglevel on the servers. More... | |
lcb_verbosity_callback | lcb_set_verbosity_callback (lcb_t, lcb_verbosity_callback) |
lcb_error_t | lcb_flush (lcb_t instance, const void *cookie, lcb_SIZE num, const lcb_flush_cmd_t *const *commands) |
Flush the entire couchbase cluster! More... | |
lcb_flush_callback | lcb_set_flush_callback (lcb_t, lcb_flush_callback) |
Typedefs | |
typedef void(* | lcb_version_callback )(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_server_version_resp_t *resp) |
The callback function for a version request. More... | |
typedef void(* | lcb_verbosity_callback )(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_verbosity_resp_t *resp) |
The callback function for a verbosity command. More... | |
typedef void(* | lcb_flush_callback )(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_flush_resp_t *resp) |
The callback function for a flush request. More... | |
Enumerations | |
enum | lcb_verbosity_level_t |
level field for lcb_set_verbosity() More... | |
lcb_error_t lcb_server_versions | ( | lcb_t | instance, |
const void * | command_cookie, | ||
lcb_SIZE | num, | ||
const lcb_server_version_cmd_t *const * | commands | ||
) |
Request server versions.
The callback will be invoked with the instance, server address, version string, and version string length.
When all server versions have been received, the callback is invoked with the server endpoint argument set to NULL
instance | the instance used to batch the requests from |
command_cookie | a cookie passed to all of the notifications from this command |
num | the total number of elements in the commands array |
commands | the array containing the version commands |
lcb_error_t lcb_set_verbosity | ( | lcb_t | instance, |
const void * | command_cookie, | ||
lcb_SIZE | num, | ||
const lcb_verbosity_cmd_t *const * | commands | ||
) |
Set the loglevel on the servers.
instance | the instance used to batch the requests from |
command_cookie | A cookie passed to all of the notifications from this command |
num | the total number of elements in the commands array |
commands | the array containing the verbosity commands |
lcb_error_t lcb_flush | ( | lcb_t | instance, |
const void * | cookie, | ||
lcb_SIZE | num, | ||
const lcb_flush_cmd_t *const * | commands | ||
) |
Flush the entire couchbase cluster!
instance | the instance used to batch the requests from |
cookie | A cookie passed to all of the notifications from this command |
num | the total number of elements in the commands array |
commands | the array containing the flush commands |
struct lcb_server_version_resp_t |
Response structure for lcb_server_versions()
Data Fields | ||
---|---|---|
int | version | |
union lcb_server_version_resp_t | v |
typedef void(* lcb_version_callback)(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_server_version_resp_t *resp) |
The callback function for a version request.
instance | the instance performing the operation |
cookie | the cookie associated with with the command |
error | The status of the operation |
resp | response data |
typedef void(* lcb_verbosity_callback)(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_verbosity_resp_t *resp) |
The callback function for a verbosity command.
instance | the instance performing the operation |
cookie | the cookie associated with with the command |
error | The status of the operation |
resp | response data |
typedef void(* lcb_flush_callback)(lcb_t instance, const void *cookie, lcb_error_t error, const lcb_flush_resp_t *resp) |
The callback function for a flush request.
instance | the instance performing the operation |
cookie | the cookie associated with with the command |
error | The status of the operation |
resp | Response data |
level
field for lcb_set_verbosity()