Documentation ¶
Index ¶
- func Dial(t testing.TB, network, address string) *rpc.Client
- func DialHTTP(t testing.TB, network, address string) *rpc.Client
- func DialHTTPPath(t testing.TB, network, address, path string) *rpc.Client
- func Register(t testing.TB, rcvr any)
- func RegisterName(t testing.TB, name string, rcvr any)
- func ServeRequest(t testing.TB, codec rpc.ServerCodec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialHTTP ¶
DialHTTP connects to an HTTP RPC server at the specified network address listening on the default HTTP RPC path.
func DialHTTPPath ¶
DialHTTPPath connects to an HTTP RPC server at the specified network address and path.
func RegisterName ¶
RegisterName is like Register but uses the provided name for the type instead of the receiver's concrete type.
func ServeRequest ¶
func ServeRequest(t testing.TB, codec rpc.ServerCodec)
ServeRequest is like [ServeCodec] but synchronously serves a single request. It does not close the codec upon completion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.