Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Server *Server
}
Command represents the command executed by `go run pub_benchmark.go`
func (*Command) ParseFlags ¶
ParseFlags parses the args into Options.
type Options ¶
type Options struct { Host string //default: localhost Port string //default: :1883 Username string Password string Qos int Topic string ConnectionInterval int PublishInterval int // Number int //number of messages to publish per client Count int //number of clients Size int //payload bytes, default to 256 SubCount int //number of clients which subscribe topic # , default to 0 SubQos int //qos level of subscriptions, default to 0 CleanSession bool Time int //timeout }
Options represents the publish benchmark options
Click to show internal directories.
Click to hide internal directories.