sdk/golang/Standard Library/GoNetRpcJsonrpc
Standard Library

GoNetRpcJsonrpc

Go stdlib package — net/rpc/jsonrpc. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Dial()Neutral
#
Signature
Dial(network string, address string) (*rpc.Client, error)

Dial connects to a JSON-RPC server at the specified network address.

.NewClient()Neutral
#
Signature
NewClient(conn io.ReadWriteCloser) *rpc.Client

NewClient returns a new rpc.Client to handle requests to the

.NewClientCodec()Neutral
#
Signature
NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec

NewClientCodec returns a new rpc.ClientCodec using JSON-RPC on conn.

.NewServerCodec()Neutral
#
Signature
NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec

NewServerCodec returns a new rpc.ServerCodec using JSON-RPC on conn.

.ServeConn()Neutral
#
Signature
ServeConn(conn io.ReadWriteCloser)

ServeConn runs the JSON-RPC server on a single connection.

Fully-Qualified Names

FQNField
net/rpc/jsonrpcfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # net/rpc/jsonrpc