Skip to content

Instantly share code, notes, and snippets.

@paveltyk
Last active January 6, 2021 11:18
Show Gist options
  • Save paveltyk/abb8253f2af09d6b3e77d1c6e229d322 to your computer and use it in GitHub Desktop.
Save paveltyk/abb8253f2af09d6b3e77d1c6e229d322 to your computer and use it in GitHub Desktop.
# config/config.exs
import Config
config :goth, json: File.read!("priv/creds.json")
subscription = "projects/gcs-pubsub-1/subscriptions/api-subscription"
config :google_storage,
producer_module: {BroadwayCloudPubSub.Producer, subscription: subscription}
defmodule GoogleStorage.MixProject do
# ...
defp deps do
[
{:broadway_cloud_pub_sub, "~> 0.6.0"},
{:goth, "~> 1.0"}
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment