iotaledger / evil-tools

Apache License 2.0
2 stars 1 forks source link

Wrap evil-spammer with HTTP server #10

Closed jkrvivian closed 8 months ago

jkrvivian commented 11 months ago

Having this wrapper outside allows us to spawn the spammer via HTTP requests. A new spammer instance is launched for each start command, similar to the interactive mode.

For example:

localhost:8080/spammer?cmd=start&scenario=ds&duration=30s
localhost:8080/spammer?cmd=stop
### Tasks
- [ ] HTTP server (ref: inx-spammer)
- [ ] Wrap current options/flags into query parameters
- [ ] Make sure to have defaults set if flags are not provided
- [ ] Return `SpamDetails` as response
muXxer commented 8 months ago

We won't support that for now. Usage via CLI is totally fine for our usecase.