MySQL 9.0.0
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 DLLEXPORT
 

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 const char kSectionName [] {"rest_router"}
 
std::string require_realm_router
 
static const std::array router_status_def_tokens
 
static const std::array router_status_path_tokens
 
static const std::array tags_append_tokens
 
static constexpr std::array 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 rest_plugin_supported_options
Definition: supported_rest_options.h:31

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

◆ 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:328
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_router_plugin.cc:84
static constexpr std::array rest_router_plugin_requires
Definition: rest_router_plugin.cc:299
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_router_plugin.cc:272

◆ kSectionName

const char kSectionName[] {"rest_router"}
static

◆ require_realm_router

std::string require_realm_router

◆ rest_router_plugin_requires

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

◆ router_status_def_tokens

const std::array router_status_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("RouterStatus"),
}
static JsonPointer::Token make_json_pointer_token(std::string_view token)
Definition: rest_router_plugin.cc:150

◆ router_status_path_tokens

const std::array router_status_path_tokens
static
Initial value:
{
make_json_pointer_token("/router/status"),
}

◆ tags_append_tokens

const std::array tags_append_tokens
static
Initial value: