NatsSubscriberSpecification
faststream.nats.subscriber.specification.NatsSubscriberSpecification #
NatsSubscriberSpecification(
_outer_config: T_BrokerConfig,
specification_config: T_SpecificationConfig,
calls: CallsCollection[Any],
)
Bases: SubscriberSpecification[NatsBrokerConfig, NatsSubscriberSpecificationConfig]
Source code in faststream/_internal/endpoint/subscriber/specification.py
subject property #
The subject this endpoint was declared with, and its Broker address.
filter_subjects property #
The subjects a JetStream consumer filters on, and their Broker addresses.
subjects property #
The subjects this endpoint reads, one channel each.
A JetStream consumer with no subject reaches its stream through filter_subjects, and each of those is an address in its own right.
get_schema #
get_schema() -> dict[str, SubscriberSpec]