grpc

package
v5.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) func(ctx context.Context) error

New creates new gRPC health check

Types

type Config

type Config struct {
	// Target is the address of the gRPC server
	Target string
	// Service is the name of the gRPC service
	Service string
	// DialOptions configure how we set up the connection
	DialOptions []grpc.DialOption
	// CheckTimeout is the duration that health check will try to get gRPC service health status.
	// If not set - 5 seconds
	CheckTimeout time.Duration
}

Config is the gRPC checker configuration settings container.

Jump to

Keyboard shortcuts

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