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

Class MessageHandler

src/core/rabbit_mq/message_handler.py:12–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class MessageHandler(ABC):
13 def __init__(
14 self,
15 container: Container,
16 ) -> None:
17 self.container = container
18 self.logger = container.log()
19
20 @abstractmethod
21 async def handle(self, context: MessageContext) -> ProcessingResult:
22 pass
23
24 @abstractmethod
25 def can_handle(self, action: str) -> bool:
26 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected