func Start()

in proxy/bootstrap/bootstrap.go [45:83]


func Start() error {
	if err := config.InitProtocols(); err != nil {
		return err
	}
	if err := config.Init(); err != nil {
		return err
	}
	if err := resolver.Init(); err != nil {
		return err
	}
	if err := DecideMode(); err != nil {
		return err
	}
	if err := metrics.Init(); err != nil {
		openlog.Info("metrics init error", openlog.WithTags(openlog.Tags{"err": err}))
	}
	if err := v1.Init(); err != nil {
		log.Println("Error occurred in starting admin server", err)
	}
	if err := register.AdaptEndpoints(); err != nil {
		return err
	}
	if cmd.Configs.LocalServicePorts == "" {
		openlog.Warn("local service ports is missing, service can not be called by mesher")
	} else {
		openlog.Info(fmt.Sprintf("local service ports is [%v]", cmd.Configs.PortsMap))
	}
	err := egress.Init()
	if err != nil {
		return err
	}

	if err := control.Init(); err != nil {
		return err
	}

	return nil

}