cmd

package
v0.0.0-...-41d5b9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2019 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL