Grafana/InfluxData style config overrides based on environment variables
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forest 0949f7444c update grafana link 3 years ago
ReadMe.md update grafana link 3 years ago
override.go support gcfg tags 8 years ago
override_test.go Fix bugs: Wrong type of object failed silently and object graph with cycles caused stack overflow 8 years ago

ReadMe.md

Uses reflection to override values in an arbitrary object based on environment variables, following the convention outlined by Grafana/InfluxData.

Ripped from influxdb source code with some modifications.

See the test for a usage example.