You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
377 B
Python
20 lines
377 B
Python
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Any
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class MQMessage:
|
|
app: Any
|
|
topic: str
|
|
partition: int
|
|
offset: int
|
|
key: Any
|
|
raw_key: bytes | None
|
|
value: Any
|
|
raw_value: bytes | None
|
|
headers: dict[str, bytes | None]
|
|
timestamp: tuple[int, int] | None
|
|
raw_message: Any
|