Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chai2010/libconfd
mini confd lib, based on confd/memkv/secconf/logger
https://github.com/chai2010/libconfd
Last synced: 3 months ago
JSON representation
mini confd lib, based on confd/memkv/secconf/logger
- Host: GitHub
- URL: https://github.com/chai2010/libconfd
- Owner: chai2010
- License: apache-2.0
- Created: 2019-02-08T10:01:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-05T09:49:39.000Z (over 4 years ago)
- Last Synced: 2023-08-13T06:51:04.295Z (over 1 year ago)
- Language: Go
- Size: 59.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
- *Go语言QQ群: 102319854, 1055927514*
- *凹语言(凹读音“Wa”)(The Wa Programming Language): https://github.com/wa-lang/wa*----
# libconfd
[![Build Status](https://travis-ci.org/chai2010/libconfd.svg)](https://travis-ci.org/chai2010/libconfd)
[![Go Report Card](https://goreportcard.com/badge/github.com/chai2010/libconfd)](https://goreportcard.com/report/github.com/chai2010/libconfd)
[![GoDoc](https://godoc.org/github.com/chai2010/libconfd?status.svg)](https://godoc.org/github.com/chai2010/libconfd)
[![License](http://img.shields.io/badge/license-apache%20v2-blue.svg)](https://github.com/chai2010/libconfd/blob/master/LICENSE)mini confd lib, based on [confd](https://github.com/kelseyhightower/confd)/[memkv](https://github.com/kelseyhightower/memkv)/[secconf](https://github.com/xordataexchange/crypt)/[logger](https://github.com/chai2010/logger).
## Example
```go
package mainimport (
"github.com/chai2010/libconfd"
)func main() {
cfg := libconfd.MustLoadConfig("./confd.toml")backendConfig := libconfd.MustLoadBackendConfig("./confd-backend.toml")
backendClient := libconfd.MustNewBackendClient(backendConfig)libconfd.NewProcessor().Run(cfg, backendClient)
}
```## miniconfd (only support toml/etcd backend)
```
$ go run miniconfd.go -h
```See [etcdv3/miniconfd-etcdv3/miniconfd.go](etcdv3/miniconfd-etcdv3/miniconfd.go)