NatsPublisher
faststream.nats.broker.router.NatsPublisher
#
NatsPublisher(
subject="",
*,
headers=None,
reply_to="",
stream=None,
timeout=None,
middlewares=(),
title=None,
description=None,
schema=None,
include_in_schema=True,
)
Bases: ArgsContainer
Delayed NatsPublisher registration object.
Just a copy of KafkaRegistrator.publisher(...)
arguments.
Initialized the NatsPublisher object.
PARAMETER | DESCRIPTION |
---|---|
subject
|
NATS subject to send message.
TYPE:
|
headers
|
Message headers to store metainformation.
content-type and correlation_id will be set automatically by framework anyway. Can be overridden by
TYPE:
|
reply_to
|
NATS subject name to send response.
TYPE:
|
stream
|
This option validates that the target
TYPE:
|
timeout
|
Timeout to send message to NATS.
TYPE:
|
middlewares
|
Publisher middlewares to wrap outgoing messages.
TYPE:
|
title
|
AsyncAPI publisher object title.
TYPE:
|
description
|
AsyncAPI publisher object description.
TYPE:
|
schema
|
AsyncAPI publishing message type.
Should be any python-native object annotation or
TYPE:
|
include_in_schema
|
Whetever to include operation in AsyncAPI schema or not.
TYPE:
|