#include <resolver_registry.h>
◆ AddDefaultPrefixIfNeeded()
grpc_core::UniquePtr< char > grpc_core::ResolverRegistry::AddDefaultPrefixIfNeeded |
( |
const char * |
target | ) |
|
|
static |
Returns target with the default prefix prepended, if needed.
◆ CreateResolver()
Creates a resolver given target.
First tries to parse target as a URI. If this succeeds, tries to locate a registered resolver factory based on the URI scheme. If parsing fails or there is no factory for the URI's scheme, prepends default_prefix to target and tries again. If a resolver factory is found, uses it to instantiate a resolver and returns it; otherwise, returns nullptr. args, pollset_set, and combiner are passed to the factory's CreateResolver() method. args are the channel args to be included in resolver results. pollset_set is used to drive I/O in the name resolution process. combiner is the combiner under which all resolver calls will be run. result_handler is used to return results from the resolver.
◆ GetDefaultAuthority()
grpc_core::UniquePtr< char > grpc_core::ResolverRegistry::GetDefaultAuthority |
( |
const char * |
target | ) |
|
|
static |
Returns the default authority to pass from a client for target.
◆ IsValidTarget()
bool grpc_core::ResolverRegistry::IsValidTarget |
( |
const char * |
target | ) |
|
|
static |
Checks whether the user input target is valid to create a resolver.
◆ LookupResolverFactory()
ResolverFactory * grpc_core::ResolverRegistry::LookupResolverFactory |
( |
const char * |
scheme | ) |
|
|
static |
Returns the resolver factory for scheme.
Caller does NOT own the return value.
The documentation for this class was generated from the following files: