MySQL 9.2.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
routing_guidelines_adapter.h File Reference
#include <optional>
#include <string>
#include <string_view>
#include <system_error>
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>
#include "mysql/harness/config_parser.h"
#include "mysql/harness/net_ts/io_context.h"
#include "mysql/harness/stdx/expected.h"
#include "mysqlrouter/routing_export.h"
#include "mysqlrouter/uri.h"
#include "protocol/protocol.h"

Go to the source code of this file.

Classes

class  Guidelines_from_conf_adapter
 Helper class used to create routing guideline from Router configuration. More...
 
struct  Guidelines_from_conf_adapter::Role_info
 Information about one routing section. More...
 

Functions

stdx::expected< std::string, std::error_code > ROUTING_EXPORT create_routing_guidelines_document (const mysql_harness::Config::ConstSectionList &sections, net::io_context &io_ctx)
 Create a routing guideline from Router configuration. More...
 

Function Documentation

◆ create_routing_guidelines_document()

stdx::expected< std::string, std::error_code > ROUTING_EXPORT create_routing_guidelines_document ( const mysql_harness::Config::ConstSectionList sections,
net::io_context io_ctx 
)

Create a routing guideline from Router configuration.

Parameters
sectionsRouter configuration sections
io_ctxIO context