Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
79352898
Commit
79352898
authored
7 months ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
argumentify added
parent
1d76d2b9
No related branches found
No related tags found
No related merge requests found
Pipeline
#63915
passed with stages
in 2 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
coolamqp/objects.py
+33
-0
33 additions, 0 deletions
coolamqp/objects.py
with
33 additions
and
0 deletions
coolamqp/objects.py
+
33
−
0
View file @
79352898
...
...
@@ -17,6 +17,39 @@ logger = logging.getLogger(__name__)
class
MessageProperties
(
BasicContentPropertyList
):
"""
Properties you can attach to your messages. Only these keys are valid!
:param content_type: MIME content type
:type content_type: binary type (max length 255) (AMQP as shortstr)
:param content_encoding: MIME content encoding
:type content_encoding: binary type (max length 255) (AMQP as shortstr)
:param headers: message header field table
:type headers: table. See coolamqp.uplink.framing.field_table (AMQP as table)
:param delivery_mode: non-persistent (1) or persistent (2)
:type delivery_mode: int, 8 bit unsigned (AMQP as octet)
:param priority: message priority, 0 to 9
:type priority: int, 8 bit unsigned (AMQP as octet)
:param correlation_id: application correlation identifier
:type correlation_id: binary type (max length 255) (AMQP as shortstr)
:param reply_to: address to reply to
:type reply_to: binary type (max length 255) (AMQP as shortstr)
:param expiration: message expiration specification
:type expiration: binary type (max length 255) (AMQP as shortstr)
:param message_id: application message identifier
:type message_id: binary type (max length 255) (AMQP as shortstr)
:param timestamp: message timestamp
:type timestamp: 64 bit signed POSIX timestamp (in seconds) (AMQP as timestamp)
:param type_: message type name
:type type_: binary type (max length 255) (AMQP as shortstr)
:param user_id: creating user id
:type user_id: binary type (max length 255) (AMQP as shortstr)
:param app_id: creating application id
:type app_id: binary type (max length 255) (AMQP as shortstr)
:param reserved: reserved, must be empty
:type reserved: binary type (max length 255) (AMQP as shortstr)
"""
def
__new__
(
cls
,
*
args
,
**
kwargs
):
if
'
headers
'
in
kwargs
:
if
isinstance
(
kwargs
[
'
headers
'
],
dict
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment