A package to make it easy to integrate with EventRelay in Elixir applications.
WARNING: This is very alpha. Expect breaking changes.
If available in Hex, the package can be installed
by adding eventrelay_client
to your list of dependencies in mix.exs
:
def deps do
[
# until we start releasing versioned updates to the package you should
# pull from the github repo
{:eventrelay_client, github: "eventrelay/eventrelay_client_elixir", branch: "main"}
# {:eventrelay_client, "~> 0.1.0"}
]
end
If using the Audit
module please make sure to set the ER_CLIENT_HMAC_SECRET
. This value is used to calculate SHA256 HMAC for the event data to ensure the authenticity and integrity of the event data. Whatever value you set for this don't lose it otherwise you will not be able to verify the authenticity and integrity your audit events in EventRelay.
Documentation can be generated with ExDoc and published on HexDocs. Docs can be found at https://hexdocs.pm/eventrelay_client/readme.html.