|
@@ -26,10 +26,14 @@ var (
|
|
|
sleepFor = flag.Duration("sleep", 0, "Sleep this long between sending data")
|
|
|
requestsFile = flag.String("requests", "", "CSV file containing requests (IP and URL)")
|
|
|
doProfile = flag.Bool("profile", false, "Profile the program")
|
|
|
+ doVersion = flag.Bool("version", false, "Show version information")
|
|
|
|
|
|
dataChan chan data.Request
|
|
|
natsEC *nats.EncodedConn
|
|
|
count uint64
|
|
|
+
|
|
|
+ Version string
|
|
|
+ BuildDate string
|
|
|
)
|
|
|
|
|
|
func init() {
|
|
@@ -189,3 +193,7 @@ func replayMongoDB() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+func version() {
|
|
|
+ fmt.Printf("munchclient %s, built on %s\n", Version, BuildDate)
|
|
|
+}
|