consul v1.1.0 Consul.Event

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

Types

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

Functions

fire(name, payload \\ "", opts \\ [])
fire(binary, binary, Keyword.t) :: Consul.Endpoint.response
from_response(map)
from_response(Consul.Response.t) :: [t]

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

last_time(events)
last_time([t]) :: integer | nil

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

list(opts \\ [])
sort(events)
sort([t]) :: [t]

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