client

package
v2.1.38 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, target string, opts ...grpc.DialOption) error

Check checks health of grpc server.

Types

type Client

type Client interface {
	// Check checks health of grpc server.
	Check(context.Context, *healthpb.HealthCheckRequest, ...grpc.CallOption) error

	// Close tears down the ClientConn and all underlying connections.
	Close() error
}

Client is the interface for grpc client.

func GetClient

func GetClient(ctx context.Context, target string, opts ...grpc.DialOption) (Client, error)

GetClient returns health client.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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