Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Web = cli.Command{ Name: "web", Usage: "Start web server", Description: `You will need to set host and ip first before run, otherwise it will runing with default setting.`, Action: runWeb, Flags: []cli.Flag{ cli.StringFlag{Name: "port, p", Value: "9000", Usage: "Temporary port number to prevent conflict"}, cli.StringFlag{Name: "config, c", Value: "custom/conf/app.ini", Usage: "Custom configuration file path"}, }, }
Web to run a web server
Functions ¶
This section is empty.
Types ¶
type ServerResult ¶
type ServerResult struct { Code int `json:"code"` Success bool `json:"success"` Data map[string]interface{} `json:"data"` }
ServerResult the server result type
Click to show internal directories.
Click to hide internal directories.