exconsul v1.0.0 Consul.Event

Link to this section Summary

Functions

Build a list of Consul.Event from the given Consul.Response

Return the l_time of the most recent Consul.Event in the given list

Sort a list of Consul.Event by their l_time field

Link to this section Types

Link to this type t()
t() :: %{
  id: binary(),
  name: binary(),
  payload: binary() | nil,
  service_filter: binary(),
  tag_filter: binary(),
  version: integer(),
  l_time: integer()
}

Link to this section Functions

Link to this function fire(name, payload \\ "", opts \\ [])
Link to this function from_response(map)
from_response(Consul.Response.t()) :: [t()]

Build a list of Consul.Event from the given Consul.Response.

Link to this function last_time(events)
last_time([t()]) :: integer() | nil

Return the l_time of the most recent Consul.Event in the given list.

Link to this function sort(events)
sort([t()]) :: [t()]

Sort a list of Consul.Event by their l_time field.