go-archaius icon indicating copy to clipboard operation
go-archaius copied to clipboard

a dynamic configuration framework used in distributed system

Results 12 go-archaius issues
Sort by recently updated
recently updated
newest added

go mod download ```txt go: github.com/go-chassis/[email protected] requires github.com/go-chassis/[email protected] requires github.com/go-chassis/[email protected]: invalid pseudo-version: does not match version-control timestamp (expected 20180927015433) ```

bug

如环境变量为:CONFIG_TEST,则可以通过config.test,进行查询

读取环境变量值时,支持类似 shell 的 ${env^} 首字母转大写、${env,} 首字母转小写语法

读配置的过程, 前后要经过好多次锁,而且会受 source 实现影响。改为直接缓存当前的配置值,读取时从当前缓存读。 修改前: >> go test -bench=^Benchmark -benchtime=5s goos: darwin goarch: amd64 pkg: github.com/go-chassis/go-archaius/benchmark BenchmarkFileSource-8 5213296 1142 ns/op BenchmarkFileSourceParallelism-8 18202258 347 ns/op 修改后: >> go test -bench=^Benchmark -benchtime=5s...

**Describe the bug** A clear and concise description of what the bug is. use archaius to parse configmap ``` apiVersion: v1 kind: ConfigMap metadata: name: roboartisan-robooperationmanagement-config labels: name: roboartisan-robooperationmanagement-config data:...

bug

apollo config.yaml 命名空间配置示例 ``` yaml a: b: c: 1 ``` apollo 支持 yaml json 等格式的命名空间, 目前的做法是直接作为一个配置, 如 `config.yaml` 命名空间会被读取成 key 为 `config.yaml.content`, value 为 yaml 内容的一个配置. 希望可以实现解析, 按照 a.b.c 这样的方式直接读取到配置内容

to reduce the dependencies and make the logging performance better, I suggest to replace open-logging with zerolog(https://github.com/rs/zerolog)

https://github.com/go-chassis/go-archaius/blob/4b83c04a7796963e1a83b70e0f699f5c7a44093a/source/unmarshal.go#L91 在使用UnmarshalConfig的时候,如果yaml文件或者任意一个配置源获取不到配置,该项字段应该赋予零值,指针类型赋予nil。

类似https://github.com/huaweicloud/spring-cloud-huawei/pull/154/commits/c5f148e87f7f8d21c8452770e1a374376130d3ce