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 #2063

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

add input_static_file plugin #2063

wants to merge 7 commits into from

Conversation

henryzhx8
Copy link
Collaborator

No description provided.

RegisterInputCreator(new StaticInputCreator<InputNetworkObserver>(), true);
RegisterInputCreator(new StaticInputCreator<InputNetworkSecurity>(), true);
RegisterInputCreator(new StaticInputCreator<InputProcessSecurity>(), true);
RegisterInputCreator(new StaticInputCreator<InputContainerStdio>(), false);
Copy link
Collaborator

Choose a reason for hiding this comment

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

连续两个bool参数有点太乱了,分不清。

是不是可以考虑把RegisterInputCreator改成两个函数?ONETIME、CONTINUOUS

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就是这次新加的

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 this pull request may close these issues.

2 participants