MySQL 8.4.2
Source Code Documentation
|
#include <array>
#include <string>
#include "mysql/harness/config_parser.h"
#include "mysql/harness/dynamic_config.h"
#include "mysql/harness/loader.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/plugin.h"
#include "mysql/harness/plugin_config.h"
#include "mysql/harness/section_config_exposer.h"
#include "mysql/harness/utility/string.h"
#include "mysqlrouter/component/http_server_component.h"
#include "mysqlrouter/http_constants.h"
#include "mysqlrouter/rest_api_component.h"
#include "mysqlrouter/rest_routing_export.h"
#include "mysqlrouter/supported_rest_options.h"
#include "rest_routing_blocked_hosts.h"
#include "rest_routing_config.h"
#include "rest_routing_connections.h"
#include "rest_routing_destinations.h"
#include "rest_routing_health.h"
#include "rest_routing_list.h"
#include "rest_routing_routes_status.h"
#include "rest_routing_status.h"
Classes | |
class | RestRoutingPluginConfig |
class | anonymous_namespace{rest_routing_plugin.cc}::RestRoutingConfigExposer |
Namespaces | |
namespace | anonymous_namespace{rest_routing_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 const char | kSectionName [] {"rest_routing"} |
static const char | kRequireRealm [] {"require_realm"} |
std::string | require_realm_routing |
static const std::array< JsonPointer::Token, 2 > | routing_status_path_tokens |
static const std::array< JsonPointer::Token, 2 > | routing_status_def_tokens |
static const std::array< JsonPointer::Token, 2 > | route_name_param_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_list_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_destination_list_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_destination_summary_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_blockedhost_list_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_blockedhost_summary_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_connection_list_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_connection_summary_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_summary_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_config_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_status_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_health_def_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_status_path_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_config_path_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_health_path_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_connection_list_path_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_blockedhost_list_path_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_destination_list_path_tokens |
static const std::array< JsonPointer::Token, 2 > | routes_list_path_tokens |
static const std::array< JsonPointer::Token, 2 > | tags_append_tokens |
static std::array< const char *, 2 > | required |
mysql_harness::Plugin REST_ROUTING_EXPORT | harness_plugin_rest_routing |
#define GET_OPTION_CHECKED | ( | option, | |
section, | |||
name, | |||
value | |||
) |
#define STR | ( | s | ) | { s, strlen(s), rapidjson::kPointerInvalidIndex } |
using JsonValue = RestApiComponent::JsonValue |
|
static |
|
static |
std::string json_pointer_stringfy | ( | const JsonPointer & | ptr | ) |
|
static |
|
static |
mysql_harness::Plugin REST_ROUTING_EXPORT harness_plugin_rest_routing |
|
static |
|
static |
std::string require_realm_routing |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |