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

[Feature] Custom config handler, support callback when set mutable config at FE and BE #6508

Closed
ccoffline opened this issue Aug 25, 2021 · 0 comments · Fixed by #6577
Closed

Comments

@ccoffline
Copy link
Contributor

Is your feature request related to a problem? Please describe.
We need to custom query traffic limit rules in FE, but config can only be basic type and no callback. We need to compile the limit rules when set new limit rules config, and calculate all the rules at each query.

Describe the solution you'd like
Add a handler field at ConfField named handler to specify the class to use as callback function.
Call the handler when setting new config value. The default handler is the same as current.
Support all types config.

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

Successfully merging a pull request may close this issue.

1 participant