elixir client for Toxiproxy
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
config
lib
test
.gitignore
.travis.yml
README.md
mix.exs
mix.lock

README.md

Toxiproxy

Build Status Hex.pm

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