grpcconn

package
v0.0.0-...-6aec01b Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package grpcconn implements handy wrap around gRPC client connection.

Index

Constants

This section is empty.

Variables

View Source
var ErrAppendRootCert = errors.New("failed to append root certificate")

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

Connection wraps gRPC client connection.

func New

func New(address, caPath string) (*Connection, error)

New create and initializes new gRPC Connection. Warning: Since gRPC connections in Go are lazy, actual link is not established until first request.

func (*Connection) Close

func (c *Connection) Close() error

Close stops gRPC client connection gracefully.

func (*Connection) Instance

func (c *Connection) Instance() *grpc.ClientConn

Instance grants access to the underlying gRPC client connection.

Jump to

Keyboard shortcuts

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