From ebf113459450fc5a9f4e4fdee9ca64c12621a89c Mon Sep 17 00:00:00 2001
From: a <a@tuxpa.in>
Date: Mon, 26 Jun 2023 18:27:41 -0500
Subject: [PATCH] expose dial

---
 exports.go | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/exports.go b/exports.go
index 022cdd8..0d4f7cc 100644
--- a/exports.go
+++ b/exports.go
@@ -3,6 +3,7 @@ package jrpc
 import (
 	"context"
 
+	"gfx.cafe/open/jrpc/contrib/codecs"
 	"gfx.cafe/open/jrpc/pkg/codec"
 	"gfx.cafe/open/jrpc/pkg/server"
 )
@@ -20,8 +21,7 @@ type (
 	ResponseWriter = codec.ResponseWriter
 	// StreamingConn is a conn that supports streaming methods
 	StreamingConn = codec.Conn
-
-	//Request is the request object
+	// Request is the request object
 	Request = codec.Request
 )
 type (
@@ -30,6 +30,12 @@ type (
 )
 
 var (
+
+	// DialContext is to dial a conn with context
+	DialContext = codecs.DialContext
+	// Dial is to dial a conn with context.Background()
+	Dial = codecs.Dial
+
 	// ContextWithConn will attach a conn to the context
 	ContextWithConn = codec.ContextWithConn
 	// ContextWithPeerInfo will attach a peerinfo to the context
-- 
GitLab