Skip to content

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

Description

@ccoffline

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions