https://github.com/progfay/kataribe-playground
Playground for kataribe with Nginx
https://github.com/progfay/kataribe-playground
Last synced: 9 months ago
JSON representation
Playground for kataribe with Nginx
- Host: GitHub
- URL: https://github.com/progfay/kataribe-playground
- Owner: progfay
- Created: 2021-05-04T06:06:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T09:38:26.000Z (over 4 years ago)
- Last Synced: 2025-01-30T20:16:14.790Z (11 months ago)
- Language: Go
- Size: 3.05 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kataribe playground
Playground for [`kataribe`](https://github.com/matsuu/kataribe)
## Build Server
```sh
docker-compose up
```
And listen on localhost:8080
## Send HTTP Requests
Edit `client/main.go`:
```go
const (
concurrency = 4
duration = 10 * time.Second
host = "http://localhost:8080"
)
var requestLines = []request.RequestLine{
request.NewRequestLine("GET", host, "/"),
request.NewRequestLine("GET", host, "/users"),
request.NewRequestLine("GET", host, "/users/:id"),
}
```
And send HTTP requests:
```sh
cd client && make
```
## Play `kataribe`
```sh
cat logs/access.log | kataribe -f kataribe.toml
```