Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose a way for plugins to request configuration data #28

Open
jechols opened this issue Jul 23, 2019 · 1 comment
Open

Expose a way for plugins to request configuration data #28

jechols opened this issue Jul 23, 2019 · 1 comment

Comments

@jechols
Copy link
Member

jechols commented Jul 23, 2019

Plugins having to include viper and rely on global state is unnecessary and potentially dangerous (as global state tends to be). Plugins should be able to simply request a configuration value, such as "TracerOut", and the app should return the value, looking it up in config as well as the environment.

@jechols
Copy link
Member Author

jechols commented Jul 23, 2019

Semi-related: #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant