client

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 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
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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