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