View Source Google.Pubsub.Subscription (google_grpc_pubsub v0.1.11)

Link to this section Summary

Link to this section Types

@type opts() :: [project: String.t(), subscription: String.t()]
@type t() :: Google.Pubsub.V1.Subscription.t()

Link to this section Functions

Link to this function

acknowledge(subscription, messages)

View Source
@spec acknowledge(t(), Google.Pubsub.Message.t() | [Google.Pubsub.Message.t()]) ::
  :ok | {:error, any()}
@spec create(project: String.t(), subscription: String.t(), topic: String.t()) ::
  {:ok, t()} | {:error, any()}
@spec delete(t()) :: :ok | {:error, any()}
@spec get(opts()) :: {:ok, t()} | {:error, any()}
@spec id(opts()) :: String.t()
Link to this function

pull(subscription, opts \\ [])

View Source
@spec pull(t(), [{:max_messages, number()}]) ::
  {:ok, [Google.Pubsub.Message.t()]} | {:error, any()}