config

package
v0.0.0-...-fa2bc5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: ISC Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL