Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Config cliConfig QuietFlag = flag.Bool("quiet", false, "Quiet mode, sets log level to warning") // If not set to true, will setup static loglevel flag and logger output for client tools. ServerMode = false // Override this to change the exit function (for testing), will be applied to log.Fatalf too. ExitFunction = os.Exit )
Functions ¶
func Main ¶
func Main() bool
Main handles your commandline and flag parsing. Sets up flags first then call Main. For a server with dynamic flags, call ServerMain instead. returns true if there was no error. Might not return and have already exited for help/usage/etc...
func ServerMain ¶
func ServerMain() bool
ServerMain returns true if a config port server has been started caller needs to select {} after its own code is ready. Will have exited if there are usage errors (wrong number of arguments, bad flags etc...).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.