|
GRPC C++
1.39.1
|
A set of parameters used to configure an endpoint, either when initiating a new connection on the client side or when listening for incoming connections on the server side. More...
#include <endpoint_config.h>
Public Types | |
| using | Setting = absl::variant< absl::monostate, int, absl::string_view, void * > |
Public Member Functions | |
| virtual | ~EndpointConfig ()=default |
| virtual Setting | Get (absl::string_view key) const =0 |
| Returns an EndpointConfig Setting. More... | |
A set of parameters used to configure an endpoint, either when initiating a new connection on the client side or when listening for incoming connections on the server side.
An EndpointConfig contains a set of zero or more Settings. Each setting has a unique name, which can be used to fetch that Setting via the Get() method. Each Setting has a value, which can be an integer, string, or void pointer. Each EE impl should define the set of Settings that it supports being passed into it, along with the corresponding type.
| using grpc_event_engine::experimental::EndpointConfig::Setting = absl::variant<absl::monostate, int, absl::string_view, void*> |
|
virtualdefault |
|
pure virtual |
Returns an EndpointConfig Setting.
If there is no Setting associated with key in the EndpointConfig, an absl::monostate type will be returned. Caller does not take ownership of resulting value.
Implemented in grpc_event_engine::experimental::ChannelArgsEndpointConfig.