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

add input_static_file plugin && support onetime config #2063

Open
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

henryzhx8
Copy link
Collaborator

No description provided.

if (value.isNull()) {
hash ^= std::hash<std::string>{}("null");
} else if (value.isBool()) {
hash ^= std::hash<bool>{}(value.asBool());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为这里实在罗列所有类型,后面如果新增一个,如何类型,如何保证这里不漏改?

例如GetOptionalUInt64Param就是这次新加的

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是穷举了所有json支持的类型,除非lib新增了支持的类型,否则这里是不可能新增类型的。
Getxxx函数是有需要就增加的原则,所以一开始就没有要穷举

@henryzhx8 henryzhx8 added the feature New feature label Feb 11, 2025
@henryzhx8 henryzhx8 changed the title add input_static_file plugin add input_static_file plugin and support onetime config Apr 7, 2025
@henryzhx8 henryzhx8 changed the title add input_static_file plugin and support onetime config add input_static_file plugin && support onetime config Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants