Go to the documentation of this file.
25 #include "absl/strings/str_cat.h"
36 std::unique_ptr<Parser>
parser) {
38 if (registered_parser->name() ==
parser->name()) {
41 "' already registered")
55 std::vector<grpc_error_handle> error_list;
61 error_list.push_back(parser_error);
63 parsed_global_configs.push_back(
std::move(parsed_config));
65 if (!error_list.empty()) {
68 return parsed_global_configs;
76 std::vector<grpc_error_handle> error_list;
82 error_list.push_back(parser_error);
84 parsed_method_configs.push_back(
std::move(parsed_config));
86 if (!error_list.empty()) {
89 return parsed_method_configs;
std::string StrCat(const AlphaNum &a, const AlphaNum &b)
ServiceConfigParser Build()
std::vector< std::unique_ptr< ParsedConfig > > ParsedConfigVector
#define GRPC_ERROR_CREATE_FROM_VECTOR(desc, error_list)
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
JSON (JavaScript Object Notation).
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
size_t GetParserIndex(absl::string_view name) const
void RegisterParser(std::unique_ptr< Parser > parser)
ServiceConfigParserList registered_parsers_
ParsedConfigVector ParseGlobalParameters(const grpc_channel_args *args, const Json &json, grpc_error_handle *error) const
ServiceConfigParserList registered_parsers_
ServiceConfigParser(ServiceConfigParserList registered_parsers)
ParsedConfigVector ParsePerMethodParameters(const grpc_channel_args *args, const Json &json, grpc_error_handle *error) const
#define GRPC_ERROR_IS_NONE(err)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:12