Help us shape the future of Go! Take the 2026 Go Developer Survey

timeout

package
v1.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package timeout enforces a maximum timeout on all outgoing rpcs.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL