https://github.com/purplebooth/flappy-endpoint-golang
Return a 200, 404, 500 or a slow response at random intervals.
https://github.com/purplebooth/flappy-endpoint-golang
Last synced: over 1 year ago
JSON representation
Return a 200, 404, 500 or a slow response at random intervals.
- Host: GitHub
- URL: https://github.com/purplebooth/flappy-endpoint-golang
- Owner: PurpleBooth
- License: mit
- Created: 2016-10-02T10:00:38.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-01T08:55:33.000Z (almost 2 years ago)
- Last Synced: 2025-01-30T10:44:15.746Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# A flappy endpoint: Let's go!
A go version of the [flappy endpoint](https://github.com/PurpleBooth/flappy-endpoint) from [Ben Wain](https://github.com/LoveSoftware)'s [Logstash talk](https://github.com/LoveSoftware/application-logging-with-logstash) which is useful for training.
It returns a 200, 404, 500 or a slow response at random intervals.
## Getting Started
These instructions will get you a copy of the project up and running on your local machine for development. I recommend
running this on a docker based environment, so your prod is the same as your dev.
### Prerequisities
You'll need [docker](https://www.docker.com/products/overview).
### Trying it out
Then run the application with
```
docker-compose up
```
You can then see the application running by
```
curl http://$(boot2docker ip):8080/flappy
Slow response
```
## Contributing
Feel free to submit pull requests and issues. If it's a particularly large PR, you may wish to discuss it in an issue first.
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.
## Versioning
We use [SemVer](http://semver.org/) for the version tags available See the tags on this repository.
## Authors
See the list of [contributors](https://github.com/PurpleBooth/flappy-endpoint-golang/contributors) who participated in this project.