Packages

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

Current section

8 Versions

Jump to

Compare versions

15 files changed
+71 additions
-53 deletions
  @@ -12,7 +12,7 @@ The package can be installed by adding `consul_config_provider` to your list of
12 12 def deps do
13 13 [
14 14 {:consul_config_provider, "~> 0.1.0"},
15 - {:mojito, "~> 0.3.0"},
15 + {:mojito, "~> 0.6.0"},
16 16 ]
17 17 end
18 18 ```
  @@ -45,4 +45,4 @@ releases: [
45 45 * The `CONSUL_HOST` env var is used for the host to talk to consul and defaults to localhost
46 46 * The `CONSUL_PORT` env var is used for the port to talk to consul and defaults to 8500
47 47 * The http_module is dynamic and you can specify your own if you choose to do so. Just implement the HTTP behaviour and make your implementation return an `{:ok, json_body_binary_string}` as per the mojito example which will be the fallback. You might have to deal with coercing the input keyword list for the mojito arguments to support the client you are using, as well. You also need to set `config :consul_config_provider, :http_module, Client.YourClient` pointing to your client in your configs.
48 - * Dependency-related configs are namespaced with their own application name while other configs use the input app_name for their namespace
\ No newline at end of file
48 + * Dependency-related configs are namespaced with their own application name while other configs use the input app_name for their namespace
  @@ -1,4 +1,4 @@
1 - dist/search_items-ff5b7974aa.js
1 + dist/search_items-462ce5577f.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.1">
9 - <title>404 — Consul Config Provider v0.1.1</title>
8 + <meta name="project" content="Consul Config Provider v0.1.2">
9 + <title>404 — Consul Config Provider v0.1.2</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.1
47 + v0.1.2
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.1">
9 - <title>Client.Mojito — Consul Config Provider v0.1.1</title>
8 + <meta name="project" content="Consul Config Provider v0.1.2">
9 + <title>Client.Mojito — Consul Config Provider v0.1.2</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.1
47 + v0.1.2
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.1</small>
68 + <small class="app-vsn">Consul Config Provider v0.1.2</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.1">
9 - <title>ConsulConfigProvider — Consul Config Provider v0.1.1</title>
8 + <meta name="project" content="Consul Config Provider v0.1.2">
9 + <title>ConsulConfigProvider — Consul Config Provider v0.1.2</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.1
47 + v0.1.2
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.1</small>
68 + <small class="app-vsn">Consul Config Provider v0.1.2</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…