LogicPublisher
faststream.redis.publisher.usecase.LogicPublisher #
LogicPublisher(*, reply_to, headers, broker_middlewares, middlewares, schema_, title_, description_, include_in_schema)
Bases: PublisherUsecase[UnifyRedisDict]
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 #
create abstractmethod
staticmethod
#
get_name abstractmethod
#
get_description #
get_schema abstractmethod
#
get_payloads #
Source code in faststream/broker/publisher/usecase.py
set_test #
Turn publisher to testing mode.