GRPC C++  1.39.1
endpoint_config_internal.h
Go to the documentation of this file.
1 // Copyright 2021 The gRPC Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 #ifndef GRPC_CORE_LIB_EVENT_ENGINE_ENDPOINT_CONFIG_INTERNAL_H
15 #define GRPC_CORE_LIB_EVENT_ENGINE_ENDPOINT_CONFIG_INTERNAL_H
16 
18 
20 
22 
23 namespace grpc_event_engine {
24 namespace experimental {
25 
30  public:
32  : args_(args) {}
33  Setting Get(absl::string_view key) const override;
34 
35  private:
36  const grpc_channel_args* args_;
37 };
38 
39 } // namespace experimental
40 } // namespace grpc_event_engine
41 
42 #endif // GRPC_CORE_LIB_EVENT_ENGINE_ENDPOINT_CONFIG_INTERNAL_H
A readonly EndpointConfig based on grpc_channel_args.
Definition: endpoint_config_internal.h:29
Setting Get(absl::string_view key) const override
Returns an EndpointConfig Setting.
Definition: endpoint_config.cc:28
ChannelArgsEndpointConfig(const grpc_channel_args *args)
Definition: endpoint_config_internal.h:31
A set of parameters used to configure an endpoint, either when initiating a new connection on the cli...
Definition: endpoint_config.h:35
absl::variant< absl::monostate, int, absl::string_view, void * > Setting
Definition: endpoint_config.h:38
Definition: endpoint_config.h:24
An array of arguments that can be passed around.
Definition: grpc_types.h:132