google_grpc_pubsub v0.3.1
  • Pages
  • Modules

    View Source Google.Pubsub.Subscriber behaviour (google_grpc_pubsub v0.3.1)

    Link to this section Summary

    Types

    t()

    Callbacks

    handle_messages(list, t)

    Functions

    close_stream(stream, subscription)
    create_stream(subscription, request_opts)
    receive_messages(stream, subscription, handle_messages)

    Link to this section Types

    Link to this type

    t()

    View Source
    @type t() :: %Google.Pubsub.Subscriber{
      request_opts: Keyword.t(),
      subscription: Google.Pubsub.Subscription.t()
    }

    Link to this section Callbacks

    Link to this callback

    handle_messages(list, t)

    View Source
    @callback handle_messages([Google.Pubsub.Message.t()], Google.Pubsub.Subscription.t()) ::
      [
        Google.Pubsub.Message.t()
      ]

    Link to this section Functions

    Link to this function

    close_stream(stream, subscription)

    View Source
    @spec close_stream(GRPC.Client.Stream.t(), Google.Pubsub.Subscription.t()) ::
      GRPC.Client.Stream.t()
    Link to this function

    create_stream(subscription, request_opts)

    View Source
    @spec create_stream(Google.Pubsub.Subscription.t(), Keyword.t()) ::
      GRPC.Client.Stream.t()
    Link to this function

    receive_messages(stream, subscription, handle_messages)

    View Source
    @spec receive_messages(
      GRPC.Client.Stream.t(),
      Google.Pubsub.Subscription.t(),
      function()
    ) ::
      GRPC.Client.Stream.t()

    On Hex.pm: Package Preview (current file)

    Built using ExDoc (v0.28.4) for the Elixir programming language