faust.types.router

Types for module faust.router.

class faust.types.router.RouterT(app: _AppT)[source]

Router type class.

app: _AppT
abstract key_store(table_name: str, key: Optional[Union[bytes, _ModelT, Any]]) URL[source]
Return type:

URL

abstract external_topic_key_store(topic: TopicT, key: Optional[Union[bytes, _ModelT, Any]]) URL[source]
Return type:

URL

abstract table_metadata(table_name: str) MutableMapping[str, MutableMapping[str, List[int]]][source]
Return type:

_GenericAlias[str, _GenericAlias[str, _GenericAlias[int]]]

abstract tables_metadata() MutableMapping[str, MutableMapping[str, List[int]]][source]
Return type:

_GenericAlias[str, _GenericAlias[str, _GenericAlias[int]]]

abstract external_topics_metadata() MutableMapping[str, MutableMapping[str, List[int]]][source]
Return type:

_GenericAlias[str, _GenericAlias[str, _GenericAlias[int]]]

abstract async route_req(table_name: str, key: Optional[Union[bytes, _ModelT, Any]], web: Web, request: Request) Response[source]
Return type:

Response

abstract async route_topic_req(topic: TopicT, key: Optional[Union[bytes, _ModelT, Any]], web: Web, request: Request) Response[source]
Return type:

Response