View Source Google.Pubsub.Client (google_grpc_pubsub v0.5.0)

Link to this section Summary

Link to this section Functions

Link to this function

acknowledge(subscription_id, ack_ids)

View Source
Link to this function

create_subscription(topic_id, subscription_id)

View Source
@spec create_subscription(String.t(), String.t()) ::
  {:ok, Google.Pubsub.V1.Subscription.t()} | {:error, any()}
@spec create_topic(String.t()) :: {:ok, Google.Pubsub.V1.Topic.t()} | {:error, any()}
Link to this function

delete_subscription(subscription_id)

View Source
Link to this function

get_subscription(subscription_id)

View Source
@spec get_subscription(String.t()) ::
  {:ok, Google.Pubsub.V1.Subscription.t()} | {:error, any()}
@spec get_topic(String.t()) :: {:ok, Google.Pubsub.V1.Topic.t()} | {:error, any()}
Link to this function

publish(topic_id, messages)

View Source
@spec publish(String.t(), [Google.Pubsub.V1.PubsubMessage.t()]) ::
  {:ok, Google.Pubsub.V1.PublishResponse.t()} | {:error, any()}
Link to this function

pull(subscription_id, max_messages \\ 10)

View Source