Documentation ¶ Index ¶ func NewClient(url string, tweak func(*http.Request)) *httprpc.Client func NewServer(srv *rpc.Server) http.Handler 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. Source Files ¶ View all Source files jsonrpc.go Click to show internal directories. Click to hide internal directories.