Go to file
2018-12-03 22:00:26 -02:00
.gitignore ignore binary 2018-09-17 12:51:43 -03:00
.travis.yml add travis 2018-11-17 09:11:23 -02:00
capture.go less race conditions 2018-12-03 21:47:39 -02:00
config.go comment code 2018-12-01 20:59:33 -02:00
dashboard.go select last item on retry 2018-12-02 14:57:57 -02:00
go.mod exchange socketio for SSE 2018-11-25 16:23:43 -02:00
go.sum exchange socketio for SSE 2018-11-25 16:23:43 -02:00
LICENSE add curl button 2018-11-25 13:01:53 -02:00
main.go remove unnecessary line 2018-12-02 14:57:32 -02:00
main_test.go remove weird test 2018-12-03 22:00:26 -02:00
README.md add release tag 2018-11-28 07:05:20 -02:00

Capture is a reverse proxy that captures the network traffic and shows it in a dashboard

Build Status Github Release

Binaries / Executables

For ready-to-use executables for Windows, Linux and Mac, see Releases page

Running

./capture -url=https://example.com/

Configurations

param description
-url Required. Set the base url you want to capture
-port Set the proxy port. Default: 9000
-dashboard Set the dashboard's name. Default: dashboard
-max-captures Set the max number of captures to show in the dashboard. Default: 16

Using

If you set your base url as http://example.com/api, now http://localhost:9000 points to that address. Hence, calling http://localhost:9000/users/1 is like calling http://example.com/api/users/1

Capture saves all requests and responses so that you can see them in the dashboard

Dashboard

To access the dashboard go to http://localhost:9000/dashboard

The path /dashboard/** is reserved, that means if your api has a path like that it will be ignored in favor of the dashboard. However, you can change the dashboard's name with -dashboard

Preview

dashboard

Building

Manually:

git clone https://github.com/ofabricio/capture.git
cd capture
go build -o capture .

Via docker:

git clone https://github.com/ofabricio/capture.git
cd capture
docker run --rm -v "${PWD}:/src" -w /src -e GOOS=darwin -e GOARCH=386 golang:latest go build -ldflags="-s -w" -o capture .

Now you have an executable binary in your folder

Note: you can change GOOS=darwin to linux or windows