CCF
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Functions
ccf::grpc Namespace Reference

Namespaces

namespace  impl
 

Classes

class  BaseStream
 
class  DetachedStream
 
struct  ErrorResponse
 
struct  PendingResponse
 
class  Stream
 
struct  SuccessResponse
 

Typedefs

template<typename T >
using StreamPtr = std::unique_ptr< Stream< T > >
 
template<typename T >
using DetachedStreamPtr = std::unique_ptr< DetachedStream< T > >
 
template<typename T >
using GrpcAdapterResponse = std::variant< ErrorResponse, SuccessResponse< T > >
 
using GrpcAdapterStreamingResponse = std::variant< ErrorResponse, PendingResponse >
 
using EmptyResponse = google::protobuf::Empty
 
using EmptySuccessResponse = SuccessResponse< EmptyResponse >
 
using GrpcAdapterEmptyResponse = GrpcAdapterResponse< EmptyResponse >
 

Functions

template<typename In >
In get_grpc_payload (const std::shared_ptr< ccf::RpcContext > &ctx)
 
void set_grpc_default_headers (const std::shared_ptr< ccf::RpcContext > &ctx)
 
void set_grpc_response_trailers (const std::shared_ptr< ccf::RpcContext > &ctx, const ccf::protobuf::Status &status)
 
template<typename Out >
void set_grpc_response (const GrpcAdapterResponse< Out > &r, const std::shared_ptr< ccf::RpcContext > &ctx)
 

Typedef Documentation

◆ DetachedStreamPtr

template<typename T >
using ccf::grpc::DetachedStreamPtr = typedef std::unique_ptr<DetachedStream<T> >

◆ EmptyResponse

using ccf::grpc::EmptyResponse = typedef google::protobuf::Empty

◆ EmptySuccessResponse

◆ GrpcAdapterEmptyResponse

◆ GrpcAdapterResponse

template<typename T >
using ccf::grpc::GrpcAdapterResponse = typedef std::variant<ErrorResponse, SuccessResponse<T> >

◆ GrpcAdapterStreamingResponse

◆ StreamPtr

template<typename T >
using ccf::grpc::StreamPtr = typedef std::unique_ptr<Stream<T> >

Function Documentation

◆ get_grpc_payload()

template<typename In >
In ccf::grpc::get_grpc_payload ( const std::shared_ptr< ccf::RpcContext > &  ctx)

◆ set_grpc_default_headers()

void ccf::grpc::set_grpc_default_headers ( const std::shared_ptr< ccf::RpcContext > &  ctx)
inline

◆ set_grpc_response()

template<typename Out >
void ccf::grpc::set_grpc_response ( const GrpcAdapterResponse< Out > &  r,
const std::shared_ptr< ccf::RpcContext > &  ctx 
)

◆ set_grpc_response_trailers()

void ccf::grpc::set_grpc_response_trailers ( const std::shared_ptr< ccf::RpcContext > &  ctx,
const ccf::protobuf::Status &  status 
)
inline