Toxiproxy

Build Status

elixir client for toxiproxy

Installation

Add toxiproxy to your list of dependencies in mix.exs:

def deps do
  [{:toxiproxy, "~> 0.1.0"}]
end

Add the hostname and adapter in the config file.

config :toxiproxy,
  host: "http://127.0.0.1:8474",
  adapter: Tesla.Adapter.Hackney

See tesla for the list of supported adapters.

Ensure toxiproxy and the http library are started before your application:

def application do
  [applications: [:hackney, :toxiproxy]]
end