6#include <grpcpp/support/byte_buffer.h>
8#include <userver/ugrpc/server/call_context.hpp>
9#include <userver/ugrpc/server/result.hpp>
10#include <userver/ugrpc/server/service_component_base.hpp>
11#include <userver/ugrpc/server/stream.hpp>
13USERVER_NAMESPACE_BEGIN
68 using GenericReaderWriter = ugrpc::
server::
ReaderWriter<grpc::ByteBuffer, grpc::ByteBuffer>;
69 using GenericResult = ugrpc::
server::StreamingResult<grpc::ByteBuffer>;
73 virtual ~GenericServiceBase();
77 virtual GenericResult
Handle(GenericCallContext& context, GenericReaderWriter& stream) = 0;
80 GenericServiceBase() =
default;