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

Support for using speedbump as a library #8

Closed
kffl opened this issue Jul 19, 2022 · 0 comments · Fixed by #11
Closed

Support for using speedbump as a library #8

kffl opened this issue Jul 19, 2022 · 0 comments · Fixed by #11
Assignees
Labels
enhancement New feature or request

Comments

@kffl
Copy link
Owner

kffl commented Jul 19, 2022

As of now, speedbump can only be used as a standalone program. There are some potential use cases for calling speedbump as an external library from within other Go code (i.e. for the purpose of adding programmatic TCP delay during a e2e test or a load test).

In order for speedbump to be used as a library, the following changes need to be made:

  • adding support for graceful shutdown (i.e. .Stop() method on a Sppedbump instance), related to Graceful shutdown #6
  • adding required go docs comments to exported members
  • exporting some currently unexported config struct fields
@kffl kffl added the enhancement New feature or request label Jul 19, 2022
@kffl kffl self-assigned this Jul 19, 2022
@kffl kffl closed this as completed in #11 Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant