aswi2021vochomurka-gitlab/aswi2021vochomurka/service/subscriber_params.py @ 91b91053
1 |
from recordclass import RecordClass |
---|---|
2 |
from typing import List |
3 |
|
4 |
|
5 |
class ConnectionParams(RecordClass): |
6 |
host: str |
7 |
port: int |
8 |
timeout: int |
9 |
|
10 |
|
11 |
class SubscriberParams(RecordClass): |
12 |
# list of topics to subscribe
|
13 |
topics: List[str] |
14 |
# close limit in seconds
|
15 |
closeLimit: int |
16 |
# connection params
|
17 |
connection: ConnectionParams |
18 |
# connect anonymously to broker, otherwise provide username and password
|
19 |
anonymous: bool |
20 |
username: str = "" |
21 |
password: str = "" |
- « Předchozí
- 1
- …
- 3
- 4
- 5
- Další »