Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConn ¶
func NewConn(header byte, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
NewConn return new grpc connection
Types ¶
type ConnectionMgr ¶
type ConnectionMgr struct {
// contains filtered or unexported fields
}
ConnectionMgr rpc connection manager
func NewConnectionMgr ¶
func NewConnectionMgr() *ConnectionMgr
NewConnectionMgr return a new connection mgr
func (*ConnectionMgr) Get ¶
func (c *ConnectionMgr) Get(header byte, target string) (*grpc.ClientConn, error)
Get get a connection
Click to show internal directories.
Click to hide internal directories.