예제 #1
0
파일: app.go 프로젝트: hpcloud/logyard-apps
func recentLogs(token, appGUID string, num int) ([]string, error) {
	endpoint := server.GetClusterConfig().Endpoint
	targetUrl := "https://" + endpoint
	space := "" // we don't care about space
	cli := client.NewRestClient(targetUrl, token, space)
	return cli.GetLogsRaw(appGUID, num)
}
예제 #2
0
func GetClusterConfig() *ClusterConfig {
	return &ClusterConfig{server.GetClusterConfig()}
}