adder

command
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Program adder demonstrates a trivial JSON-RPC server that communicates over the process's stdin and stdout.

Usage:

$ go build bitbucket.org/creachadair/jrpc2/cmd/examples/adder
$ ./adder

Queries to try (copy and paste):

{"jsonrpc":"2.0", "id":1, "method":"Add", "params":[1,2,3]}
{"jsonrpc":"2.0", "id":2, "method":"rpc.serverInfo"}

Jump to

Keyboard shortcuts

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