diff --git a/exports.go b/exports.go index 022cdd88e88325818fdc2594d5a5ad80a0297eee..0d4f7cc23198f86512af331e4eb9bd6edf8023ee 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