MySQL 8.4.2
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)
 
#define STR(s)    { s, strlen(s), rapidjson::kPointerInvalidIndex }
 

Typedefs

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

Functions

static void init (mysql_harness::PluginFuncEnv *env)
 
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< JsonPointer::Token, 2 > route_name_param_tokens
 
static const std::array< JsonPointer::Token, 2 > connection_pool_list_def_tokens
 
static const std::array< JsonPointer::Token, 2 > connection_pool_summary_def_tokens
 
static const std::array< JsonPointer::Token, 2 > connection_pool_config_def_tokens
 
static const std::array< JsonPointer::Token, 2 > connection_pool_status_def_tokens
 
static const std::array< JsonPointer::Token, 2 > connection_pool_status_path_tokens
 
static const std::array< JsonPointer::Token, 2 > connection_pool_config_path_tokens
 
static const std::array< JsonPointer::Token, 2 > connection_pool_list_path_tokens
 
static const std::array< JsonPointer::Token, 2 > tags_append_tokens
 
static std::array< const char *, 2 > 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:157
static constexpr const std::array supported_options
Definition: rest_connection_pool_plugin.cc:61
case opt name
Definition: sslopt-case.h:29

◆ STR

#define STR (   s)     { s, strlen(s), rapidjson::kPointerInvalidIndex }

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)

◆ 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<JsonPointer::Token, 2> connection_pool_config_def_tokens
static
Initial value:
{
{STR("definitions"), STR("ConnectionPoolConfig")}}
#define STR(s)
Definition: rest_connection_pool_plugin.cc:157

◆ connection_pool_config_path_tokens

const std::array<JsonPointer::Token, 2> connection_pool_config_path_tokens
static
Initial value:
{
{STR("paths"), STR("/connection_pool/{connectionPoolName}/config")}}

◆ connection_pool_list_def_tokens

const std::array<JsonPointer::Token, 2> connection_pool_list_def_tokens
static
Initial value:
{
{STR("definitions"), STR("ConnectionPoolList")}}

◆ connection_pool_list_path_tokens

const std::array<JsonPointer::Token, 2> connection_pool_list_path_tokens
static
Initial value:
{
{STR("paths"), STR("/connection_pool")}}

◆ connection_pool_status_def_tokens

const std::array<JsonPointer::Token, 2> connection_pool_status_def_tokens
static
Initial value:
{
{STR("definitions"), STR("ConnectionPoolStatus")}}

◆ connection_pool_status_path_tokens

const std::array<JsonPointer::Token, 2> connection_pool_status_path_tokens
static
Initial value:
{
{STR("paths"), STR("/connection_pool/{connectionPoolName}/status")}}

◆ connection_pool_summary_def_tokens

const std::array<JsonPointer::Token, 2> connection_pool_summary_def_tokens
static
Initial value:
{
{STR("definitions"), STR("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 void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: rest_connection_pool_plugin.cc:619
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_connection_pool_plugin.cc:92
static std::array< const char *, 2 > required
Definition: rest_connection_pool_plugin.cc:589
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_connection_pool_plugin.cc:564

◆ 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

std::array<const char *, 2> required
static
Initial value:
= {{
"logger",
"rest_api",
}}

◆ route_name_param_tokens

const std::array<JsonPointer::Token, 2> route_name_param_tokens
static
Initial value:
{
{STR("parameters"), STR("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<JsonPointer::Token, 2> tags_append_tokens
static
Initial value:
{
{STR("tags"), STR("-")}}