LogicPublisher
faststream.nats.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, subject: str = '', reply_to: str = '', headers: Optional[Dict[str, str]] = None, stream: Optional[JStream] = None, timeout: Optional[float] = None)
Bases: BasePublisher[Msg]
A class to represent a NATS publisher.
calls class-attribute
instance-attribute
#
headers 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 = '', reply_to: str = '', correlation_id: Optional[str] = None, headers: Optional[Dict[str, str]] = None, **producer_kwargs: Any) -> Optional[DecodedMessage]
Source code in faststream/nats/publisher.py
reset_test #
schema #
Returns the schema of the API operation as a dictionary of channel names and channel objects.