func initializeServices(clusterName string) { remote := c_GRU_REMOTE + clusterName + "/" + c_SERVICES_REMOTE services := cfg.ReadServices(remote) cfg.SetServices(services) }
func updateServices(cluster string) { remote := c_GRU_REMOTE + cluster + "/" + c_SERVICES_REMOTE services := cfg.ReadServices(remote) cfg.SetServices(services) log.WithField("services", services).Debugln("Services updated from remote") }
func GetServices(clusterName string) []cfg.Service { remote := c_GRU_REMOTE + clusterName + "/services" return cfg.ReadServices(remote) }