BroadwayCloudPubSub v0.1.3 BroadwayCloudPubSub.RestClient behaviour View Source
A generic behaviour to implement Pub/Sub Clients for BroadwayCloudPubSub.Producer
using the REST API.
This module defines callbacks to normalize options and receive message
from a Cloud Pub/Sub topic. Modules that implement this behaviour should be passed
as the :rest_client
option from BroadwayCloudPubSub.Producer
.
Link to this section Summary
Link to this section Types
Link to this type
messages()
View Source
messages()
View Source
messages() :: [Broadway.Message.t()]
messages() :: [Broadway.Message.t()]
Link to this section Callbacks
Link to this callback
init(opts) View Source
Link to this callback
receive_messages(demand, opts)
View Source
receive_messages(demand, opts)
View Source
receive_messages(demand :: pos_integer(), opts :: any()) :: messages()
receive_messages(demand :: pos_integer(), opts :: any()) :: messages()