This is just an alternative to using https://httpstat.us/
As the alternative suffers from stability reason, I wanted to stop using it.
The service is needed for testing.
Below we outline all the endpoints:
Allows to set the status code of the response.
GET /v1/status/{code}
[!NOTE]
code
is a number, e.g 200, 400, etc.
Parameter | Description |
---|---|
sleep | The duration to sleep please check out https://pkg.go.dev/time#ParseDuration |
The status with a description as text.
Example:
200 OK
The system defines a way to monitor all of it’s dependencies.
To configure we just need the have the following configuration:
health:
duration: 1s (how often to check)
timeout: 1s (when we should timeout the check)
Since we are advocating building microservices, you would normally use a container orchestration system.
If you would like to contribute, here is how you can get started.
The project follows the structure in golang-standards/project-layout.
Please make sure that you have the following installed:
This project favours the Uber Go Style Guide
The get yourself setup, please run the following:
make setup
To make sure everything compiles for the app, please run the following:
make build-test
To run all the features, please run the following:
make features
To see what has changed, please have a look at CHANGELOG.md