forked from grpc-ecosystem/go-grpc-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add context functions to retry and recover (grpc-ecosystem#172)
* retry: add new BackoffFuncContext type BackoffFuncContext adds the context parameter, allowing the retry function access to the contents of the parent context. Fixes grpc-ecosystem#171 * recovery: add new RecoveryHandlerFuncContext type Allows the user to configure a custom recovery handler that has access to the request scoped values in the context. Fixes grpc-ecosystem#168
- Loading branch information
1 parent
498ae20
commit 3304cc8
Showing
4 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters