An open API service indexing awesome lists of open source software.

https://github.com/hexedpackets/exconsul

Elixir library for interacting with Consul.
https://github.com/hexedpackets/exconsul

Last synced: over 1 year ago
JSON representation

Elixir library for interacting with Consul.

Awesome Lists containing this project

README

          

Consul
======

A wrapper around [the consul API](www.consul.io/docs/agent/http.html). Contains many convenience functions for working with the KV store.

### Installation
Add Consul as a dependency in your mix.exs file

```elixir
def application do
[applications: [:consul]]
end

defp deps do
[
{:consul, github: "hexedpackets/exconsul"}
]
end
```

### Configuration
There are two values that can be set to configure this library:

```elixir
# Basis for the endpoint to send HTTP requests.
config :consul, :server, "http://localhost:8500"
# Default datacenter in queries that don't specify one.
config :consul, :datacenter, "dc1"
```