jsonrpc
packagestandard libraryThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package jsonrpc implements a JSON-RPC 1.0 ClientCodec and ServerCodecfor the rpc package.For JSON-RPC 2.0 support, seehttps://godoc.org/?q=json-rpc+2.0
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcNewClient¶
func NewClient(connio.ReadWriteCloser) *rpc.Client
NewClient returns a newrpc.Client to handle requests to theset of services at the other end of the connection.
funcNewClientCodec¶
func NewClientCodec(connio.ReadWriteCloser)rpc.ClientCodec
NewClientCodec returns a newrpc.ClientCodec using JSON-RPC on conn.
funcNewServerCodec¶
func NewServerCodec(connio.ReadWriteCloser)rpc.ServerCodec
NewServerCodec returns a newrpc.ServerCodec using JSON-RPC on conn.
funcServeConn¶
func ServeConn(connio.ReadWriteCloser)
ServeConn runs the JSON-RPC server on a single connection.ServeConn blocks, serving the connection until the client hangs up.The caller typically invokes ServeConn in a go statement.
Types¶
This section is empty.