View Source NLdoc.Stream.ConsumerServer (NLdoc.Stream v1.0.0)

A GenServer responsible for managing message consumption and forwarding events to the calling Plug process.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

filter_value_opt()

@type filter_value_opt() :: {:filter_value, String.t() | nil}

offset_opt()

@type offset_opt() :: {:offset, integer() | :first | nil}

opt()

@type opt() :: offset_opt() | filter_value_opt()

state()

@type state() :: %{
  caller: pid(),
  id: String.t(),
  channel: AMQP.Channel.t(),
  queue: String.t(),
  consumer_tag: String.t()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()