示例#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)
}