minos.saga.messages
Classes
Saga Request class. |
|
Saga Response class. |
|
Saga Response Status class. |
- class SagaResponse[source]
Bases:
object
Saga Response class.
- classmethod from_message(message)[source]
Build a new
SagaResponse
from aBrokerMessage
.- Parameters
message (BrokerMessage) – The
BrokerMessage
instance.- Returns
A
SagaResponse
.- Return type
- async content(**kwargs)[source]
Get the response content.
- Parameters
kwargs – Additional named parameters.
- Returns
The content of the response.
- Return type
- property status: minos.saga.messages.SagaResponseStatus
Get the status code of the response.
- Returns
A
ResponseStatus
instance.
Get the microservice name that generated the response.
- Returns
An string value containing the microservice name.
- class SagaResponseStatus[source]
Bases:
IntEnum
Saga Response Status class.
- SUCCESS = 200
- ERROR = 400
- SYSTEM_ERROR = 500