diff options
| author | Shulhan <ms@kilabit.info> | 2024-02-21 01:45:56 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-02-21 01:45:56 +0700 |
| commit | e8d3716995e9229a61a32894689c379e22475420 (patch) | |
| tree | 9c20154a220d9110cd09574fe0092e62e3fac8eb /gorankusu.go | |
| parent | f8b6b66d9b407f7441a9170b46e42d928532f732 (diff) | |
| download | gorankusu-e8d3716995e9229a61a32894689c379e22475420.tar.xz | |
all: move constants declaration closer to its usage
Diffstat (limited to 'gorankusu.go')
| -rw-r--r-- | gorankusu.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gorankusu.go b/gorankusu.go index dd6f9f1..b8aec82 100644 --- a/gorankusu.go +++ b/gorankusu.go @@ -8,7 +8,6 @@ import ( "net/http" "os" "strings" - "time" vegeta "github.com/tsenart/vegeta/v12/lib" @@ -20,26 +19,10 @@ import ( // Version of gorankusu module. const Version = `0.5.0` -// List of default values. -const ( - DefaultAttackDuration = 10 * time.Second - DefaultAttackRatePerSecond = 500 - DefaultAttackTimeout = 30 * time.Second - DefaultMaxAttackDuration = 30 * time.Second - DefaultMaxAttackRate = 3000 - - DefaultListenAddress = `127.0.0.1:8217` -) - // EnvDevelopment setting this environment variable will enable gorankusu // development mode. const EnvDevelopment = "GORANKUSU_DEV" -// List of HTTP parameters. -const ( - paramNameName = "name" -) - // Gorankusu is the HTTP server with web user interface and APIs for running and // load testing the registered HTTP endpoints. type Gorankusu struct { |
