This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
packageGRpcUtil
import(
"dsBaseRpc/Utils/ConfigUtil"
"fmt"
"github.com/0x5010/grpcp"
"google.golang.org/grpc"
)
/**
功能:获取连接
作者:黄海
时间:2020-4-15
*/
funcGetConnection()*grpc.ClientConn{
//连接的服务器地址
varaddress="127.0.0.1:"+ConfigUtil.RpcServerPort
//建立链接
conn,err:=grpcp.GetConn(address)// get conn with grpcp default pool