Packages

A simple somewhat opinionated consul config provider for elixir 1.9+ releases.

Current section

8 Versions

Jump to

Compare versions

15 files changed
+109 additions
-98 deletions
  @@ -1,21 +1,24 @@
1 1 # ConsulConfigProvider
2 2
3 + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4 + [![Hex pm](http://img.shields.io/hexpm/v/consul_config_provider.svg?style=flat)](https://hex.pm/packages/consul_config_provider)
5 + [![hexdocs.pm](https://img.shields.io/badge/docs-latest-green.svg?style=flat)](https://hexdocs.pm/consul_config_provider/)
6 +
3 7 ## Installation
4 8
5 - If [available in Hex](https://hex.pm/docs/publish), the package can be installed
6 - by adding `consul_config_provider` to your list of dependencies in `mix.exs`:
9 + The package can be installed by adding `consul_config_provider` to your list of dependencies in `mix.exs`:
7 10
8 11 ```elixir
9 12 def deps do
10 13 [
11 - {:consul_config_provider, "~> 0.1.0"}
14 + {:consul_config_provider, "~> 0.1.0"},
15 + {:mojito, "~> 0.3.0"},
12 16 ]
13 17 end
14 18 ```
19 + * Only add in mojito if you want to use the default http behaviour and not define your own client
15 20
16 - Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
17 - and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
18 - be found at [https://hexdocs.pm/consul_config_provider](https://hexdocs.pm/consul_config_provider).
21 + The docs can be found at [https://hexdocs.pm/consul_config_provider](https://hexdocs.pm/consul_config_provider).
19 22
20 23 ### Sample Usage
  @@ -1,4 +1,4 @@
1 - dist/search_items-447df72aab.js
1 + dist/search_items-ff5b7974aa.js
2 2 dist/html-9914b37a220eb2c313b6.css
3 3 dist/html-9914b37a220eb2c313b6.js
4 4 dist/html/fonts/icomoon.eot
  @@ -5,8 +5,8 @@
5 5 <meta http-equiv="x-ua-compatible" content="ie=edge">
6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 7 <meta name="generator" content="ExDoc v0.21.1">
8 - <meta name="project" content="Consul Config Provider v0.1.0">
9 - <title>404 — Consul Config Provider v0.1.0</title>
8 + <meta name="project" content="Consul Config Provider v0.1.1">
9 + <title>404 — Consul Config Provider v0.1.1</title>
10 10 <link rel="stylesheet" href="dist/html-9914b37a220eb2c313b6.css" />
11 11 <link rel="canonical" href="https://hexdocs.pm/consul_config_provider/404.html" />
12 12 <script src="dist/sidebar_items-0117df032b.js"></script>
  @@ -44,7 +44,7 @@
44 44 <a href="https://github.com/blueshift-labs/consul_config_provider" class="sidebar-projectName">
45 45 Consul Config Provider </a>
46 46 <h2 class="sidebar-projectVersion">
47 - v0.1.0
47 + v0.1.1
48 48 </h2>
49 49 </div>
50 50 </div>
  @@ -5,8 +5,8 @@
5 5 <meta http-equiv="x-ua-compatible" content="ie=edge">
6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 7 <meta name="generator" content="ExDoc v0.21.1">
8 - <meta name="project" content="Consul Config Provider v0.1.0">
9 - <title>Client.Mojito — Consul Config Provider v0.1.0</title>
8 + <meta name="project" content="Consul Config Provider v0.1.1">
9 + <title>Client.Mojito — Consul Config Provider v0.1.1</title>
10 10 <link rel="stylesheet" href="dist/html-9914b37a220eb2c313b6.css" />
11 11 <link rel="canonical" href="https://hexdocs.pm/consul_config_provider/Client.Mojito.html" />
12 12 <script src="dist/sidebar_items-0117df032b.js"></script>
  @@ -44,7 +44,7 @@
44 44 <a href="https://github.com/blueshift-labs/consul_config_provider" class="sidebar-projectName">
45 45 Consul Config Provider </a>
46 46 <h2 class="sidebar-projectVersion">
47 - v0.1.0
47 + v0.1.1
48 48 </h2>
49 49 </div>
50 50 </div>
  @@ -65,7 +65,7 @@ Consul Config Provider </a>
65 65 <div id="content" class="content-inner">
66 66
67 67 <h1>
68 - <small class="app-vsn">Consul Config Provider v0.1.0</small>
68 + <small class="app-vsn">Consul Config Provider v0.1.1</small>
69 69 Client.Mojito <a href="https://github.com/blueshift-labs/consul_config_provider/blob/master/lib/client/mojito.ex#L1" title="View Source" class="view-source" rel="help">
70 70 <span class="icon-code" aria-hidden="true"></span>
71 71 <span class="sr-only">View Source</span>
  @@ -5,8 +5,8 @@
5 5 <meta http-equiv="x-ua-compatible" content="ie=edge">
6 6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 7 <meta name="generator" content="ExDoc v0.21.1">
8 - <meta name="project" content="Consul Config Provider v0.1.0">
9 - <title>ConsulConfigProvider — Consul Config Provider v0.1.0</title>
8 + <meta name="project" content="Consul Config Provider v0.1.1">
9 + <title>ConsulConfigProvider — Consul Config Provider v0.1.1</title>
10 10 <link rel="stylesheet" href="dist/html-9914b37a220eb2c313b6.css" />
11 11 <link rel="canonical" href="https://hexdocs.pm/consul_config_provider/ConsulConfigProvider.html" />
12 12 <script src="dist/sidebar_items-0117df032b.js"></script>
  @@ -44,7 +44,7 @@
44 44 <a href="https://github.com/blueshift-labs/consul_config_provider" class="sidebar-projectName">
45 45 Consul Config Provider </a>
46 46 <h2 class="sidebar-projectVersion">
47 - v0.1.0
47 + v0.1.1
48 48 </h2>
49 49 </div>
50 50 </div>
  @@ -65,7 +65,7 @@ Consul Config Provider </a>
65 65 <div id="content" class="content-inner">
66 66
67 67 <h1>
68 - <small class="app-vsn">Consul Config Provider v0.1.0</small>
68 + <small class="app-vsn">Consul Config Provider v0.1.1</small>
69 69 ConsulConfigProvider <a href="https://github.com/blueshift-labs/consul_config_provider/blob/master/lib/consul_config_provider.ex#L1" title="View Source" class="view-source" rel="help">
70 70 <span class="icon-code" aria-hidden="true"></span>
71 71 <span class="sr-only">View Source</span>
Loading more files…