(ctx *cli.Context)
| 392 | } |
| 393 | |
| 394 | func initRestful(ctx *cli.Context) { |
| 395 | if !config.DefConfig.Restful.EnableHttpRestful { |
| 396 | return |
| 397 | } |
| 398 | go restful.StartServer() |
| 399 | |
| 400 | log.Infof("Restful init success") |
| 401 | } |
| 402 | |
| 403 | func initWs(ctx *cli.Context) { |
| 404 | if !config.DefConfig.Ws.EnableHttpWs { |
no test coverage detected