#include <userver/ugrpc/client/client_factory.hpp>
Creates gRPC clients.
Typically obtained from ugrpc::client::ClientFactoryComponent. In tests and benchmarks, obtained from ugrpc::tests::ServiceBase and friends.
Has a minimal built-in channel cache: as long as a channel to the same endpoint is used somewhere, the same channel is given out.
Definition at line 40 of file client_factory.hpp.
Public Member Functions | |
| template<typename Client> | |
| Client | MakeClient (ClientSettings &&client_settings) |
| Make a client of the specified code-generated type. | |
| template<typename Client> | |
| Client | MakeClient (const std::string &client_name, const std::string &endpoint) |
| Make a client of the specified code-generated type. | |
| Client ugrpc::client::ClientFactory::MakeClient | ( | ClientSettings && | client_settings | ) |
Make a client of the specified code-generated type.
Definition at line 80 of file client_factory.hpp.
| Client ugrpc::client::ClientFactory::MakeClient | ( | const std::string & | client_name, |
| const std::string & | endpoint ) |
Make a client of the specified code-generated type.
| client_name | see ClientSettings |
| endpoint | see ClientSettings |
Definition at line 85 of file client_factory.hpp.