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.
- Host: GitHub
- URL: https://github.com/hexedpackets/exconsul
- Owner: hexedpackets
- License: apache-2.0
- Created: 2015-07-14T16:30:03.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-22T21:51:38.000Z (over 9 years ago)
- Last Synced: 2025-01-21T11:45:01.350Z (over 1 year ago)
- Language: Elixir
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"
```