proxy_mapper_registry.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2017 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_PROXY_MAPPER_REGISTRY_H
20 #define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_PROXY_MAPPER_REGISTRY_H
21 
23 
24 #include <memory>
25 
27 
30 
31 namespace grpc_core {
32 
34  public:
35  static void Init();
36  static void Shutdown();
37 
41  static void Register(bool at_start,
42  std::unique_ptr<ProxyMapperInterface> mapper);
43 
44  static bool MapName(const char* server_uri, const grpc_channel_args* args,
45  char** name_to_resolve, grpc_channel_args** new_args);
46 
47  static bool MapAddress(const grpc_resolved_address& address,
48  const grpc_channel_args* args,
49  grpc_resolved_address** new_address,
50  grpc_channel_args** new_args);
51 };
52 
53 } // namespace grpc_core
54 
55 #endif /* GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_PROXY_MAPPER_REGISTRY_H */
grpc_core
Definition: call_metric_recorder.h:31
grpc_core::ProxyMapperRegistry::MapName
static bool MapName(const char *server_uri, const grpc_channel_args *args, char **name_to_resolve, grpc_channel_args **new_args)
Definition: proxy_mapper_registry.cc:64
grpc_resolved_address
Definition: resolved_address.h:34
run_xds_tests.server_uri
string server_uri
Definition: run_xds_tests.py:3320
resolved_address.h
grpc_channel_args
Definition: grpc_types.h:132
grpc_types.h
proxy_mapper.h
asyncio_get_stats.args
args
Definition: asyncio_get_stats.py:40
grpc_core::ProxyMapperRegistry::MapAddress
static bool MapAddress(const grpc_resolved_address &address, const grpc_channel_args *args, grpc_resolved_address **new_address, grpc_channel_args **new_args)
Definition: proxy_mapper_registry.cc:77
grpc_core::ProxyMapperRegistry::Shutdown
static void Shutdown()
Definition: proxy_mapper_registry.cc:42
grpc_core::ProxyMapperRegistry::Init
static void Init()
Definition: proxy_mapper_registry.cc:36
grpc_core::ProxyMapperRegistry::Register
static void Register(bool at_start, std::unique_ptr< ProxyMapperInterface > mapper)
Definition: proxy_mapper_registry.cc:53
grpc_core::ProxyMapperRegistry
Definition: proxy_mapper_registry.h:33
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:58