eventstore_client v0.1.0 EventStore.Response
Summary
Functions
Get link by relation from response, or nil of no relation by that name
Parse a stream json events response body into a Response object
Functions
Get link by relation from response, or nil of no relation by that name
iex> r = %EventStore.Response{links: [%EventStore.Response.Link{uri: "a", relation: "next"}]}
iex> EventStore.Response.get_link(r, "next")
"a"
iex> EventStore.Response.get_link(r, "none")
nil