Bases: AsyncAPIProto
, EndpointProto
, WrapperProto[MsgType]
title_ instance-attribute
description_ instance-attribute
AsyncAPI object description.
include_in_schema instance-attribute
Whetever to include operation in AsyncAPI schema or not.
name abstractmethod
property
Returns the name of the API operation.
description abstractmethod
property
Returns the description of the API operation.
running instance-attribute
call_name abstractmethod
property
add_prefix abstractmethod
Source code in faststream/broker/proto.py
| @abstractmethod
def add_prefix(self, prefix: str) -> None: ...
|
schema abstractmethod
Generate AsyncAPI schema.
Source code in faststream/asyncapi/proto.py
| @abstractmethod
def schema(self) -> Dict[str, "Channel"]:
"""Generate AsyncAPI schema."""
...
|
add_middleware abstractmethod
add_middleware(middleware)
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
def add_middleware(self, middleware: "BrokerMiddleware[MsgType]") -> None: ...
|
get_log_context abstractmethod
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
def get_log_context(
self,
msg: Optional["StreamMessage[MsgType]"],
/,
) -> Dict[str, str]: ...
|
setup abstractmethod
setup(*, logger, graceful_timeout, broker_parser, broker_decoder, producer, extra_context, apply_types, is_validate, _get_dependant, _call_decorators)
Source code in faststream/broker/subscriber/proto.py
| @override
@abstractmethod
def setup( # type: ignore[override]
self,
*,
logger: Optional["LoggerProto"],
graceful_timeout: Optional[float],
broker_parser: Optional["CustomCallable"],
broker_decoder: Optional["CustomCallable"],
producer: Optional["ProducerProto"],
extra_context: "AnyDict",
# FastDepends options
apply_types: bool,
is_validate: bool,
_get_dependant: Optional[Callable[..., Any]],
_call_decorators: Iterable["Decorator"],
) -> None: ...
|
start abstractmethod
async
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
async def start(self) -> None: ...
|
close abstractmethod
async
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
async def close(self) -> None: ...
|
consume abstractmethod
async
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
async def consume(self, msg: MsgType) -> Any: ...
|
process_message abstractmethod
async
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
async def process_message(self, msg: MsgType) -> "Response": ...
|
get_one abstractmethod
async
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
async def get_one(
self, *, timeout: float = 5.0
) -> "Optional[StreamMessage[MsgType]]": ...
|
add_call abstractmethod
add_call(*, filter_, parser_, decoder_, middlewares_, dependencies_)
Source code in faststream/broker/subscriber/proto.py
| @abstractmethod
def add_call(
self,
*,
filter_: "Filter[Any]",
parser_: "CustomCallable",
decoder_: "CustomCallable",
middlewares_: Iterable["SubscriberMiddleware[Any]"],
dependencies_: Iterable["Depends"],
) -> Self: ...
|