mini confd lib, based on confd/memkv/secconf/logger
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
etcdv3
metad
testdata/confd
.editorconfig
.gitignore
.travis.yml
LICENSE
LICENSE-confd
LICENSE-memkv
LICENSE-secconf
Makefile
README.md
application.go
backend.go
backends_env_test.go
backends_toml.go
backends_toml_test.go
confd-backend.toml
confd.toml
config.go
config_test.go
example_test.go
gen_tmpl_func_list.go
go.mod
go.sum
kvstore.go
kvstore_test.go
logger.go
options.go
processor.go
resource.go
resource_processor.go
resource_test.go
secconf.go
secconf_keyring_test.go
secconf_test.go
testing_test.go
tmpl_funcs.go
tmpl_funcs_zz.go
tmpl_test.go
util.go
util_posix.go
util_test.go
util_windows.go

README.md

libconfd

Build Status Go Report Card GoDoc License

mini confd lib, based on confd/memkv/secconf/logger.

Example

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