GRPC Core
0.11.0.0
|
#include "src/core/client_config/resolver_factory.h"
Go to the source code of this file.
Functions | |
void | grpc_resolver_registry_init (const char *default_prefix) |
void | grpc_resolver_registry_shutdown (void) |
void | grpc_register_resolver_type (grpc_resolver_factory *factory) |
Register a resolver type. More... | |
grpc_resolver * | grpc_resolver_create (const char *target, grpc_subchannel_factory *subchannel_factory) |
Create a resolver given target. More... | |
char * | grpc_get_default_authority (const char *target) |
Given a target, return a (freshly allocated with gpr_malloc) string representing the default authority to pass from a client. More... | |
char* grpc_get_default_authority | ( | const char * | target | ) |
Given a target, return a (freshly allocated with gpr_malloc) string representing the default authority to pass from a client.
void grpc_register_resolver_type | ( | grpc_resolver_factory * | factory | ) |
Register a resolver type.
URI's of scheme will be resolved with the given resolver. If priority is greater than zero, then the resolver will be eligible to resolve names that are passed in with no scheme. Higher priority resolvers will be tried before lower priority schemes.
grpc_resolver* grpc_resolver_create | ( | const char * | target, |
grpc_subchannel_factory * | subchannel_factory | ||
) |
Create 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 or location fails, prefixes default_prefix from grpc_resolver_registry_init to target, and tries again (if default_prefix was not NULL). If a resolver factory was found, use it to instantiate a resolver and return it. If a resolver factory was not found, return NULL.
void grpc_resolver_registry_init | ( | const char * | default_prefix | ) |
void grpc_resolver_registry_shutdown | ( | void | ) |