Use a function to decide whether we should retry (#36)

* Use a function to decide whether we should retry

This allows users to use arbitrarily sophisticated retry handling
mechanism.

* Address PR comments

* Address PR comments

* Address PR Comments

Backoff only implements Pause().
Use OnCodes() to get Retryer.

* Don't embed Backoff

* PR comments

* Use explicit retry envelope member

* Address PR comments

* Address PR comments
11 files changed
tree: 084d750225f0dd5c182018fd26e85832280b684d
  1. .gitignore
  2. .travis.yml
  3. call_option.go
  4. call_option_test.go
  5. CONTRIBUTING.md
  6. gax.go
  7. invoke.go
  8. invoke_test.go
  9. LICENSE
  10. path_template.go
  11. path_template_parser.go
  12. path_template_test.go
  13. README.md
README.md

Google API Extensions for Go

Build Status Code Coverage

Google API Extensions for Go (gax-go) is a set of modules which aids the development of APIs for clients and servers based on gRPC and Google API conventions.

This project is currently experimental and not supported.