• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  * Copyright 2019 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_H
20 #define GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_H
21 
22 #include <grpcpp/impl/codegen/method_handler_impl.h>
23 
24 namespace grpc {
25 
26 namespace internal {
27 
28 template <class ServiceType, class RequestType, class ResponseType>
29 using BidiStreamingHandler =
30     ::grpc_impl::internal::BidiStreamingHandler<ServiceType, RequestType,
31                                                 ResponseType>;
32 
33 template <class ServiceType, class RequestType, class ResponseType>
34 using RpcMethodHandler =
35     ::grpc_impl::internal::RpcMethodHandler<ServiceType, RequestType,
36                                             ResponseType>;
37 
38 template <class ServiceType, class RequestType, class ResponseType>
39 using ClientStreamingHandler =
40     ::grpc_impl::internal::ClientStreamingHandler<ServiceType, RequestType,
41                                                   ResponseType>;
42 
43 template <class ServiceType, class RequestType, class ResponseType>
44 using ServerStreamingHandler =
45     ::grpc_impl::internal::ServerStreamingHandler<ServiceType, RequestType,
46                                                   ResponseType>;
47 
48 template <class Streamer, bool WriteNeeded>
49 using TemplatedBidiStreamingHandler =
50     ::grpc_impl::internal::TemplatedBidiStreamingHandler<Streamer, WriteNeeded>;
51 
52 template <class RequestType, class ResponseType>
53 using StreamedUnaryHandler =
54     ::grpc_impl::internal::StreamedUnaryHandler<RequestType, ResponseType>;
55 
56 template <class RequestType, class ResponseType>
57 using SplitServerStreamingHandler =
58     ::grpc_impl::internal::SplitServerStreamingHandler<RequestType,
59                                                        ResponseType>;
60 
61 template <StatusCode code>
62 using ErrorMethodHandler = ::grpc_impl::internal::ErrorMethodHandler<code>;
63 
64 using UnknownMethodHandler = ::grpc_impl::internal::UnknownMethodHandler;
65 
66 using ResourceExhaustedHandler =
67     ::grpc_impl::internal::ResourceExhaustedHandler;
68 
69 }  // namespace internal
70 
71 }  // namespace grpc
72 
73 #endif  // GRPCPP_IMPL_CODEGEN_METHOD_HANDLER_H
74