ipfs-cluster/api/rest/client
Hector Sanjuan bbe2407531 rest/client: add support for libp2p-tunneled http.
This adds support for libp2p-tunneled http to the rest api component.

If PeerAddr is specified in the configuration, then we will create a
libp2p host and communicate with the API using that.

Tests run now in both http and libp2p mode.

Note: pnet support not included, but coming up

License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2018-03-15 17:14:22 +01:00
..
.travis.yml Fix #260: Add REST API client and use it in ipfs-cluster-ctl 2017-12-06 20:12:01 +01:00
client_test.go rest/client: add support for libp2p-tunneled http. 2018-03-15 17:14:22 +01:00
client.go rest/client: add support for libp2p-tunneled http. 2018-03-15 17:14:22 +01:00
methods_test.go rest/client: add support for libp2p-tunneled http. 2018-03-15 17:14:22 +01:00
methods.go Merge branch 'master' into feat/connectivity-graph 2018-01-23 08:34:43 -05:00
README.md Fix #260: Add REST API client and use it in ipfs-cluster-ctl 2017-12-06 20:12:01 +01:00
request.go rest/client: add support for libp2p-tunneled http. 2018-03-15 17:14:22 +01:00
tls.go rest/client: add support for libp2p-tunneled http. 2018-03-15 17:14:22 +01:00

ipfs-cluster client

Made by Main project IRC channel standard-readme compliant GoDoc Go Report Card Build Status Coverage Status

Go client for ipfs-cluster HTTP API.

This is a Go client library to use the ipfs-cluster REST HTTP API.

Table of Contents

Install

You can import github.com/ipfs/ipfs-cluster/api/rest/client in your code. If you wish to use gx for dependency management, it can be imported with:

$ gx import github.com/ipfs/ipfs-cluster/

The code can be downloaded and tested with:

$ go get -u -d github.com/ipfs/ipfs-cluster
$ cd $GOPATH/src/github.com/ipfs/ipfs-cluster/rest/api/client
$ go test -v

Usage

Documentation can be read at Godoc.

Contribute

PRs accepted.

License

MIT © Protocol Labs