MCPcopy Create free account
hub / github.com/dbunt1tled/python-fast-api / MessageContext

Class MessageContext

src/core/rabbit_mq/data.py:14–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13@dataclass
14class MessageContext:
15 action: str
16 payload: dict[str, Any]
17 headers: dict[str, Any]
18 routing_key: str
19 queue_name: str
20 delivery_tag: int
21 redelivered: bool
22 timestamp: datetime | None = None
23
24 def to_str(self) -> str:
25 return f"Action: {self.action}, Payload: {self.payload}"

Callers 1

_parse_messageMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected