lnd.xprv/glide.lock
Olaoluwa Osuntokun 566cd86a1d
lnrpc: add cursory REST support to the RPC server
This commit adds a REST interface to the existing gRPC server by
employing a simple http proxy auto-generated from the existing protobuf
files. Currently full-support for any streaming RPC’s are currently
untested. In addition to auto-generating a REST proxy server, a
swagger.json is also generated which allows for gRPC-like native
objects with higher-level clients, and also for auto-generated
documentation.

Due to limitations with accepting raw byte strings as parameters, some
RPC’s have been modified to take both raw-bytes and string arguments.
Additionally a new RPC has been added ‘NewWitnessAddress’ since the
proxy doesn’t currently support enum-based arguments.

Currently the proxy server is embedded within the daemon as an active
HTTP server, however we may want to package the proxy server as a
separate binary in the future. Similarly, we may want to add additional
configuration information which controls the optional inclusion of the
REST proxy.

Atm, just like the current gRPC interface, the REST API is fully
unauthenticated. Before moving to an initial alpha release after making
the necessary changes to meet the spec drafted in Milan, authentication
of the RPC interfaces will be addressed.
2016-10-15 14:39:00 -07:00

153 lines
3.8 KiB
YAML

hash: db69bdd1de1bff79275a16649b87f5c5769a7ce6e889a9babf96dea470d931bf
updated: 2016-10-15T14:19:38.70874686-07:00
imports:
- name: github.com/awalterschulze/gographviz
version: d4d8514752339899250316f88a7907468e8eca7e
subpackages:
- ast
- parser
- token
- errors
- lexer
- name: github.com/BitfuryLightning/tools
version: b36ae00916b800503504455f7afeb3159bd5ee35
subpackages:
- routing
- rt
- rt/graph
- prefix_tree
- rt/visualizer
- pbuffer
- pqueue
- name: github.com/boltdb/bolt
version: 583e8937c61f1af6513608ccc75c97b6abdf4ff9
- name: github.com/btcsuite/bolt
version: da4838c39653ed69caa78c99ca68001a89eb973f
- name: github.com/btcsuite/btclog
version: 73889fb79bd687870312b6e40effcecffbd57d30
- name: github.com/btcsuite/fastsha256
version: 637e656429416087660c84436a2a035d69d54e2e
- name: github.com/btcsuite/go-flags
version: 6c288d648c1cc1befcb90cb5511dcacf64ae8e61
- name: github.com/btcsuite/go-socks
version: cfe8b59e565c1a5bd4e2005d77cd9aa8b2e14524
subpackages:
- socks
- name: github.com/btcsuite/golangcrypto
version: 53f62d9b43e87a6c56975cf862af7edf33a8d0df
subpackages:
- ripemd160
- nacl/secretbox
- scrypt
- ssh/terminal
- poly1305
- salsa20/salsa
- pbkdf2
- name: github.com/btcsuite/seelog
version: ae8891d029dd3c269dcfd6f261ad23e761acd99f
- name: github.com/btcsuite/websocket
version: 31079b6807923eb23992c421b114992b95131b55
- name: github.com/codahale/chacha20
version: ec07b4f69a3f70b1dd2a8ad77230deb1ba5d6953
- name: github.com/codahale/chacha20poly1305
version: f8a5c48301822c3d7dd26d78e68ea2968db0ab20
- name: github.com/davecgh/go-spew
version: 6d212800a42e8ab5c146b8ace3490ee17e5225f9
subpackages:
- spew
- name: github.com/golang/protobuf
version: 98fa357170587e470c5f27d3c3ea0947b71eb455
subpackages:
- proto
- jsonpb
- protoc-gen-go/descriptor
- name: github.com/grpc-ecosystem/grpc-gateway
version: a8f25bd1ab549f8b87afd48aa9181221e9d439bb
subpackages:
- runtime
- third_party/googleapis/google/api
- utilities
- runtime/internal
- name: github.com/howeyc/gopass
version: f5387c492211eb133053880d23dfae62aa14123d
- name: github.com/lightningnetwork/lightning-onion
version: 81647ffa2c5e17c0447d359e1963a54e18be85c4
- name: github.com/roasbeef/btcd
version: baea7691cc3c59480703fe1a3fb5595c838c963c
subpackages:
- blockchain
- btcec
- btcjson
- chaincfg
- txscript
- wire
- rpctest
- database
- name: github.com/roasbeef/btcrpcclient
version: 2c6c5c5671f6e86d42b84da30cafcd80e3313b41
- name: github.com/roasbeef/btcutil
version: 94511fbe6c9bf8ecddb82ccfe8f326e45a4559b0
subpackages:
- bloom
- coinset
- hdkeychain
- txsort
- base58
- name: github.com/roasbeef/btcwallet
version: 7acd18a96697b180b631631108f1a15448de369f
subpackages:
- chain
- waddrmgr
- wallet
- walletdb/bdb
- walletdb
- internal/zero
- snacl
- internal/prompt
- wallet/txauthor
- wallet/txrules
- wtxmgr
- internal/legacy/keystore
- internal/helpers
- wallet/internal/txsizes
- internal/legacy/rename
- name: github.com/urfave/cli
version: a14d7d367bc02b1f57d88de97926727f2d936387
- name: golang.org/x/crypto
version: 5f31782cfb2b6373211f8f9fbf31283fa234b570
subpackages:
- hkdf
- nacl/secretbox
- ripemd160
- scrypt
- poly1305
- salsa20/salsa
- pbkdf2
- ssh/terminal
- name: golang.org/x/net
version: 8b4af36cd21a1f85a7484b49feb7c79363106d8e
subpackages:
- context
- http2
- trace
- http2/hpack
- idna
- lex/httplex
- internal/timeseries
- name: golang.org/x/sys
version: 9bb9f0998d48b31547d975974935ae9b48c7a03c
subpackages:
- unix
- name: google.golang.org/grpc
version: b1a2821ca5a4fd6b6e48ddfbb7d6d7584d839d21
subpackages:
- grpclog
- codes
- metadata
- credentials
- internal
- naming
- transport
- peer
testImports: []