Skip to content

Commit

Permalink
Adding Consul to README
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Jan 16, 2018
1 parent 4e95f98 commit ddbd218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,13 @@ loader := confita.NewLoader()
```
By default, a Confita loader loads all the keys from the environment.
A loader can take other configured backends as parameters. For now, only [etcd](https://github.com/coreos/etcd) is supported.
A loader can take other configured backends as parameters. For now, [etcd](https://github.com/coreos/etcd) and [Consul](https://www.consul.io/) are supported.
```go
loader := confita.NewLoader(
env.NewBackend(),
etcd.NewBackend(etcdClientv3, "namespace"),
consul.NewBackend(consulClient, "namespace"),
)
```
Expand Down

0 comments on commit ddbd218

Please sign in to comment.