go1.20.5
GoThrough

jsonrpc.Dial

// Dial connects to a JSON-RPC server at the specified network address. func Dial(network string, address string) (*rpc.Client, error)

jsonrpc.NewClient

// NewClient returns a new rpc.Client to handle requests to the // set of services at the other end of the connection. func NewClient(conn io.ReadWriteCloser) *rpc.Client

jsonrpc.NewClientCodec

// NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn. func NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec

jsonrpc.NewServerCodec

// NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn. func NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec

jsonrpc.ServeConn

// 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. func ServeConn(conn io.ReadWriteCloser)