summaryrefslogtreecommitdiff
path: root/clients/args.go
blob: 4d5a029b2bb4d2cb480e3086266e66b1c867519e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}