mini confd lib, based on confd/memkv/secconf/logger.
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)
}
$ go run miniconfd.go -h
See miniconfd.go