userver
C++ Async Framework
Loading...
Searching...
No Matches
grpc-generic-proxy/src/proxy_service.hpp
#pragma once
// For testing purposes only, in your services write out userver:: namespace
// instead.
#include <
userver/utest/using_namespace_userver.hpp
>
#include <
userver/ugrpc/client/fwd.hpp
>
#include <
userver/ugrpc/server/generic_service_base.hpp
>
namespace
samples {
class
ProxyService final :
public
ugrpc::server::GenericServiceBase::Component
{
public
:
static
constexpr
std::string_view kName =
"proxy-service"
;
ProxyService(
const
components::ComponentConfig
& config,
const
components::ComponentContext
& context);
GenericResult Handle(GenericCallContext& context, GenericReaderWriter& stream)
override
;
private
:
ugrpc::client::GenericClient
& client_;
};
}
// namespace samples
Generated on Fri Jan 31 2025 09:44:45 for userver by
Doxygen
1.10.0