Source code for mersal.topic.topic_name_convention
from typing import Protocol
__all__ = ("TopicNameConvention",)
[docs]
class TopicNameConvention(Protocol):
[docs]
def get_topic_name(self, event_type: type) -> str:
"""Get the name of the topic for the given event type."""
...