diff options
| author | Shulhan <ms@kilabit.info> | 2021-03-22 00:55:14 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-03-22 00:55:14 +0700 |
| commit | 5ce96fc94427264ca2ff089a3d2456f301b80581 (patch) | |
| tree | 881f34908bcb73ac2805e1ae1d23b829af43c9f8 | |
| parent | 8aae3e4d12d5af082d7183b0f2d199688a356794 (diff) | |
| download | gorankusu-5ce96fc94427264ca2ff089a3d2456f301b80581.tar.xz | |
all: add README and update the package documentation
The README briefly describe the module and show some screenshots, similar
with the module documentation.
| -rw-r--r-- | README.md | 62 | ||||
| -rw-r--r-- | _screenshots/trunks_attack_result.png | bin | 0 -> 85227 bytes | |||
| -rw-r--r-- | _screenshots/trunks_example.png | bin | 0 -> 60477 bytes | |||
| -rw-r--r-- | doc.go | 32 |
4 files changed, 89 insertions, 5 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..53f184e --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ +# Trunks + +Module trunks is a library and HTTP service that provide web user interface +to test HTTP service, similar to Postman, and for load testing. + +For the load testing we use vegeta [1] as the backend. + +## Usage + +See the +(Example)[https://git.sr.ht/~shulhan/trunks/tree/main/item/example/] package +on how to programmatically use create service using this module, or, + +* clone this repository, +* execute `make run`, and +* open http://127.0.0.1:8217. + + +## Screen shots + +The following screenshot display the main interface to Run or Attack the +registered HTTP service, + + + +The following screenshot display the result of attack in two forms, vegeta +metrics and vegeta histogram, + + + + +## Web user interface + +By default, the Trunks user interface can be viewed by opening in browser at +http://127.0.0.1:8217. +One can change address through Environment's ListenAddress. + + +## File name format + +Each attack result is saved in Environment's ResultsDir with the following +file name format, + + <Target.ID> "." <HttpTarget.ID> "." <DateTime> "." <Rate> "x" <Duration> "." <ResultsSuffix> + +The "DateTime" is in the following layout, + + YearMonthDate "_" HourMinuteSeconds + +The "ResultsSuffix" is the one that defined in Environment. + + +## License + +Copyright 2021, Shulhan <ms@kilabit.info>. +All rights reserved. +Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + + +## References + +[1] https://github.com/tsenart/vegeta diff --git a/_screenshots/trunks_attack_result.png b/_screenshots/trunks_attack_result.png Binary files differnew file mode 100644 index 0000000..5a354b9 --- /dev/null +++ b/_screenshots/trunks_attack_result.png diff --git a/_screenshots/trunks_example.png b/_screenshots/trunks_example.png Binary files differnew file mode 100644 index 0000000..ed8c117 --- /dev/null +++ b/_screenshots/trunks_example.png @@ -8,10 +8,33 @@ to test HTTP service, similar to Postman, and for load testing. For the load testing we use vegeta [1] as the backend. +Usage + +See the example package on how to programmatically use and create service +using this module, or + + * clone this repository, + * execute `make run`, and + * open http://127.0.0.1:8217. + + +Screen shots + +The following screenshot display the main interface to Run or Attack the +registered HTTP service, + +https://git.sr.ht/~shulhan/trunks/blob/main/_screenshots/trunks_example.png + +The following screenshot display the result of attack in two forms, vegeta +metrics and vegeta histogram, + +https://git.sr.ht/~shulhan/trunks/blob/main/_screenshots/trunks_attack_result.png + Web user interface -By default, the Trunks user interface can be viewed by opening http://127.0.0.1:8217. +By default, the Trunks user interface can be viewed by opening in browser at +http://127.0.0.1:8217. One can change address through Environment's ListenAddress. @@ -31,10 +54,9 @@ The "ResultsSuffix" is the one that defined in Environment. License -Copyright 2021, Shulhan <ms@kilabit.info>. All rights reserved. - -Use of this source code is governed by a BSD-style -license that can be found in the LICENSE file. +Copyright 2021, Shulhan <ms@kilabit.info>. +All rights reserved. +Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. References |
