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

Method StartOrigins

ingress/ingress.go:203–213  ·  view source on GitHub ↗

StartOrigins will start any origin services managed by cloudflared, e.g. proxy servers or Hello World.

(
	log *zerolog.Logger,
	shutdownC <-chan struct{},
)

Source from the content-addressed store, hash-verified

201
202// StartOrigins will start any origin services managed by cloudflared, e.g. proxy servers or Hello World.
203func (ing Ingress) StartOrigins(
204 log *zerolog.Logger,
205 shutdownC <-chan struct{},
206) error {
207 for _, rule := range ing.Rules {
208 if err := rule.Service.start(log, shutdownC, rule.Config); err != nil {
209 return errors.Wrapf(err, "Error starting local service %s", rule.Service)
210 }
211 }
212 return nil
213}
214
215// CatchAll returns the catch-all rule (i.e. the last rule)
216func (ing Ingress) CatchAll() *Rule {

Callers 4

TestProxySingleOriginFunction · 0.80
runIngressTestScenariosFunction · 0.80
TestConnectionsFunction · 0.80
updateIngressMethod · 0.80

Calls 1

startMethod · 0.65

Tested by 3

TestProxySingleOriginFunction · 0.64
runIngressTestScenariosFunction · 0.64
TestConnectionsFunction · 0.64