grpcclient

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package grpcclient ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConn

type ClientConn interface {
	Connect(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
	Close() error
}

ClientConn defines main gRPC functionality

type ConnObjFactory

type ConnObjFactory struct{}

ConnObjFactory defines empty object

func (*ConnObjFactory) NewGrpcSession

func (c *ConnObjFactory) NewGrpcSession() GrpcSession

NewGrpcSession returns empty GrpcSes object.

type GrpcSes

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

GrpcSes implements ClientConn and GrpcSession

func (*GrpcSes) Close

func (c *GrpcSes) Close() error

Close tears down the client connection and all underlying connections.

func (*GrpcSes) Connect

func (c *GrpcSes) Connect(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

Connect creates a client connection to a given target

func (*GrpcSes) GrpcDial

func (c *GrpcSes) GrpcDial(cc ClientConn, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)

GrpcDial establishes a grpc-client client server connection

type GrpcSession

type GrpcSession interface {
	GrpcDial(cc ClientConn, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
}

GrpcSession defines GrpcDial

type GrpcSessionFactory

type GrpcSessionFactory interface {
	NewGrpcSession() GrpcSession
}

GrpcSessionFactory defines NewGrpcSession

Directories

Path Synopsis
Package fakegrpc ...
Package fakegrpc ...

Jump to

Keyboard shortcuts

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