• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15cdef class BaseEvent:
16  pass
17
18cdef class ConnectivityEvent(BaseEvent):
19
20  cdef readonly grpc_completion_type completion_type
21  cdef readonly bint success
22  cdef readonly object tag
23
24
25cdef class RequestCallEvent(BaseEvent):
26
27  cdef readonly grpc_completion_type completion_type
28  cdef readonly bint success
29  cdef readonly object tag
30  cdef readonly Call call
31  cdef readonly CallDetails call_details
32  cdef readonly tuple invocation_metadata
33
34
35cdef class BatchOperationEvent(BaseEvent):
36
37  cdef readonly grpc_completion_type completion_type
38  cdef readonly bint success
39  cdef readonly object tag
40  cdef readonly object batch_operations
41
42
43cdef class ServerShutdownEvent(BaseEvent):
44
45  cdef readonly grpc_completion_type completion_type
46  cdef readonly bint success
47  cdef readonly object tag
48