Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jahaja committed Sep 20, 2020
1 parent e90c458 commit 15b41f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ Sets up an HTTP API that provides the load test data in JSON.
```
Usage of ltt:
-api-host string
REST API port to bind to. (Default all, empty string)
REST API port to bind to.
-api-port int
REST API port to bind to. (Default 4141) (default 4141)
REST API port to bind to. (default 4141)
-log-prefix string
Logging prefix (Default empty string)
Logging prefix
-max-sleep-time int
Maximum sleep time between a user's tasks in seconds (Default 10) (default 10)
Maximum sleep time between a user's tasks in seconds (default 10)
-min-sleep-time int
Minimum sleep time between a user's tasks in seconds (Default 1) (default 1)
Minimum sleep time between a user's tasks in seconds (default 1)
-num-spawn-per-sec int
Number of user to spawn per second (Default 1) (default 1)
Number of user to spawn per second (default 1)
-num-users int
Number of users to spawn (default 5)
-request-timeout int
Request timeout in seconds (Default 5) (default 5)
Request timeout in seconds (default 5)
-spawn-on-startup
If true, spawning will begin on startup (Default false)
If true, spawning will begin on startup
-verbose
Verbose logging (default false)
Verbose logging
```

## User-Interfaces
Expand Down
18 changes: 9 additions & 9 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ func NewConfigFromFlags() Config {
conf := Config{}

flag.IntVar(&conf.NumUsers, "num-users", 5, "Number of users to spawn")
flag.IntVar(&conf.RequestTimeout, "request-timeout", 5, "Request timeout in seconds (Default 5)")
flag.IntVar(&conf.MinSleepTime, "min-sleep-time", 1, "Minimum sleep time between a user's tasks in seconds (Default 1)")
flag.IntVar(&conf.MaxSleepTime, "max-sleep-time", 10, "Maximum sleep time between a user's tasks in seconds (Default 10)")
flag.IntVar(&conf.NumSpawnPerSecond, "num-spawn-per-sec", 1, "Number of user to spawn per second (Default 1)")
flag.StringVar(&conf.APIHost, "api-host", "", "REST API port to bind to. (Default all, empty string)")
flag.StringVar(&conf.LogPrefix, "log-prefix", "", "Logging prefix (Default empty string)")
flag.IntVar(&conf.APIPort, "api-port", 4141, "REST API port to bind to. (Default 4141)")
flag.BoolVar(&conf.Verbose, "verbose", false, "Verbose logging (default false)")
flag.BoolVar(&conf.SpawnOnStartup, "spawn-on-startup", false, "If true, spawning will begin on startup (Default false)")
flag.IntVar(&conf.RequestTimeout, "request-timeout", 5, "Request timeout in seconds")
flag.IntVar(&conf.MinSleepTime, "min-sleep-time", 1, "Minimum sleep time between a user's tasks in seconds")
flag.IntVar(&conf.MaxSleepTime, "max-sleep-time", 10, "Maximum sleep time between a user's tasks in seconds")
flag.IntVar(&conf.NumSpawnPerSecond, "num-spawn-per-sec", 1, "Number of user to spawn per second")
flag.StringVar(&conf.APIHost, "api-host", "", "REST API port to bind to.")
flag.StringVar(&conf.LogPrefix, "log-prefix", "", "Logging prefix")
flag.IntVar(&conf.APIPort, "api-port", 4141, "REST API port to bind to.")
flag.BoolVar(&conf.Verbose, "verbose", false, "Verbose logging")
flag.BoolVar(&conf.SpawnOnStartup, "spawn-on-startup", false, "If true, spawning will begin on startup")
flag.Parse()

if conf.LogOutput == nil {
Expand Down

0 comments on commit 15b41f7

Please sign in to comment.