MySQL 8.4.2
Source Code Documentation
routing.cc File Reference
#include "mysqlrouter/routing.h"
#include <array>
#include <chrono>
#include <string>
#include <netdb.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include "common.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/net_ts/impl/resolver.h"
#include "mysql/harness/net_ts/impl/socket.h"
#include "mysql/harness/net_ts/impl/socket_error.h"

Namespaces

namespace  routing
 

Functions

AccessMode routing::get_access_mode (const std::string &value)
 Returns AccessMode for its literal representation. More...
 
std::string routing::get_access_mode_names ()
 Get comma separated list of all access mode names. More...
 
std::string routing::get_access_mode_name (AccessMode access_mode) noexcept
 Returns literal name of given access mode. More...
 
RoutingStrategy routing::get_routing_strategy (const std::string &value)
 Returns RoutingStrategy for its literal representation. More...
 
std::string routing::get_routing_strategy_names (bool metadata_cache)
 Get comma separated list of all routing stategy names for a given routing type (metadata cache or static) More...
 
std::string routing::get_routing_strategy_name (RoutingStrategy routing_strategy) noexcept
 Returns literal name of given routing strategy. More...
 
RoutingBootstrapSectionType routing::get_section_type_from_routing_name (const std::string &name)
 
BaseProtocol::Type routing::get_default_protocol (RoutingBootstrapSectionType section_type)
 
uint16_t routing::get_default_port (RoutingBootstrapSectionType section_type)
 
RoutingStrategy routing::get_default_routing_strategy (RoutingBootstrapSectionType section_type)
 
std::string routing::get_destinations_role (RoutingBootstrapSectionType section_type)
 
std::string routing::get_default_routing_name (RoutingBootstrapSectionType section_type)
 
AccessMode routing::get_default_access_mode (RoutingBootstrapSectionType section_type)
 
bool routing::get_default_connection_sharing (RoutingBootstrapSectionType section_type)
 
bool routing::get_default_router_require_enforce (RoutingBootstrapSectionType section_type)
 

Variables

static const std::array< const char *, 2 > routing::kAccessModeNames
 
static const std::array< const char *, 5 > routing::kRoutingStrategyNames