MySQL 8.4.2
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< const char *, 1 > supported_options {"require_realm"}
 
std::string require_realm_api
 
static std::shared_ptr< RestApirest_api
 
static const std::array< const char *, 2 > 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:157
static constexpr std::array< const char *, 1 > 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 void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: rest_api_plugin.cc:309
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_api_plugin.cc:80
static const std::array< const char *, 2 > plugin_requires
Definition: rest_api_plugin.cc:281
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_api_plugin.cc:239
static void deinit(mysql_harness::PluginFuncEnv *)
Definition: rest_api_plugin.cc:269

◆ kSectionName

const char kSectionName[] {"rest_api"}
static

REST API plugin.

◆ plugin_requires

const std::array<const char *, 2> plugin_requires
static
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<const char *, 1> supported_options {"require_realm"}
staticconstexpr