Skip to content

Add predefined field whitelist validation and parallel processing for dump#9

Merged
SeanDragon merged 5 commits into
FofaInfo:mainfrom
Biodog06:main
Mar 9, 2026
Merged

Add predefined field whitelist validation and parallel processing for dump#9
SeanDragon merged 5 commits into
FofaInfo:mainfrom
Biodog06:main

Conversation

@Biodog06
Copy link
Copy Markdown
Contributor

@Biodog06 Biodog06 commented Mar 9, 2026

Add predefined field whitelist validation.

Additionally, implemented concurrent query processing in the dump command by introducing workers and rate limiting, significantly improving data extraction performance.

Key changes:

  • Created official field whitelists (ValidFieldsAll and ValidFieldsNext) in fields.go.
  • Added validation logic (ValidateFieldsAll, ValidateFieldsNext) and integrated it into the search, dump, and random commands.
  • Enhanced the dump command with a worker pool for concurrency and thread-safe data writing mechanics.
  • Included comprehensive unit test coverage for the validation and concurrency logic in fields_test.go and dump_test.go.
  • Updated README.md and README_ZH.md to natively reference the official FOFA API documentation URLs for valid fields.

Biodog06 added 5 commits March 9, 2026 10:54
… dump

Additionally, implemented concurrent query processing in the `dump` command by introducing workers and rate limiting, significantly improving data extraction performance.

Key changes:
- Created official field whitelists (ValidFieldsAll and ValidFieldsNext) in fields.go.
- Added validation logic (ValidateFieldsAll, ValidateFieldsNext) and integrated it into the search, dump, and random commands.
- Enhanced the `dump` command with a worker pool for concurrency and thread-safe data writing mechanics.
- Included comprehensive unit test coverage for the validation and concurrency logic in fields_test.go and dump_test.go.
- Updated README.md and README_ZH.md to natively reference the official FOFA API documentation URLs for valid fields.
@SeanDragon SeanDragon merged commit a0265e4 into FofaInfo:main Mar 9, 2026
1 check passed
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