userver: ugrpc::tests::StandaloneClientFactory Class Reference
Loading...
Searching...
No Matches
ugrpc::tests::StandaloneClientFactory Class Referencefinal

#include <userver/ugrpc/tests/standalone_client.hpp>

Detailed Description

Sets up a mini gRPC client that is not directly associated with any userver gRPC server.

Note
Prefer ugrpc::tests::ServiceBase and friends by default to create a userver gRPC service + client pair.

Definition at line 26 of file standalone_client.hpp.

Public Member Functions

 StandaloneClientFactory (client::ClientFactorySettings &&client_factory_settings={})
 
template<typename Client >
Client MakeClient (const std::string &endpoint)
 
client::ClientFactoryGetClientFactory ()
 

Constructor & Destructor Documentation

◆ StandaloneClientFactory()

ugrpc::tests::StandaloneClientFactory::StandaloneClientFactory ( client::ClientFactorySettings && client_factory_settings = {})
explicit
Parameters
client_factory_settingsOptions settings for the internal ugrpc::client::ClientFactory.

Member Function Documentation

◆ GetClientFactory()

client::ClientFactory & ugrpc::tests::StandaloneClientFactory::GetClientFactory ( )
inline
Returns
the internal ugrpc::client::ClientFactory.

Definition at line 42 of file standalone_client.hpp.

◆ MakeClient()

template<typename Client >
Client ugrpc::tests::StandaloneClientFactory::MakeClient ( const std::string & endpoint)
inline
Returns
a client for the specified gRPC service, connected to the specified endpoint.
See also
GetFreeIpv6Port
MakeIpv6Endpoint

Definition at line 37 of file standalone_client.hpp.


The documentation for this class was generated from the following file: