fc678242fb
Move ctl-health sharness tests to apprpriate file Since the API is using the RPC mock to request metrics and it always returns a mocked test metric we might just do c.Metrics("somemetricstype") and check that there is no error. Here we just want to check that the client is hitting an API endpoint (and understands the response). Fixes #587 License: MIT Signed-off-by: Kishan Mohanbhai Sagathiya <kishansagathiya@gmail.com> |
||
---|---|---|
.. | ||
.travis.yml | ||
client_test.go | ||
client.go | ||
methods_test.go | ||
methods.go | ||
README.md | ||
request.go | ||
transports.go |
ipfs-cluster client
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