Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "v0.0.0-a.1"
shouldn't be here
Variables ¶
View Source
var Commands = []*cli.Command{ { Name: "start", Category: "run", Aliases: []string{"s"}, Description: "Starts the server in production mode.", Action: run(false), Flags: Flags, }, { Name: "dev", Category: "run", Aliases: []string{"d"}, Description: "Starts the server in development mode", Action: run(true), Flags: Flags, }, }
View Source
var (
ErrInvalidPort = errors.New("invalid port number")
)
View Source
var Flags = []cli.Flag{ altsrc.NewIntFlag(&cli.IntFlag{ Name: "port", Value: 0, Usage: "Defines the port which server should listen on", Required: false, Aliases: []string{"p"}, EnvVars: []string{"PORT"}, }), &cli.StringFlag{ Name: "load", Aliases: []string{"l"}, }, }
Functions ¶
func GetVersion ¶
func GetVersion(cCtx *cli.Context) error
func StartServer ¶
StartServer starts the RMX application.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.