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
34 35 36 37 38 39 40 41 | |
subject property #
subject: Address
The subject this endpoint was declared with, and its Broker address.
filter_subjects property #
filter_subjects: list[str]
The subjects a JetStream consumer filters on, and their Broker addresses.
subjects property #
subjects: list[str]
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]
Source code in faststream/nats/subscriber/specification.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | |
get_payloads #
get_payloads() -> list[tuple[dict[str, Any], str]]
Source code in faststream/_internal/endpoint/subscriber/specification.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |