예제 #1
0
파일: join.go 프로젝트: elleFlorio/gru
func initializeServices(clusterName string) {
	remote := c_GRU_REMOTE + clusterName + "/" + c_SERVICES_REMOTE
	services := cfg.ReadServices(remote)
	cfg.SetServices(services)
}
예제 #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")
}
예제 #3
0
파일: cluster.go 프로젝트: elleFlorio/gru
func GetServices(clusterName string) []cfg.Service {
	remote := c_GRU_REMOTE + clusterName + "/services"
	return cfg.ReadServices(remote)
}