|
@@ -1,6 +1,16 @@
|
|
|
|
|
+// A simple TUI application that charts latency times to specified hosts.
|
|
|
|
|
+//
|
|
|
// TODO(main): set chart height by user flag
|
|
// TODO(main): set chart height by user flag
|
|
|
|
|
+//
|
|
|
// TODO(main): determine chart heights dynamically by number of addresses
|
|
// TODO(main): determine chart heights dynamically by number of addresses
|
|
|
-
|
|
|
|
|
|
|
+//
|
|
|
|
|
+// TODO(performance): implement ping message channel buffering
|
|
|
|
|
+//
|
|
|
|
|
+// TODO(tui): notify user when an address is not resolving
|
|
|
|
|
+//
|
|
|
|
|
+// i.e, change the address title to red so long as there is a single -1 in
|
|
|
|
|
+// the display buffer, and a toast notification (???) if a display buffer is
|
|
|
|
|
+// entirely composed of -1
|
|
|
package main
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
@@ -22,8 +32,7 @@ func main() {
|
|
|
fmt.Println("Must specify hosts!")
|
|
fmt.Println("Must specify hosts!")
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- var model = tui.InitialModel( // TODO(argv) set args via argv
|
|
|
|
|
- // []string{"doesntresolve.comdoasdf", "google.ca"},
|
|
|
|
|
|
|
+ var model = tui.InitialModel(
|
|
|
hosts, time.Duration(*speed),
|
|
hosts, time.Duration(*speed),
|
|
|
)
|
|
)
|
|
|
|
|
|