|
|
@@ -36,6 +36,7 @@ var (
|
|
|
endpoints []string
|
|
|
totalConns uint
|
|
|
totalClients uint
|
|
|
+ sample bool
|
|
|
|
|
|
bar *pb.ProgressBar
|
|
|
results chan result
|
|
|
@@ -52,6 +53,7 @@ func init() {
|
|
|
RootCmd.PersistentFlags().UintVar(&totalConns, "conns", 1, "Total number of gRPC connections")
|
|
|
RootCmd.PersistentFlags().UintVar(&totalClients, "clients", 1, "Total number of gRPC clients")
|
|
|
|
|
|
+ RootCmd.PersistentFlags().BoolVar(&sample, "sample", false, "'true' to sample requests for every second")
|
|
|
RootCmd.PersistentFlags().StringVar(&tls.CertFile, "cert", "", "identify HTTPS client using this SSL certificate file")
|
|
|
RootCmd.PersistentFlags().StringVar(&tls.KeyFile, "key", "", "identify HTTPS client using this SSL key file")
|
|
|
RootCmd.PersistentFlags().StringVar(&tls.CAFile, "cacert", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|