HttpPubsubProducer

class Object
trait Matchable
class Any

Value members

Concrete methods

def resource[F[_] : Logger, A : MessageEncoder](projectId: ProjectId, topic: Topic, googleServiceAccountPath: Option[String], config: PubsubHttpProducerConfig[F], httpClient: Client[F]): Resource[F, PubsubProducer[F, A]]

Create an HTTP PubSub producer which does not batch.

Create an HTTP PubSub producer which does not batch.

Value parameters:
googleServiceAccountPath

path to the Google Service account file (json), if not specified then the GCP metadata endpoint is used to retrieve the default service account access token See the following for documentation on GCP metadata endpoint and service accounts:

projectId

google cloud project id

topic

the topic to produce to

Source:
HttpPubsubProducer.scala