Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitStorageCommand ¶
type InitStorageCommand struct { Storage string `long:"storage" description:"storage to use" choice:"mysql" default:"mysql" env:"STORAGE"` CreateDatabase bool `long:"create-database" description:"will DROP (!) and create the database, use CAREFULLY!"` Mysql }
InitStorageCommand defines `init-storage` command
func RegisterInitStorageCommand ¶
func RegisterInitStorageCommand(parser *flags.Parser) *InitStorageCommand
RegisterInitStorageCommand registers `init-storage` command
func (*InitStorageCommand) Execute ¶
func (cmd *InitStorageCommand) Execute(_ []string) error
Execute implements `init-storage` command
type Mysql ¶
type Mysql struct { Host string `long:"mysql-host" description:"mysql storage DB host with port" default:"localhost:3306" env:"MYSQL_HOST"` Name string `long:"mysql-dbname" description:"mysql storage DB name" env:"MYSQL_DBNAME"` User string `long:"mysql-user" description:"mysql storage DB user" env:"MYSQL_USER"` Password string `long:"mysql-password" description:"mysql storage DB password" env:"MYSQL_PASSWORD"` }
Mysql describes command-line arguments related to Mysql storage
type RunCommand ¶
type RunCommand struct { BindAddress string `long:"bind-address" description:"http bind address" default:":31456" env:"BIND_ADDRESS"` Storage string `long:"storage" description:"storage to use" choice:"mysql" choice:"inmemory" default:"inmemory" env:"STORAGE"` Mysql }
RunCommand defines `run` command
func RegisterRunCommand ¶
func RegisterRunCommand(parser *flags.Parser) *RunCommand
RegisterRunCommand registers `run` command
func (*RunCommand) Execute ¶
func (cmd *RunCommand) Execute(_ []string) error
Execute implements `run` command
Click to show internal directories.
Click to hide internal directories.