jsonrpc

package
v0.0.0-...-4803eb7 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewError

func NewError(id *json.RawMessage, message string) *jsonrpcerror

func NewRouter

func NewRouter(rw JSONReaderWriter) *router

func NewServerCodec

func NewServerCodec(route *router) *serverCodec

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Call

func (c *Client) Call(serviceMethod string, args interface{}, reply interface{}) error

func (*Client) Notification

func (c *Client) Notification(serviceMethod string, args interface{}) error

type JSONReaderWriter

type JSONReaderWriter interface {
	ReadJSON(v interface{}) error
	WriteJSON(v interface{}) error
}

Jump to

Keyboard shortcuts

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