grpchealthcheck

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStreamInterceptor

func NewStreamInterceptor(interval time.Duration) grpc.StreamClientInterceptor

NewStreamInterceptor returns a gRPC StreamClientInterceptor which performs server health checks on the given interval for any stream which is initiated.

health := grpchealthcheck.NewStreamInterceptor(30 * time.Second)
conn, _ := grpc.Dial("server", grpc.WithStreamInterceptor(health))

Types

This section is empty.

Jump to

Keyboard shortcuts

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