MCPcopy Create free account
hub / github.com/DNAProject/DNA / initRestful

Function initRestful

main.go:394–401  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

392}
393
394func 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
403func initWs(ctx *cli.Context) {
404 if !config.DefConfig.Ws.EnableHttpWs {

Callers 1

startDNAFunction · 0.85

Calls 2

StartServerFunction · 0.92
InfofMethod · 0.80

Tested by

no test coverage detected