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

Refactor project structure #4

Merged
merged 2 commits into from
Apr 21, 2024
Merged

Refactor project structure #4

merged 2 commits into from
Apr 21, 2024

Conversation

farzadghanei
Copy link
Owner

Moved all chkok logic Go files under the internal package, as these are supposed to be used as structured body of the chkok program, not a library that needs to be exposed and imported.

Rework the http mode away from main package and extract the logic to a new runner_modes package.
Also introduce a way to properly test the http mode using shutdown_after_requests config.

- Moved the check-running code into separate functions for modular
  design and enhanced code resuability in 'chkok.go' and 'run_modes.go'
- Add option to shutdown the http server after a number of requests,
  useful for testing
Moved all chkok logic Go files under the internal package,
as these are supposed to be used as structured body of the chkok
program, not a library that needs to be exposed and imported
@farzadghanei farzadghanei merged commit 3bfadd6 into main Apr 21, 2024
2 checks passed
@farzadghanei farzadghanei deleted the refactor-webrunner branch May 4, 2024 11:16
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.

1 participant