rpc/jsonrpc
少于1分钟
jsonrpc
https://pkg.go.dev/net/rpc/jsonrpc@go1.20.1
Package jsonrpc implements a JSON-RPC 1.0 ClientCodec and ServerCodec for the rpc package. For JSON-RPC 2.0 support, see https://godoc.org/?q=json-rpc+2.0
常量
This section is empty.
变量
This section is empty.
函数
func Dial
|
|
Dial connects to a JSON-RPC server at the specified network address.
func NewClient
|
|
NewClient returns a new rpc.Client to handle requests to the set of services at the other end of the connection.
func NewClientCodec
|
|
NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn.
func NewServerCodec
|
|
NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.
func 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.
类型
This section is empty.