https://github.com/openpitrix/libconfd
mini confd lib, based on confd/memkv/secconf/logger
https://github.com/openpitrix/libconfd
confd etcd libconfd metad metadata-server
Last synced: 5 months ago
JSON representation
mini confd lib, based on confd/memkv/secconf/logger
- Host: GitHub
- URL: https://github.com/openpitrix/libconfd
- Owner: openpitrix
- License: apache-2.0
- Created: 2018-02-17T21:51:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T00:56:30.000Z (over 3 years ago)
- Last Synced: 2025-08-15T15:40:48.568Z (10 months ago)
- Topics: confd, etcd, libconfd, metad, metadata-server
- Language: Go
- Homepage: https://godoc.org/openpitrix.io/libconfd
- Size: 255 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libconfd
[](https://travis-ci.org/openpitrix/libconfd)
[](https://goreportcard.com/report/openpitrix.io/libconfd)
[](https://godoc.org/openpitrix.io/libconfd)
[](https://github.com/openpitrix/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 main
import (
"openpitrix.io/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)