https://github.com/devimteam/consul
Golang Consul Client
https://github.com/devimteam/consul
Last synced: 5 months ago
JSON representation
Golang Consul Client
- Host: GitHub
- URL: https://github.com/devimteam/consul
- Owner: devimteam
- Fork: true (l-vitaly/consul)
- Created: 2017-06-30T14:28:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T08:07:05.000Z (over 7 years ago)
- Last Synced: 2025-11-01T16:10:25.390Z (8 months ago)
- Language: Go
- Size: 37.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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