NSQ.Lookupd (elixir_nsq v1.2.0)

Summary

Types

All lookupd responses should return a map with these values. If the response is not of that form, it should be normalized into that form.

Types

@type response() :: %{
  data: binary(),
  headers: [any()],
  status_code: integer(),
  status_txt: binary()
}

All lookupd responses should return a map with these values. If the response is not of that form, it should be normalized into that form.

Functions

Link to this function

nsqds_with_topic(lookupds, topic)

@spec nsqds_with_topic([NSQ.Connection.host_with_port()], String.t()) :: [
  NSQ.Connection.host_with_port()
]
Link to this function

topics_from_lookupd(arg, topic)

@spec topics_from_lookupd(NSQ.Connection.host_with_port(), String.t()) :: response()