MySQL 9.1.0
Source Code Documentation
rest_api_plugin.cc File Reference

Classes

class  RestApiPluginConfig
 
class  anonymous_namespace{rest_api_plugin.cc}::RestApiConfigExposer
 

Namespaces

namespace  anonymous_namespace{rest_api_plugin.cc}
 

Macros

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

Functions

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

Variables

static const char kSectionName [] {"rest_api"}
 REST API plugin. More...
 
static constexpr std::array supported_options
 
std::string require_realm_api
 
static std::shared_ptr< RestApirest_api
 
static constexpr std::array plugin_requires
 
mysql_harness::Plugin DLLEXPORT harness_plugin_rest_api
 

Macro Definition Documentation

◆ DLLEXPORT

#define DLLEXPORT

◆ 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 std::array supported_options
Definition: rest_api_plugin.cc:51
case opt name
Definition: sslopt-case.h:29

Function Documentation

◆ deinit()

static void deinit ( mysql_harness::PluginFuncEnv )
static

◆ expose_configuration()

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

◆ init()

static void init ( mysql_harness::PluginFuncEnv env)
static

◆ start()

static void start ( mysql_harness::PluginFuncEnv env)
static

Variable Documentation

◆ harness_plugin_rest_api

mysql_harness::Plugin DLLEXPORT harness_plugin_rest_api
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"REST_API",
VERSION_NUMBER(0, 0, 1),
0,
nullptr,
init,
nullptr,
true,
}
static constexpr std::array plugin_requires
Definition: rest_api_plugin.cc:283
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: rest_api_plugin.cc:311
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_api_plugin.cc:82
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_api_plugin.cc:241
static void deinit(mysql_harness::PluginFuncEnv *)
Definition: rest_api_plugin.cc:271

◆ kSectionName

const char kSectionName[] {"rest_api"}
static

REST API plugin.

◆ plugin_requires

constexpr std::array plugin_requires
staticconstexpr
Initial value:
{
"http_server",
"logger",
}

◆ require_realm_api

std::string require_realm_api

◆ rest_api

std::shared_ptr<RestApi> rest_api
static

◆ supported_options

constexpr std::array supported_options
staticconstexpr
Initial value:
= {
"require_realm",
}