summaryrefslogtreecommitdiff
path: root/clients/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'clients/args.go')
-rw-r--r--clients/args.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/clients/args.go b/clients/args.go
new file mode 100644
index 0000000..4d5a029
--- /dev/null
+++ b/clients/args.go
@@ -0,0 +1,26 @@
+package clients
+
+import (
+ "dtail/omode"
+)
+
+// Args is a helper struct to summarize common client arguments.
+type Args struct {
+ // The operating mode (tail, grep, ...)
+ Mode omode.Mode
+ // The raw server string
+ ServersStr string
+ // SSH user name (e.g. 'pbuetow')
+ UserName string
+ // The files to follow.
+ Files string
+ // Regex for filtering.
+ Regex string
+ // Trust all unknown host keys?
+ TrustAllHosts bool
+ // Server discovery method
+ Discovery string
+ MaxInitConnections int
+ // Server ping timeout (0 means pings disabled)
+ PingTimeout int
+}