Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTooManyConnections = errors.New("too many connections")
)
Functions ¶
func Dial ¶
func Dial(in io.ReadCloser, out io.WriteCloser, binder jsonrpc2.Binder, onDone func()) (*jsonrpc2.Connection, error)
Dial makes a new connection based on stdin and stdout, wraps the returned reader and writer using the framer to make a stream, and then builds a connection on top of that stream using the binder.
The returned Connection will operate independently using the Preempter and/or Handler provided by the Binder, and will release its own resources when the connection is broken, but the caller may Close it earlier to stop accepting (or sending) new requests.
func Dialer ¶
func Dialer(in io.ReadCloser, out io.WriteCloser) jsonrpc2.Dialer
Dialer returns a jsonrpc2.Dialer based on stdin and stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.