demessaging.messaging.constants module
Enums within the DASF Messaging Framework.
Classes:
|
Supported message types. |
|
Property keys for a message to the message broker. |
|
Status flag of a request. |
Functions:
|
Utility function to generate the docstring for an enum. |
- class demessaging.messaging.constants.MessageType(value)[source]
-
Supported message types.
The following values are valid:
PING (
"ping"
)PONG (
"pong"
)REQUEST (
"request"
)RESPONSE (
"response"
)LOG (
"log"
)INFO (
"info"
)PROGRESS (
"progress"
)API_INFO (
"api_info"
)
Attributes:
- API_INFO = 'api_info'
- INFO = 'info'
- LOG = 'log'
- PING = 'ping'
- PONG = 'pong'
- PROGRESS = 'progress'
- REQUEST = 'request'
- RESPONSE = 'response'
- class demessaging.messaging.constants.PropertyKeys(value)[source]
-
Property keys for a message to the message broker.
The following values are valid:
REQUEST_CONTEXT (
"requestContext"
)RESPONSE_TOPIC (
"response_topic"
)SOURCE_TOPIC (
"source_topic"
)REQUEST_MESSAGEID (
"requestMessageId"
)MESSAGE_TYPE (
"messageType"
)FRAGMENT (
"fragment"
)NUM_FRAGMENTS (
"num_fragments"
)STATUS (
"status"
)
Attributes:
- FRAGMENT = 'fragment'
- MESSAGE_TYPE = 'messageType'
- NUM_FRAGMENTS = 'num_fragments'
- REQUEST_CONTEXT = 'requestContext'
- REQUEST_MESSAGEID = 'requestMessageId'
- RESPONSE_TOPIC = 'response_topic'
- SOURCE_TOPIC = 'source_topic'
- STATUS = 'status'