FakeProducer
faststream.nats.testing.FakeProducer #
FakeProducer(
broker: NatsBroker, brokers: Sequence[NatsBroker]
)
Bases: NatsFastProducer
Source code in faststream/nats/testing.py
142 143 144 145 146 147 148 149 150 151 152 153 | |
publish async #
publish(cmd: NatsPublishCommand) -> None
Source code in faststream/nats/testing.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | |
request async #
request(cmd: NatsPublishCommand) -> PatchedMessage
Source code in faststream/nats/testing.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | |
publish_batch async #
publish_batch(cmd: NatsPublishCommand) -> None
Source code in faststream/nats/publisher/producer.py
56 57 58 59 | |
connect #
connect(
connection: Any,
serializer: Optional[SerializerProto],
codec: Optional[CodecProto] = None,
) -> None
Source code in faststream/nats/publisher/producer.py
41 42 43 44 45 46 | |
disconnect #
disconnect() -> None
Source code in faststream/nats/publisher/producer.py
48 | |