MySQL 8.4.2
Source Code Documentation
rest_router_plugin.cc File Reference

Classes

class  RestRouterPluginConfig
 
class  anonymous_namespace{rest_router_plugin.cc}::RestRouterConfigExposer
 

Namespaces

namespace  anonymous_namespace{rest_router_plugin.cc}
 

Macros

#define GET_OPTION_CHECKED(option, section, name, value)
 
#define STR(s)    { s, strlen(s), rapidjson::kPointerInvalidIndex }
 
#define DLLEXPORT
 

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 const char kSectionName [] {"rest_router"}
 
std::string require_realm_router
 
static const std::array< JsonPointer::Token, 2 > router_status_def_tokens
 
static const std::array< JsonPointer::Token, 2 > router_status_path_tokens
 
static const std::array< JsonPointer::Token, 2 > tags_append_tokens
 
static const std::array< const char *, 2 > rest_router_plugin_requires
 
mysql_harness::Plugin DLLEXPORT harness_plugin_rest_router
 

Macro Definition Documentation

◆ DLLEXPORT

#define DLLEXPORT

◆ GET_OPTION_CHECKED

#define GET_OPTION_CHECKED (   option,
  section,
  name,
  value 
)
Value:
static_assert( \
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 *, 1 > rest_plugin_supported_options
Definition: supported_rest_options.h:31

◆ 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

◆ harness_plugin_rest_router

mysql_harness::Plugin DLLEXPORT harness_plugin_rest_router
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"REST_ROUTER",
VERSION_NUMBER(0, 0, 1),
0,
nullptr,
init,
nullptr,
nullptr,
true,
}
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: rest_router_plugin.cc:322
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_router_plugin.cc:84
static const std::array< const char *, 2 > rest_router_plugin_requires
Definition: rest_router_plugin.cc:293
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_router_plugin.cc:267

◆ kSectionName

const char kSectionName[] {"rest_router"}
static

◆ require_realm_router

std::string require_realm_router

◆ rest_router_plugin_requires

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

◆ router_status_def_tokens

const std::array<JsonPointer::Token, 2> router_status_def_tokens
static
Initial value:
{
{STR("definitions"), STR("RouterStatus")}}
#define STR(s)
Definition: rest_router_plugin.cc:150

◆ router_status_path_tokens

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

◆ tags_append_tokens

const std::array<JsonPointer::Token, 2> tags_append_tokens
static
Initial value:
{
{STR("tags"), STR("-")}}