Exemplo n.º 1
0
func initializeServices(clusterName string) {
	remote := c_GRU_REMOTE + clusterName + "/" + c_SERVICES_REMOTE
	services := cfg.ReadServices(remote)
	cfg.SetServices(services)
}
Exemplo n.º 2
0
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")
}
Exemplo n.º 3
0
func GetServices(clusterName string) []cfg.Service {
	remote := c_GRU_REMOTE + clusterName + "/services"
	return cfg.ReadServices(remote)
}