#include "http-loadbalancer.h"#include "messages.h"#include "str-utils.h"#include <string.h>#include "compat/curl.h"
Enumerations | |
| enum | HttpUrlFormatError { HTTP_URL_FORMAT_ERROR_UNSAFE_TEMPLATE } |
Functions | |
| gboolean | http_lb_target_init (HTTPLoadBalancerTarget *self, const gchar *url, gint index_, GError **error) |
| void | http_lb_target_deinit (HTTPLoadBalancerTarget *self) |
| gboolean | http_lb_target_is_url_templated (HTTPLoadBalancerTarget *self) |
| const gchar * | http_lb_target_get_literal_url (HTTPLoadBalancerTarget *self) |
| void | http_lb_target_format_templated_url (HTTPLoadBalancerTarget *self, LogMessage *msg, const LogTemplateOptions *template_options, GString *result) |
| void | http_lb_client_init (HTTPLoadBalancerClient *self, HTTPLoadBalancer *lb) |
| void | http_lb_client_deinit (HTTPLoadBalancerClient *self) |
| HTTPLoadBalancerTarget * | http_load_balancer_choose_target (HTTPLoadBalancer *self, HTTPLoadBalancerClient *lbc) |
| gboolean | http_load_balancer_add_target (HTTPLoadBalancer *self, const gchar *url, GError **error) |
| void | http_load_balancer_drop_all_targets (HTTPLoadBalancer *self) |
| void | http_load_balancer_track_client (HTTPLoadBalancer *self, HTTPLoadBalancerClient *lbc) |
| void | http_load_balancer_set_target_failed (HTTPLoadBalancer *self, HTTPLoadBalancerTarget *target) |
| void | http_load_balancer_set_target_successful (HTTPLoadBalancer *self, HTTPLoadBalancerTarget *target) |
| gboolean | http_load_balancer_is_url_templated (HTTPLoadBalancer *self) |
| void | http_load_balancer_set_recovery_timeout (HTTPLoadBalancer *self, gint recovery_timeout) |
| HTTPLoadBalancer * | http_load_balancer_new (void) |
| void | http_load_balancer_free (HTTPLoadBalancer *self) |
| enum HttpUrlFormatError |
| void http_lb_client_deinit | ( | HTTPLoadBalancerClient * | self | ) |
| void http_lb_client_init | ( | HTTPLoadBalancerClient * | self, |
| HTTPLoadBalancer * | lb | ||
| ) |
| void http_lb_target_deinit | ( | HTTPLoadBalancerTarget * | self | ) |
| void http_lb_target_format_templated_url | ( | HTTPLoadBalancerTarget * | self, |
| LogMessage * | msg, | ||
| const LogTemplateOptions * | template_options, | ||
| GString * | result | ||
| ) |
| const gchar* http_lb_target_get_literal_url | ( | HTTPLoadBalancerTarget * | self | ) |
| gboolean http_lb_target_init | ( | HTTPLoadBalancerTarget * | self, |
| const gchar * | url, | ||
| gint | index_, | ||
| GError ** | error | ||
| ) |
| gboolean http_lb_target_is_url_templated | ( | HTTPLoadBalancerTarget * | self | ) |
| gboolean http_load_balancer_add_target | ( | HTTPLoadBalancer * | self, |
| const gchar * | url, | ||
| GError ** | error | ||
| ) |
| HTTPLoadBalancerTarget* http_load_balancer_choose_target | ( | HTTPLoadBalancer * | self, |
| HTTPLoadBalancerClient * | lbc | ||
| ) |
| void http_load_balancer_drop_all_targets | ( | HTTPLoadBalancer * | self | ) |
| void http_load_balancer_free | ( | HTTPLoadBalancer * | self | ) |
| gboolean http_load_balancer_is_url_templated | ( | HTTPLoadBalancer * | self | ) |
| HTTPLoadBalancer* http_load_balancer_new | ( | void | ) |
| void http_load_balancer_set_recovery_timeout | ( | HTTPLoadBalancer * | self, |
| gint | recovery_timeout | ||
| ) |
| void http_load_balancer_set_target_failed | ( | HTTPLoadBalancer * | self, |
| HTTPLoadBalancerTarget * | target | ||
| ) |
| void http_load_balancer_set_target_successful | ( | HTTPLoadBalancer * | self, |
| HTTPLoadBalancerTarget * | target | ||
| ) |
| void http_load_balancer_track_client | ( | HTTPLoadBalancer * | self, |
| HTTPLoadBalancerClient * | lbc | ||
| ) |