MCPcopy
hub / github.com/cloudflare/cloudflared / actionLoop

Method actionLoop

cmd/cloudflared/app_service.go:53–65  ·  view source on GitHub ↗

actionLoop handles the actions from running processes

()

Source from the content-addressed store, hash-verified

51
52// actionLoop handles the actions from running processes
53func (s *AppService) actionLoop() {
54 for {
55 select {
56 case c := <-s.configUpdateChan:
57 s.handleConfigUpdate(c)
58 case <-s.shutdownC:
59 for _, service := range s.serviceManager.Services() {
60 service.Shutdown()
61 }
62 return
63 }
64 }
65}
66
67func (s *AppService) handleConfigUpdate(c config.Root) {
68 // handle the client forward listeners

Callers 1

RunMethod · 0.95

Calls 3

handleConfigUpdateMethod · 0.95
ServicesMethod · 0.65
ShutdownMethod · 0.65

Tested by

no test coverage detected