Skip to content

ScoreVision/google_cloud_pub_sub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud PubSub Client

Publishes messages to Google Cloud PubSub.

Uses Goth for authentication. See docs for configuration.

Installation

Add google_cloud_pub_sub to your list of dependencies in mix.exs:

def deps do
  [
    {:google_cloud_pub_sub, git: "https://github.com/ReelCoaches/google_cloud_pub_sub.git"}
  ]
end

You will need to configure your credentials for your GCE account according to the instructions on the Goth README. If you would like to disable Goth when under test, you can add the following to your test.exs:

config :goth,
  disabled: true

Example Usage

topic = "projects/my-project/topics/my-topic"
message = %{"message" => "this is a test"}

{:ok, response} = GoogleCloudPubSub.publish_message(topic, message, nil)

About

Google Cloud PubSub Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages