#include <service_config_impl.h>
Static Public Member Functions | |
static RefCountedPtr< ServiceConfig > | Create (const grpc_channel_args *args, absl::string_view json_string, grpc_error_handle *error) |
Private Member Functions | |
grpc_error_handle | ParseJsonMethodConfig (const grpc_channel_args *args, const Json &json) |
grpc_error_handle | ParsePerMethodParams (const grpc_channel_args *args) |
Static Private Member Functions | |
static std::string | ParseJsonMethodName (const Json &json, grpc_error_handle *error) |
Private Attributes | |
const ServiceConfigParser::ParsedConfigVector * | default_method_config_vector_ |
Json | json_ |
std::string | json_string_ |
std::vector< std::unique_ptr< ServiceConfigParser::ParsedConfig > > | parsed_global_configs_ |
std::vector< std::unique_ptr< ServiceConfigParser::ParsedConfigVector > > | parsed_method_config_vectors_storage_ |
std::unordered_map< grpc_slice, const ServiceConfigParser::ParsedConfigVector *, SliceHash > | parsed_method_configs_map_ |
Additional Inherited Members | |
![]() | |
using | RefCountedChildType = ServiceConfig |
![]() | |
RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1) | |
Definition at line 68 of file service_config_impl.h.
grpc_core::ServiceConfigImpl::ServiceConfigImpl | ( | const grpc_channel_args * | args, |
std::string | json_string, | ||
Json | json, | ||
grpc_error_handle * | error | ||
) |
Definition at line 51 of file service_config_impl.cc.
|
override |
Definition at line 75 of file service_config_impl.cc.
|
static |
Creates a new service config from parsing json_string. Returns null on parse error.
Definition at line 41 of file service_config_impl.cc.
|
inlineoverridevirtual |
Retrieves the global parsed config at index index. The lifetime of the returned object is tied to the lifetime of the ServiceConfig object.
Implements grpc_core::ServiceConfig.
Definition at line 85 of file service_config_impl.h.
|
overridevirtual |
Retrieves the vector of parsed configs for the method identified by path. The lifetime of the returned vector and contained objects is tied to the lifetime of the ServiceConfig object.
Implements grpc_core::ServiceConfig.
Definition at line 217 of file service_config_impl.cc.
|
inlineoverridevirtual |
Implements grpc_core::ServiceConfig.
Definition at line 80 of file service_config_impl.h.
|
private |
Definition at line 81 of file service_config_impl.cc.
|
staticprivate |
Definition at line 167 of file service_config_impl.cc.
|
private |
Definition at line 143 of file service_config_impl.cc.
|
private |
Definition at line 120 of file service_config_impl.h.
|
private |
Definition at line 109 of file service_config_impl.h.
|
private |
Definition at line 108 of file service_config_impl.h.
|
private |
Definition at line 112 of file service_config_impl.h.
|
private |
Definition at line 125 of file service_config_impl.h.
|
private |
Definition at line 118 of file service_config_impl.h.