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.
Click to show internal directories.
Click to hide internal directories.