jsonrpc

package
v0.0.0-...-18d5cef Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(url string, tweak func(*http.Request)) *httprpc.Client

NewClient returns an httprpc.Client that directs JSON-RPC requests at the specified url. If a tweak function is supplied, it is called on each http.Request immediately before the request is performed.

func NewServer

func NewServer(srv *rpc.Server) http.Handler

NewServer returns an http.Handler that handles JSON-RPC requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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