Records

Functions

  • template <class Func, class... Args>
    void CatchingCallback (Func && func, Args &&... args)

    An exception-safe way of invoking a user-specified callback function

    TODO(vjpai): decide whether it is better for this to take a const lvalue

    parameter or an rvalue parameter, or if it even matters

    Defined at line 42 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/callback_common.h

  • template <class Callable>
    ::grpc::Status CatchingFunctionHandler (Callable && handler)

    Invoke the method handler, fill in the status, and

    return whether or not we finished safely (without an exception).

    Note that exception handling is 0-cost in most compiler/library

    implementations (except when an exception is actually thrown),

    so this process doesn't require additional overhead in the common case.

    Additionally, we don't need to return if we caught an exception or not;

    the handling is the same in either case.

    Defined at line 42 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/method_handler.h

  • template <class InputMessage, class OutputMessage, class BaseInputMessage = InputMessage, class BaseOutputMessage = OutputMessage>
    void CallbackUnaryCall (grpc::ChannelInterface * channel, const grpc::internal::RpcMethod & method, grpc::ClientContext * context, const InputMessage * request, OutputMessage * result, std::function<void (grpc::Status)> on_completion)

    Perform a callback-based unary call. May optionally specify the base

    class of the Request and Response so that the internal calls and structures

    below this may be based on those base classes and thus achieve code reuse

    across different RPCs (e.g., for protobuf, MessageLite would be a base

    class).

    TODO(vjpai): Combine as much as possible with the blocking unary call code

    Defined at line 53 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/client_callback.h

  • template <class Reactor, class Func, class... Args>
    Reactor * CatchingReactorGetter (Func && func, Args &&... args)

    Defined at line 55 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/callback_common.h

  • grpc_metadata * FillMetadataArray (const std::multimap<std::string, std::string> & metadata, size_t * metadata_count, const std::string & optional_error_details)

    TODO(yangg) if the map is changed before we send, the pointers will be a

    mess. Make sure it does not happen.

    Defined at line 56 of file ../../third_party/grpc-migrating/src/include/grpcpp/impl/call_op_set.h

  • template <class RequestType>
    void * UnaryDeserializeHelper (grpc_byte_buffer * , grpc::Status * , RequestType * )

    A helper function with reduced templating to do deserializing.

    Defined at line 83 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/method_handler.h

  • template <class ResponseType>
    void UnaryRunHandlerHelper (const grpc::internal::MethodHandler::HandlerParameter & ResponseType * grpc::Status & )

    A helper function with reduced templating to do the common work needed to

    actually send the server response. Uses non-const parameter for Status since

    this should only ever be called from the end of the RunHandler method.

    Defined at line 60 of file ../../third_party/grpc-migrating/src/include/grpcpp/support/method_handler.h

Variables

experimental::ClientInterceptorFactoryInterface * g_global_client_interceptor_factory
experimental::ClientInterceptorFactoryInterface * g_global_client_stats_interceptor_factory