コード例 #1
0
ファイル: attempt.go プロジェクト: diffeo/go-coordinate
func (api *restAPI) fillAttemptShort(namespace coordinate.Namespace, attempt coordinate.Attempt, short *restdata.AttemptShort) error {
	var err error
	short.StartTime, err = attempt.StartTime()
	builder := api.attemptURLBuilder(namespace, attempt, short.StartTime, err)
	builder.URL(&short.URL, "attempt")
	builder.URL(&short.WorkUnitURL, "workUnit")
	builder.URL(&short.WorkerURL, "worker")
	return builder.Error
}