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

https://github.com/devimteam/consul

Golang Consul Client
https://github.com/devimteam/consul

Last synced: 5 months ago
JSON representation

Golang Consul Client

Awesome Lists containing this project

README

          

### Tiny consul wrapper

This wrapper works with structures and allows to unmarshal consul configuration right into your structure.

If key is not in consul, wrappers adds it and sets default value from structures field tags.

### Install

To get the package, execute:
```bash
go get gopkg.in/devimteam/consul.v3
```

To import this package, add the following line to your code:
```go
import "gopkg.in/devimteam/consul.v3"
```

### Environment variables

##### GROUP_NAME
used for setting up global folder for keys. All keys will be accessed by path like GROUP_NAME/key