MySQL 8.0.40
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_EXPORT routing::get_access_mode (const std::string &value)
 Returns AccessMode for its literal representation. More...
 
std::string ROUTING_EXPORT routing::get_access_mode_names ()
 Get comma separated list of all access mode names. More...
 
std::string ROUTING_EXPORT routing::get_access_mode_name (AccessMode access_mode) noexcept
 Returns literal name of given access mode. More...
 
RoutingStrategy ROUTING_EXPORT routing::get_routing_strategy (const std::string &value)
 Returns RoutingStrategy for its literal representation. More...
 
std::string ROUTING_EXPORT 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_EXPORT routing::get_routing_strategy_name (RoutingStrategy routing_strategy) noexcept
 Returns literal name of given routing strategy. More...
 

Variables

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