aboutsummaryrefslogtreecommitdiff
path: root/attack_options.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-11-11 13:33:11 +0700
committerShulhan <ms@kilabit.info>2023-11-11 13:34:43 +0700
commit08852664aa6952e727addb0c24ad8f56274e09bb (patch)
treed4f59e9000a2676bf1c5952c0cbeb6a5ff1f7443 /attack_options.go
parente56ee3e03a34fa738b626a4fd22fbc051bf7f0b0 (diff)
downloadgorankusu-08852664aa6952e727addb0c24ad8f56274e09bb.tar.xz
Makefile: replace the Go linter and apply all their recommendations
Previously, we use golangci-lint as linter. This linter does not provides any useful recommendation lately and the development is quite a mess, sometimes its break when using Go tip. In this changes we replace it with revive, fieldalignment, and shadow; and fix all of their recommendations.
Diffstat (limited to 'attack_options.go')
-rw-r--r--attack_options.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/attack_options.go b/attack_options.go
index 417071b..60f5d5a 100644
--- a/attack_options.go
+++ b/attack_options.go
@@ -9,6 +9,7 @@ import (
vegeta "github.com/tsenart/vegeta/v12/lib"
)
+// AttackOptions define the options for attacking HTTP endpoint.
type AttackOptions struct {
// Duration define the duration for each attack to be executed,
// in seconds.