MockConfluentMessage
faststream.confluent.testing.MockConfluentMessage #
MockConfluentMessage(
raw_msg: bytes | None,
topic: str,
key: bytes | str,
headers: list[tuple[str, bytes]],
offset: int,
partition: int,
timestamp_type: int,
timestamp_ms: int,
error: str | None = None,
)
Source code in faststream/confluent/testing.py
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | |
len #
len() -> int
Source code in faststream/confluent/testing.py
315 316 | |
error #
error() -> str | None
Source code in faststream/confluent/testing.py
318 319 | |
headers #
headers() -> list[tuple[str, bytes]]
Source code in faststream/confluent/testing.py
321 322 | |
key #
key() -> bytes
Source code in faststream/confluent/testing.py
324 325 | |
offset #
offset() -> int
Source code in faststream/confluent/testing.py
327 328 | |
partition #
partition() -> int
Source code in faststream/confluent/testing.py
330 331 | |
timestamp #
timestamp() -> tuple[int, int]
Source code in faststream/confluent/testing.py
333 334 | |
topic #
topic() -> str
Source code in faststream/confluent/testing.py
336 337 | |
value #
value() -> bytes | None
Source code in faststream/confluent/testing.py
339 340 | |