client

package
v0.0.0-...-f170a34 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClient

type GRPCClient struct {
	URL string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string, keepaliveParams keepalive.ClientParameters) (*GRPCClient, error)

func PingerClient

func PingerClient(target string, opts ...grpc.DialOption) (*GRPCClient, error)

func (*GRPCClient) Close

func (c *GRPCClient) Close() error

func (*GRPCClient) Ping

func (c *GRPCClient) Ping(ctx context.Context, _ *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)

type PingCall

type PingCall func(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)

Jump to

Keyboard shortcuts

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