#include <service_config.h>
|
class | CallData |
| When a service config is applied to a call in the client_channel_filter, we create an instance of this object and store it in the call_data for client_channel. More...
|
|
class | ParsedConfig |
| This is the base class that all service config parsers MUST use to store parsed service config data. More...
|
|
class | Parser |
| This is the base class that all service config parsers should derive from. More...
|
|
|
| RefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1) |
|
◆ ParsedConfigVector
◆ ServiceConfig()
◆ ~ServiceConfig()
grpc_core::ServiceConfig::~ServiceConfig |
( |
| ) |
|
◆ Create()
Creates a new service config from parsing json_string.
Returns null on parse error.
◆ GetGlobalParsedConfig()
ParsedConfig* grpc_core::ServiceConfig::GetGlobalParsedConfig |
( |
size_t |
index | ) |
|
|
inline |
Retrieves the global parsed config at index index.
The lifetime of the returned object is tied to the lifetime of the ServiceConfig object.
◆ GetMethodParsedConfigVector()
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.
◆ Init()
void grpc_core::ServiceConfig::Init |
( |
| ) |
|
|
static |
◆ RegisterParser()
size_t grpc_core::ServiceConfig::RegisterParser |
( |
std::unique_ptr< Parser > |
parser | ) |
|
|
static |
Globally register a service config parser.
On successful registration, it returns the index at which the parser was registered. On failure, -1 is returned. Each new service config update will go through all the registered parser. Each parser is responsible for reading the service config json and returning a parsed config. This parsed config can later be retrieved using the same index that was returned at registration time.
◆ service_config_json()
const char* grpc_core::ServiceConfig::service_config_json |
( |
| ) |
const |
|
inline |
◆ Shutdown()
void grpc_core::ServiceConfig::Shutdown |
( |
| ) |
|
|
static |
◆ kNumPreallocatedParsers
constexpr int grpc_core::ServiceConfig::kNumPreallocatedParsers = 4 |
|
staticconstexpr |
The documentation for this class was generated from the following files: