jsonrpc

package
v0.0.0-...-fab57c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package jsonrpc provides a mockable wrapper for net/rpc/jsonrpc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Dial

func (*Impl) Dial(network string, address string) (*rpc.Client, error)

func (*Impl) NewClient

func (*Impl) NewClient(conn io.ReadWriteCloser) *rpc.Client

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL