Apache2
ap_serf_cluster_provider_t Struct Reference

#include <mod_serf.h>

Data Fields

const char * name
 
void * baton
 
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

◆ baton

void* ap_serf_cluster_provider_t::baton

Baton passed to all methods in this provider.

This field may be NULL.

◆ check_config

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.

◆ list_servers

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 success, all other return codes will result in a 500.

This field must be set.

◆ name

const char* ap_serf_cluster_provider_t::name

Human readable name of this provider, used in configuration.

◆ server_failure

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.

◆ server_success

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: