package
0.14.5
Repository: https://github.com/ipfs/ipfs-cluster.git
Documentation: pkg.go.dev

# Functions

BothEndpoints runs a test.Func against the http and p2p endpoints.
CheckHeaders checks that all the headers are set to what is expected.
HTTPClient returns a client that supporst both http/https and libp2p-tunneled-http.
HTTPSEndpoint runs the given test.Func against an HTTPs endpoint.
HTTPURL returns the http endpoint of the API.
IsHTTPS returns true if a url string uses HTTPS.
MakeDelete performs a DELETE request against the given API.
MakeGet performs a GET request against the API.
MakeHost makes a libp2p host that knows how to talk to the given API.
MakeOptions performs an OPTIONS request against the given api.
MakePost performs a POST request agains the API with the given body.
MakePostWithContentType performs a POST with the given body and content-type.
MakeStreamingPost performs a POST request and uses ProcessStreamingResp.
P2pURL returns the libp2p endpoint of the API.
ProcessResp puts a response into a given type or fails the test.
ProcessStreamingResp decodes a streaming response into the given type and fails the test on error.

# Variables

ClientOrigin sets the Origin header for requests to this.
SSLCertFile is the location of the certificate file.

# Interfaces

This represents what an API is to us.

# Type aliases

Func is a function that runs a test with a given URL.
URLFunc is a function that given an API returns a url string.