// Connect establishes connection between server and client
Connect establishes connection between server and client
// Connect establishes connection between server and client
func Connect() *grpc.ClientConn {
	conn, err := grpc.Dial("localhost"+viper.GetString("client.port"), grpc.WithInsecure())
	if err != nil {
		log.Panic().AnErr("unable to connect to server from client : ", err)
	}
	return conn
}
func Connect ( ) * grpc . ClientConn { conn , err := grpc . Dial ( " " + viper . GetString ( " " ) , grpc . WithInsecure ( ) ) if err != nil { log . Panic ( ) . AnErr ( " " , err ) } return conn }
Connect establishes connection between server and client
Connect establishes connection between server and client
// connection to server port // connection is returned