Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ap_serf_cluster_provider_t Struct Reference

#include <mod_serf.h>

Data Fields

const char * name
 
voidbaton
 
const char *(* check_config )(void *baton, cmd_parms *cmd, apr_table_t *params)
 
int(* list_servers )(void *baton, request_rec *r, apr_table_t *params, apr_array_header_t **servers)
 
void(* server_success )(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)
 
void(* server_failure )(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)
 

Field Documentation

void* ap_serf_cluster_provider_t::baton

Baton passed to all methods in this provider.

This field may be NULL.

const char*(* ap_serf_cluster_provider_t::check_config)(void *baton, cmd_parms *cmd, apr_table_t *params)

Check that the key/value pairs used to configure the cluster are valid.

Return non-NULL on failure with an error message, like standard httpd configuration directives.

This field must be set.

int(* ap_serf_cluster_provider_t::list_servers)(void *baton, request_rec *r, apr_table_t *params, apr_array_header_t **servers)

Provide an ordered array of ap_serf_server_t in the order that mod_serf should attempt to use them. If a server on the list is known to be not responding, it may be skipped. If mod_serf is unable to contact any of the servers, a 502 will be returned to the client.

Returns OK on sucess, all other return codes will result in a 500.

This field must be set.

const char* ap_serf_cluster_provider_t::name

Human readable name of this provider, used in configuration.

void(* ap_serf_cluster_provider_t::server_failure)(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)

If a request failed to be fulfilled by this address, feedback will be given to the provider, so it may make better recommendations.

This field may be NULL.

void(* ap_serf_cluster_provider_t::server_success)(void *baton, request_rec *r, apr_table_t *params, ap_serf_server_t *server)

If a request was successfully fulfilled by this address, feedback will be given to the provider, so it may make better recommendations.

This field may be NULL.


The documentation for this struct was generated from the following file: