Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonConfigFlags ¶
type CommonConfigFlags struct { ShowVersion bool `short:"V" long:"version" description:"Display version information and exit"` LogDir string `long:"logdir" description:"Directory to log output."` DebugLevel string `short:"d" long:"debuglevel" description:"Set log level {trace, debug, info, warn, error, critical}" default:"info"` DBAddress string `long:"dbaddress" description:"Database address" default:"localhost:5432"` DBSSLMode string `` /* 171-byte string literal not displayed */ DBUser string `long:"dbuser" description:"Database user" required:"true"` DBPassword string `long:"dbpass" description:"Database password" required:"true"` DBName string `long:"dbname" description:"Database name" required:"true"` RPCServer string `short:"s" long:"rpcserver" description:"RPC server to connect to"` Profile string `long:"profile" description:"Enable HTTP profiling on the given port"` config.NetworkFlags }
CommonConfigFlags holds configuration common to both the server and the sync daemon.
func (*CommonConfigFlags) ResolveCommonFlags ¶
func (commonFlags *CommonConfigFlags) ResolveCommonFlags(parser *flags.Parser, defaultLogDir, logFilename, errLogFilename string, isMigrate bool) error
ResolveCommonFlags parses command line arguments and sets CommonConfigFlags accordingly.
Click to show internal directories.
Click to hide internal directories.