diff --git a/exports.go b/exports.go index 0d4f7cc23198f86512af331e4eb9bd6edf8023ee..d4361dc0a8c89b9b32487bffde5961e465d4e512 100644 --- a/exports.go +++ b/exports.go @@ -23,6 +23,8 @@ type ( StreamingConn = codec.Conn // Request is the request object Request = codec.Request + // Server is a jrpc server + Server = server.Server ) type ( // BatchElem is an element of a batch request @@ -31,6 +33,9 @@ type ( var ( + // NewServer creates a jrpc server + NewServer = server.NewServer + // DialContext is to dial a conn with context DialContext = codecs.DialContext // Dial is to dial a conn with context.Background()