AsyncAPIPublisher
faststream.redis.publisher.asyncapi.AsyncAPIPublisher #
AsyncAPIPublisher(*, reply_to, headers, broker_middlewares, middlewares, schema_, title_, description_, include_in_schema)
Bases: LogicPublisher
, RedisAsyncAPIProtocol
A class to represent a Redis publisher.
Source code in faststream/redis/publisher/usecase.py
publish abstractmethod
async
#
Publishes a message asynchronously.
Source code in faststream/broker/publisher/proto.py
request abstractmethod
async
#
Publishes a message synchronously.
Source code in faststream/broker/publisher/proto.py
setup #
add_prefix abstractmethod
#
schema #
Returns the schema of the API operation as a dictionary of channel names and channel objects.
add_middleware #
get_name abstractmethod
#
get_description #
get_payloads #
Source code in faststream/broker/publisher/usecase.py
set_test #
Turn publisher to testing mode.
Source code in faststream/broker/publisher/usecase.py
reset_test #
subscriber_property abstractmethod
#
get_schema #
Source code in faststream/redis/publisher/asyncapi.py
create staticmethod
#
create(*, channel, list, stream, headers, reply_to, broker_middlewares, middlewares, title_, description_, schema_, include_in_schema)