MCPcopy Create free account
hub / github.com/deepflowio/deepflow / Start

Method Start

server/controller/http/server.go:76–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func (s *Server) Start() {
77 router.NewHealth().RegisterTo(s.engine)
78 go func() {
79 if err := s.engine.Run(fmt.Sprintf(":%d", s.controllerConfig.ListenPort)); err != nil {
80 log.Errorf("startup service failed, err:%v\n", err)
81 time.Sleep(time.Second)
82 os.Exit(0)
83 }
84 }()
85}
86
87func (s *Server) SetControllerChecker(cc *monitor.ControllerCheck) {
88 s.controllerChecker = cc

Callers 1

StartFunction · 0.95

Calls 3

RegisterToMethod · 0.65
RunMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected