MySQL 9.1.0
Source Code Documentation
rest_connection_pool_plugin.cc File Reference

Classes

class  RestConnectionPoolPluginConfig
 
class  anonymous_namespace{rest_connection_pool_plugin.cc}::RestConnectionPoolConfigExposer
 

Namespaces

namespace  anonymous_namespace{rest_connection_pool_plugin.cc}
 

Macros

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

Typedefs

using StringOption = mysql_harness::StringOption
 
using JsonPointer = RestApiComponent::JsonPointer
 
using JsonValue = RestApiComponent::JsonValue
 

Functions

static void init (mysql_harness::PluginFuncEnv *env)
 
static JsonPointer::Token make_json_pointer_token (std::string_view token)
 
std::string json_pointer_stringfy (const JsonPointer &ptr)
 
static void spec_adder (RestApiComponent::JsonDocument &spec_doc)
 
static void start (mysql_harness::PluginFuncEnv *env)
 
static void expose_configuration (mysql_harness::PluginFuncEnv *env, const char *, bool initial)
 

Variables

static constexpr const char kSectionName [] {"rest_connection_pool"}
 
static constexpr const char kRequireRealm [] {"require_realm"}
 
static constexpr const std::array supported_options
 
std::string require_realm_connection_pool
 
static const std::array route_name_param_tokens
 
static const std::array connection_pool_list_def_tokens
 
static const std::array connection_pool_summary_def_tokens
 
static const std::array connection_pool_config_def_tokens
 
static const std::array connection_pool_status_def_tokens
 
static const std::array connection_pool_status_path_tokens
 
static const std::array connection_pool_config_path_tokens
 
static const std::array connection_pool_list_path_tokens
 
static const std::array tags_append_tokens
 
static constexpr std::array required
 
mysql_harness::Plugin REST_CONNECTION_POOL_EXPORT harness_plugin_rest_connection_pool
 

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:94
static constexpr const std::array supported_options
Definition: rest_connection_pool_plugin.cc:61
case opt name
Definition: sslopt-case.h:29

Typedef Documentation

◆ JsonPointer

◆ JsonValue

◆ StringOption

Function Documentation

◆ expose_configuration()

static void expose_configuration ( mysql_harness::PluginFuncEnv env,
const char *  ,
bool  initial 
)
static

◆ init()

static void init ( mysql_harness::PluginFuncEnv env)
static

◆ json_pointer_stringfy()

std::string json_pointer_stringfy ( const JsonPointer ptr)

◆ make_json_pointer_token()

static JsonPointer::Token make_json_pointer_token ( std::string_view  token)
static

◆ spec_adder()

static void spec_adder ( RestApiComponent::JsonDocument spec_doc)
static

◆ start()

static void start ( mysql_harness::PluginFuncEnv env)
static

Variable Documentation

◆ connection_pool_config_def_tokens

const std::array connection_pool_config_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("ConnectionPoolConfig"),
}
static JsonPointer::Token make_json_pointer_token(std::string_view token)
Definition: rest_connection_pool_plugin.cc:157

◆ connection_pool_config_path_tokens

const std::array connection_pool_config_path_tokens
static
Initial value:
{
make_json_pointer_token("/connection_pool/{connectionPoolName}/config"),
}

◆ connection_pool_list_def_tokens

const std::array connection_pool_list_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("ConnectionPoolList"),
}

◆ connection_pool_list_path_tokens

const std::array connection_pool_list_path_tokens
static
Initial value:
{
make_json_pointer_token("/connection_pool"),
}

◆ connection_pool_status_def_tokens

const std::array connection_pool_status_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("ConnectionPoolStatus"),
}

◆ connection_pool_status_path_tokens

const std::array connection_pool_status_path_tokens
static
Initial value:
{
make_json_pointer_token("/connection_pool/{connectionPoolName}/status"),
}

◆ connection_pool_summary_def_tokens

const std::array connection_pool_summary_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("ConnectionPoolSummary"),
}

◆ harness_plugin_rest_connection_pool

mysql_harness::Plugin REST_CONNECTION_POOL_EXPORT harness_plugin_rest_connection_pool
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"REST_CONNECTION_POOL",
VERSION_NUMBER(0, 0, 1),
required.size(),
required.data(),
0,
nullptr,
init,
nullptr,
nullptr,
true,
}
static constexpr std::array required
Definition: rest_connection_pool_plugin.cc:602
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: rest_connection_pool_plugin.cc:632
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_connection_pool_plugin.cc:92
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_connection_pool_plugin.cc:576

◆ kRequireRealm

constexpr const char kRequireRealm[] {"require_realm"}
staticconstexpr

◆ kSectionName

constexpr const char kSectionName[] {"rest_connection_pool"}
staticconstexpr

◆ require_realm_connection_pool

std::string require_realm_connection_pool

◆ required

constexpr std::array required
staticconstexpr
Initial value:
{
"logger",
"rest_api",
}

◆ route_name_param_tokens

const std::array route_name_param_tokens
static
Initial value:
{
make_json_pointer_token("parameters"),
make_json_pointer_token("connectionPoolNameParam"),
}

◆ supported_options

constexpr const std::array supported_options
staticconstexpr
Initial value:
{
}
static constexpr const char kRequireRealm[]
Definition: rest_connection_pool_plugin.cc:59

◆ tags_append_tokens

const std::array tags_append_tokens
static
Initial value: