MySQL 8.4.0
Source Code Documentation
plugin_config.cc File Reference
#include "plugin_config.h"
#include <algorithm>
#include <array>
#include <climits>
#include <exception>
#include <map>
#include <stdexcept>
#include <variant>
#include <vector>
#include "dim.h"
#include "mysql/harness/dynamic_config.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/section_config_exposer.h"
#include "mysql/harness/utility/string.h"
#include "mysqlrouter/metadata_cache.h"
#include "mysqlrouter/supported_metadata_cache_options.h"
#include "mysqlrouter/uri.h"
#include "mysqlrouter/utils.h"

Classes

class  ClusterTypeOption
 
class  anonymous_namespace{plugin_config.cc}::MetadataCacheConfigExposer
 
class  anonymous_namespace{plugin_config.cc}::RoutingRulesConfigExposer
 

Namespaces

namespace  anonymous_namespace{plugin_config.cc}
 

Macros

#define GET_OPTION_CHECKED(option, section, name, value)
 
#define GET_SSL_OPTION_CHECKED(option, section, name, def_value)
 

Typedefs

using MilliSecondsOption = mysql_harness::MilliSecondsOption
 
using StringOption = mysql_harness::StringOption
 
template<typename T >
using IntOption = mysql_harness::IntOption< T >
 

Functions

static std::string get_ssl_option (const mysql_harness::ConfigSection *section, const std::string &key, const std::string_view def_value)
 
static mysqlrouter::SSLOptions make_ssl_options (const mysql_harness::ConfigSection *section)
 
static double duration_to_double (const auto &duration)
 

Variables

constexpr std::string_view anonymous_namespace{plugin_config.cc}::kDefaultSslMode {"PREFERRED"}
 
constexpr std::string_view anonymous_namespace{plugin_config.cc}::kDefaultSslCipher {""}
 
constexpr std::string_view anonymous_namespace{plugin_config.cc}::kDefaultTlsVersion {""}
 
constexpr std::string_view anonymous_namespace{plugin_config.cc}::kDefaultSslCa {""}
 
constexpr std::string_view anonymous_namespace{plugin_config.cc}::kDefaultSslCaPath {""}
 
constexpr std::string_view anonymous_namespace{plugin_config.cc}::kDefaultSslCrl {""}
 
constexpr std::string_view anonymous_namespace{plugin_config.cc}::kDefaultSslCrlPath {""}
 

Macro Definition Documentation

◆ GET_OPTION_CHECKED

#define GET_OPTION_CHECKED (   option,
  section,
  name,
  value 
)
Value:
option = get_option(section, name, value);
constexpr bool str_in_collection(const T &t, const std::string_view &k)
Definition: string.h:157
case opt name
Definition: sslopt-case.h:29
static constexpr std::array< const char *, 18 > metadata_cache_supported_options
Definition: supported_metadata_cache_options.h:31

◆ GET_SSL_OPTION_CHECKED

#define GET_SSL_OPTION_CHECKED (   option,
  section,
  name,
  def_value 
)
Value:
option = get_ssl_option(section, name, def_value);
static std::string get_ssl_option(const mysql_harness::ConfigSection *section, const std::string &key, const std::string_view def_value)
Definition: plugin_config.cc:202

Typedef Documentation

◆ IntOption

template<typename T >
using IntOption = mysql_harness::IntOption<T>

◆ MilliSecondsOption

◆ StringOption

Function Documentation

◆ duration_to_double()

static double duration_to_double ( const auto &  duration)
static

◆ get_ssl_option()

static std::string get_ssl_option ( const mysql_harness::ConfigSection section,
const std::string &  key,
const std::string_view  def_value 
)
static

◆ make_ssl_options()

static mysqlrouter::SSLOptions make_ssl_options ( const mysql_harness::ConfigSection section)
static