eventstore_client v0.1.1 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(response, relation)

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
parse(body)

Parse a stream json events response body into a Response object