MCPcopy Create free account
hub / github.com/devfeel/dotweb / StartServer

Method StartServer

dotweb.go:352–355  ·  view source on GitHub ↗

StartServer start server with http port if config the pprof, will be start pprof server

(httpPort int)

Source from the content-addressed store, hash-verified

350// StartServer start server with http port
351// if config the pprof, will be start pprof server
352func (app *DotWeb) StartServer(httpPort int) error {
353 addr := ":" + strconv.Itoa(httpPort)
354 return app.ListenAndServe(addr)
355}
356
357// Start start app server with set config
358// If an exception occurs, will be return it

Callers 12

StartMethod · 0.95
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

ListenAndServeMethod · 0.95

Tested by

no test coverage detected