grpctls

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	IsAlive() bool          // Check if the connection is alive
	Close() (string, error) // Close safely the connection
}

type GrpcClient

type GrpcClient struct {
	Host string
	Port string
	Conn *grpc.ClientConn
	// contains filtered or unexported fields
}

func NewClientWithContextTLS

func NewClientWithContextTLS(ctx context.Context, host, port string, dialOptions []grpc.DialOption) (*GrpcClient, error)

NewClientWithContextTLS creates a new gRPC client with TLS support.

func (*GrpcClient) Close

func (c *GrpcClient) Close() (string, error)

Close safely closes the connection.

Jump to

Keyboard shortcuts

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