Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitFlags = []cli.Flag{ &cli.StringFlag{ Name: constants.SecretFlag, Aliases: []string{"se"}, Usage: "This is the secret used to encrypt the connection information.", }, &cli.StringFlag{ Name: constants.URLFlag, Aliases: []string{"u"}, Usage: "The url the server should listen to i.e. yourdomain.com or 10.0.15.10.", Value: "0.0.0.0", DefaultText: "localhost", }, &cli.UintFlag{ Name: constants.PortFlag, Aliases: []string{"p"}, Usage: "The port the server should listen on. The range of accepted ports are 1024 - 65535.", Value: 65056, DefaultText: "65056", }, &cli.BoolFlag{ Name: constants.SSLFlag, Aliases: []string{"s"}, Usage: "If the server should use SSL.", Value: false, DefaultText: "False", }, &cli.StringFlag{ Name: constants.DatabaseFlag, Aliases: []string{"d"}, Usage: "Which kind of database engine to use.", Value: "sqlite3", DefaultText: "sqlite3", }, &cli.StringFlag{ Name: constants.ConnectionStringFlag, Aliases: []string{"c"}, Usage: "The connection string to the specified database engine.", Value: "data.db", DefaultText: "data.db", }, &cli.StringFlag{ Name: constants.LogLevel, Aliases: []string{"l"}, Usage: "The level to which logs are output. values are verbose, errors, silent", Value: "verbose", DefaultText: "verbose", }, }
InitFlags the flags that the init command will look for
Functions ¶
func InitializeCommand ¶
func InitializeCommand(c *cli.Context) error
InitializeCommand this is the command handler for initializing the server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.