daprmq-client 0.0.0a4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- daprmq_client/__init__.py +88 -0
- daprmq_client/client.py +741 -0
- daprmq_client/errors.py +95 -0
- daprmq_client/grpc/__init__.py +0 -0
- daprmq_client/grpc/daprmq_pb2.py +137 -0
- daprmq_client/grpc/daprmq_pb2.pyi +489 -0
- daprmq_client/grpc/daprmq_pb2_grpc.py +655 -0
- daprmq_client/queue_consumer.py +235 -0
- daprmq_client/session_queue_consumer.py +224 -0
- daprmq_client/types.py +134 -0
- daprmq_client-0.0.0a4.dist-info/METADATA +41 -0
- daprmq_client-0.0.0a4.dist-info/RECORD +14 -0
- daprmq_client-0.0.0a4.dist-info/WHEEL +4 -0
- daprmq_client-0.0.0a4.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
from .client import OPERATIONS_HEALTH_SERVICE, DaprMQClient
|
|
2
|
+
from .errors import (
|
|
3
|
+
ActorNotFoundError,
|
|
4
|
+
DaprMQError,
|
|
5
|
+
DaprMQUnavailableError,
|
|
6
|
+
DeliveryUnknownError,
|
|
7
|
+
InvalidLeaseIdError,
|
|
8
|
+
LockExpiredError,
|
|
9
|
+
LockNotFoundError,
|
|
10
|
+
NoSessionsAvailableError,
|
|
11
|
+
SessionActorUnavailableError,
|
|
12
|
+
SessionLeaseExpiredError,
|
|
13
|
+
SessionLockedError,
|
|
14
|
+
SessionLostError,
|
|
15
|
+
SessionNotFoundError,
|
|
16
|
+
StreamClosedError,
|
|
17
|
+
ValidationError,
|
|
18
|
+
)
|
|
19
|
+
from .queue_consumer import (
|
|
20
|
+
QueueCapableClient,
|
|
21
|
+
QueueConsumer,
|
|
22
|
+
QueueConsumerOptions,
|
|
23
|
+
QueueHandlerFailureAction,
|
|
24
|
+
QueueMessageContext,
|
|
25
|
+
)
|
|
26
|
+
from .session_queue_consumer import (
|
|
27
|
+
SessionCapableClient,
|
|
28
|
+
SessionHandlerFailureAction,
|
|
29
|
+
SessionMessageContext,
|
|
30
|
+
SessionQueueConsumer,
|
|
31
|
+
SessionQueueConsumerOptions,
|
|
32
|
+
)
|
|
33
|
+
from .types import (
|
|
34
|
+
AcknowledgeBatchResult,
|
|
35
|
+
AcknowledgeOutcome,
|
|
36
|
+
DequeueLockedItem,
|
|
37
|
+
DequeueLockedResult,
|
|
38
|
+
EnqueueItem,
|
|
39
|
+
EnqueueResult,
|
|
40
|
+
LockAcknowledgeResult,
|
|
41
|
+
NackResult,
|
|
42
|
+
QueueDelivery,
|
|
43
|
+
RetryOptions,
|
|
44
|
+
SessionDelivery,
|
|
45
|
+
SessionLease,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
__all__ = [
|
|
49
|
+
"DaprMQClient",
|
|
50
|
+
"OPERATIONS_HEALTH_SERVICE",
|
|
51
|
+
"RetryOptions",
|
|
52
|
+
"DaprMQError",
|
|
53
|
+
"DaprMQUnavailableError",
|
|
54
|
+
"DeliveryUnknownError",
|
|
55
|
+
"LockNotFoundError",
|
|
56
|
+
"LockExpiredError",
|
|
57
|
+
"ActorNotFoundError",
|
|
58
|
+
"ValidationError",
|
|
59
|
+
"SessionNotFoundError",
|
|
60
|
+
"SessionLockedError",
|
|
61
|
+
"SessionLeaseExpiredError",
|
|
62
|
+
"InvalidLeaseIdError",
|
|
63
|
+
"SessionActorUnavailableError",
|
|
64
|
+
"NoSessionsAvailableError",
|
|
65
|
+
"SessionLostError",
|
|
66
|
+
"StreamClosedError",
|
|
67
|
+
"EnqueueItem",
|
|
68
|
+
"EnqueueResult",
|
|
69
|
+
"DequeueLockedItem",
|
|
70
|
+
"DequeueLockedResult",
|
|
71
|
+
"SessionLease",
|
|
72
|
+
"NackResult",
|
|
73
|
+
"AcknowledgeBatchResult",
|
|
74
|
+
"AcknowledgeOutcome",
|
|
75
|
+
"LockAcknowledgeResult",
|
|
76
|
+
"SessionDelivery",
|
|
77
|
+
"QueueDelivery",
|
|
78
|
+
"SessionQueueConsumer",
|
|
79
|
+
"SessionQueueConsumerOptions",
|
|
80
|
+
"SessionHandlerFailureAction",
|
|
81
|
+
"SessionMessageContext",
|
|
82
|
+
"SessionCapableClient",
|
|
83
|
+
"QueueConsumer",
|
|
84
|
+
"QueueConsumerOptions",
|
|
85
|
+
"QueueHandlerFailureAction",
|
|
86
|
+
"QueueMessageContext",
|
|
87
|
+
"QueueCapableClient",
|
|
88
|
+
]
|