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

Link to this section Summary

Link to this section Types

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

Link to this section Callbacks

@callback handle_messages([Google.Pubsub.Message.t()]) :: [Google.Pubsub.Message.t()]

Link to this section Functions

Link to this function

close_stream(stream, subscription)

View Source
Link to this function

create_stream(subscription, request_opts)

View Source
Link to this function

receive_messages(stream, handle_messages)

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