Documentation
¶
Index ¶
- Variables
- func AdminURL(cfg config.Config) ([]string, error)
- func Check() bool
- func Complete()
- func Install(payload map[string]map[string]string) error
- func Ips() ([]string, error)
- func Start() (err error)
- func Stop()
- func URLs(cfg config.Config) ([]string, error)
- func ValidateDB(option map[string]string) error
- func ValidateHosting(option map[string]string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Canceled = make(chan bool, 1)
Canceled check if setup is canceld
View Source
var Done = make(chan bool, 1)
Done check done
View Source
var SetupPort string = "5099"
SetupPort setup port
View Source
var XGenSetupServer http.Handler = http.FileServer(data.Setup())
XGenSetupServer XGen Setup
Functions ¶
func Install ¶
Install app install
{
"env": {
"YAO_LANG": "中文",
"YAO_ENV": "开发模式(推荐)",
"YAO_PORT": "5099",
"YAO_STUDIO_PORT": "5077"
},
"db": {
"type": "sqlite",
"option.file": "db/yao.db"
}
}
{
"env": {
"YAO_LANG": "中文",
"YAO_ENV": "开发模式(推荐)",
"YAO_PORT": "5099",
"YAO_STUDIO_PORT": "5077"
},
"db": {
"type": "mysql",
"option.db": "yao",
"option.host.host": "127.0.0.1",
"option.host.port": "3306",
"option.host.user": "root",
"option.host.pass": "123456"
}
}
func ValidateHosting ¶
ValidateHosting host ports
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.