MySQL  8.0.17
Source Code Documentation
routing_plugin.cc File Reference
#include "mysql_routing.h"
#include "plugin_config.h"
#include "utils.h"
#include "dim.h"
#include "mysql/harness/loader_config.h"
#include "mysql/harness/config_parser.h"
#include "mysql/harness/logging/logging.h"
#include "mysqlrouter/routing_component.h"
#include "mysqlrouter/routing_export.h"
#include <atomic>
#include <iostream>
#include <mutex>
#include <stdexcept>
#include <vector>

Functions

static void validate_socket_info (const std::string &err_prefix, const mysql_harness::ConfigSection *section, const RoutingPluginConfig &config)
 
void validate_socket_info_test_proxy (const std::string &err_prefix, const mysql_harness::ConfigSection *section, const RoutingPluginConfig &config)
 
static void init (mysql_harness::PluginFuncEnv *env)
 
static void start (mysql_harness::PluginFuncEnv *env)
 

Variables

const mysql_harness::AppInfo * g_app_info
 
static const string kSectionName = "routing"
 
mysql_harness::Plugin ROUTING_EXPORT harness_plugin_routing
 

Function Documentation

◆ init()

static void init ( mysql_harness::PluginFuncEnv env)
static

◆ start()

static void start ( mysql_harness::PluginFuncEnv env)
static

◆ validate_socket_info()

static void validate_socket_info ( const std::string &  err_prefix,
const mysql_harness::ConfigSection section,
const RoutingPluginConfig config 
)
static

◆ validate_socket_info_test_proxy()

void validate_socket_info_test_proxy ( const std::string &  err_prefix,
const mysql_harness::ConfigSection section,
const RoutingPluginConfig config 
)

Variable Documentation

◆ g_app_info

const mysql_harness::AppInfo* g_app_info

◆ harness_plugin_routing

mysql_harness::Plugin ROUTING_EXPORT harness_plugin_routing
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"Routing MySQL connections between MySQL clients/connectors and servers",
VERSION_NUMBER(0, 0, 1),
0,
nullptr,
0,
nullptr,
init,
nullptr,
nullptr
}
static void init(mysql_harness::PluginFuncEnv *env)
Definition: routing_plugin.cc:129
static void start(mysql_harness::PluginFuncEnv *env)
Definition: routing_plugin.cc:213

◆ kSectionName

const string kSectionName = "routing"
static