package timeout
import "github.com/google/trillian/client/timeout"
Package timeout enforces a maximum timeout on all outgoing rpcs.
Index ¶
Functions ¶
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(maxTimeout time.Duration) grpc.UnaryClientInterceptor
UnaryClientInterceptor returns a new maximum timeout client interceptor. This interceptor will set a timeout when no timeout has been set. If the timeout on parentCtx is longer than maxTimeout, it will be replaced with maxTimeout. If parentCtx has a timeout shorter than maxTimeout it will not be modified.
Source Files ¶
- Version
- v1.3.8
- Published
- Feb 18, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 6 hours ago –
Tools for package owners.