jsonrpc-server

command module
v0.0.0-...-209aa06 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2015 License: BSD-3-Clause Imports: 7 Imported by: 0

README

jsonrpc-server

jsonrpc-server demonstrates how to serve Golang RPC methods over HTTP using the JSON-RPC encoding.

Usage

Install
go install github.com/kelseyhightower/jsonrpc-server

Start the jsonrpc server:

jsonrpc-server
Make RPC calls using curl
curl -d '{"method":"Arith.Divide","params":[{"A": 10, "B":2}], "id": 0}' http://localhost:8080
{"id":0,"result":{"Quo":5,"Rem":0},"error":null}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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