BroadwayCloudPubSub v0.1.3 BroadwayCloudPubSub.Token behaviour View Source

A generic behaviour to get an access token for Google Cloud Pub/Sub.

This module defines callbacks to get an access token for Google Cloud Pub/Sub. Modules that implement this behaviour should be passed as the :token_module option from BroadwayCloudPubSub.Producer.

Link to this section Summary

Link to this section Callbacks

Link to this callback

token(scope) View Source
token(scope :: String.t()) :: {:ok, String.t()} | :error