Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4thel00z/latencyd
https://github.com/4thel00z/latencyd
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/4thel00z/latencyd
- Owner: 4thel00z
- License: gpl-3.0
- Created: 2022-03-20T18:28:36.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-20T18:42:32.000Z (almost 3 years ago)
- Last Synced: 2024-11-24T16:52:02.686Z (about 1 month ago)
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# latencyd
## Motivation
A simple http server to simulate network latency.
## Installation
```
go install github.com/4thel00z/latencyd/...@latest
```## Usage
Latencyd is written for and by dumb people.
It has three config flags and two endpoints.The two endpoints are both `GET` endpoints, exposed under:
- `/fixed` and
- `/random`One is called `fixed`. It is for sleeping for - you guessed it, a fixed time.
The `fixed` config flag just influences the `/fixed` endpoint.The other two `start` and `end` are used as such:
The server will sleep for `start` ms. Then it will sleep for a random value in the interval `[0, end - start)` ms.## Invocation
After installing via the line above, the server can be invoked as such:
```
latencyd [--fixed ] [--start ] [--end ]
```## License
This project is licensed under the GPL-3 license.