Documentation ¶
Overview ¶
Package jsonrpc implements a JSON-RPC ClientCodec and ServerCodec for the rpc package.
Index ¶
- func Dial(network, address string) (*rpc.Client, error)
- func NewClient(conn io.ReadWriteCloser) *rpc.Client
- func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
- func NewServerCodec(conn io.ReadWriteCloser, mapping map[string]string) rpc.ServerCodec
- func ServeConn(conn io.ReadWriteCloser, mapping map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(conn io.ReadWriteCloser) *rpc.Client
NewClient returns a new rpc.Client to handle requests to the set of services at the other end of the connection.
func NewClientCodec ¶
func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn.
func NewServerCodec ¶
func NewServerCodec(conn io.ReadWriteCloser, mapping map[string]string) rpc.ServerCodec
NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.