예제 #1
0
파일: app.go 프로젝트: rajdobhal/dashboard
func (c App) Index() revel.Result {
	regions := models.GetRegions()
	regionCount := len(regions)
	services := models.GetServices()
	serviceCount := len(services)
	instances := models.GetInstances()
	revel.ERROR.Println(instances)
	instanceCount := len(instances)
	hosts := models.GetHosts()
	hostCount := len(hosts)
	return c.Render(regions, regionCount, services, serviceCount, instances, instanceCount, hosts, hostCount)
}
예제 #2
0
func (c Regions) Services(id string) revel.Result {
	revel.ERROR.Println(id)
	services := models.GetServices()
	return c.Render(id, services)
}
예제 #3
0
func (c Services) Index() revel.Result {

	services := models.GetServices()
	return c.Render(services)
}