Documentation ¶
Overview ¶
Package jsonrpc provides a mockable wrapper for net/rpc/jsonrpc.
Index ¶
- type Impl
- func (*Impl) Dial(network string, address string) (*rpc.Client, error)
- func (*Impl) NewClient(conn io.ReadWriteCloser) *rpc.Client
- func (*Impl) NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
- func (*Impl) NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec
- func (*Impl) ServeConn(conn io.ReadWriteCloser)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) NewClientCodec ¶
func (*Impl) NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec
func (*Impl) NewServerCodec ¶
func (*Impl) NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec
func (*Impl) ServeConn ¶
func (*Impl) ServeConn(conn io.ReadWriteCloser)
type Interface ¶
type Interface interface { Dial(network string, address string) (*rpc.Client, error) NewClient(conn io.ReadWriteCloser) *rpc.Client NewClientCodec(conn io.ReadWriteCloser) rpc.ClientCodec NewServerCodec(conn io.ReadWriteCloser) rpc.ServerCodec ServeConn(conn io.ReadWriteCloser) }
Click to show internal directories.
Click to hide internal directories.