MCPcopy
hub / github.com/istio/istio / initDiscoveryService

Method initDiscoveryService

pilot/pkg/bootstrap/server.go:696–704  ·  view source on GitHub ↗

initDiscoveryService initializes discovery server on plain text port.

()

Source from the content-addressed store, hash-verified

694
695// initDiscoveryService initializes discovery server on plain text port.
696func (s *Server) initDiscoveryService() {
697 log.Infof("starting discovery service")
698 // Implement EnvoyXdsServer grace shutdown
699 s.addStartFunc("xds server", func(stop <-chan struct{}) error {
700 log.Infof("Starting ADS server")
701 s.XDSServer.Start(stop)
702 return nil
703 })
704}
705
706// Wait for the stop, and do cleanups
707func (s *Server) waitForShutdown(stop <-chan struct{}) {

Callers 1

NewServerFunction · 0.95

Calls 3

addStartFuncMethod · 0.95
InfofFunction · 0.92
StartMethod · 0.65

Tested by

no test coverage detected