LogicPublisher
faststream.redis.publisher.LogicPublisher dataclass
#
LogicPublisher(include_in_schema: bool = True, title: Optional[str] = None, _description: Optional[str] = None, _schema: Optional[Any] = None, _fake_handler: bool = False, channel: Optional[PubSub] = None, list: Optional[ListSub] = None, stream: Optional[StreamSub] = None, reply_to: str = '', headers: Optional[AnyDict] = None)
Bases: BasePublisher[AnyRedisDict]
A class to represent a Redis publisher.
calls class-attribute
instance-attribute
#
include_in_schema class-attribute
instance-attribute
#
mock class-attribute
instance-attribute
#
get_payloads #
Source code in faststream/broker/publisher.py
publish async
#
publish(message: SendableMessage, channel: Union[str, PubSub, None] = None, reply_to: str = '', headers: Optional[AnyDict] = None, correlation_id: Optional[str] = None, *, list: Union[str, ListSub, None] = None, stream: Union[str, StreamSub, None] = None, rpc: bool = False, rpc_timeout: Optional[float] = 30.0, raise_timeout: bool = False) -> Optional[DecodedMessage]
Source code in faststream/redis/publisher.py
reset_test #
schema #
Returns the schema of the API operation as a dictionary of channel names and channel objects.