SendClient#
Bases: Container
SendClient wrapper class.
Source code in pubtools/sign/clients/msg_send_client.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|
__init__(messages, broker_urls, cert, ca_cert, retries, errors, **kwargs)
#
Send Client Initializer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
messages
|
List[MsgMessage]
|
List of messages to send. |
required |
broker_urls
|
List[str]
|
List of addresses of messaging broker. |
required |
cert
|
str
|
Path to messaging client key and certificate in PEM format. |
required |
ca_cert
|
str
|
Path to messaging CA certificate. |
required |
retries
|
int
|
Number of retries for sending messages. |
required |
errors
|
List[MsgError]
|
List of errors which occurred during the process. |
required |
Source code in pubtools/sign/clients/msg_send_client.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
|
run()
#
Run the SendClient.
Returns:
Type | Description |
---|---|
List[MsgError]
|
List[MsgError]: List of errors that occurred during sending messages. |
Source code in pubtools/sign/clients/msg_send_client.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|