Package gfit: Retry failing API calls.
authorFlorian Forster <ff@octo.it>
Mon, 29 Jan 2018 13:51:06 +0000 (14:51 +0100)
committerFlorian Forster <ff@octo.it>
Mon, 29 Jan 2018 13:51:06 +0000 (14:51 +0100)
commitf75376b8eb8613655e12c0d9d5a77269da89519c
tree70108fc57aa89ffd8d347ee5cb6862f1d320562d
parent9fdb1a75576554aab4adbe09dbdf5de50708775f
Package gfit: Retry failing API calls.

To this end, wrap all API calls in utility functions (this was already
done for DataSource.Create and Dataset.Patch; Dataset.Get was added).
Use the "retry" package inside these functions to retry temporary
(HTTP 5xx) errors.
gfit/gfit.go