package
0.0.0-20191101101117-7375b2fc63f1
Repository: https://github.com/glvd/cluster.git
Documentation: pkg.go.dev
# Packages
Package client provides a Go Client for the IPFS Cluster API provided by the "api/rest" component.
# Functions
NewAPI creates a new REST API component with the given configuration.
NewAPIWithHost creates a new REST API component and enables the libp2p-http endpoint using the given Host, if not nil.
# Constants
These are the default values for Config.
These are the default values for Config.
These are the default values for Config.
These are the default values for Config.
These are the default values for Config.
These are the default values for Config.
# Variables
rs/cors this will set sensible defaults when empty: {"Origin", "Accept", "Content-Type", "X-Requested-With"}.
No description provided by the author
No description provided by the author
No description provided by the author
0.
These are the default values for Config.
ErrHTTPEndpointNotEnabled is returned when trying to perform operations that rely on the HTTPEndpoint but it is disabled.
ErrNoEndpointEnabled is returned when the API is created but no HTTPListenAddr, nor libp2p configuration fields, nor a libp2p Host are provided.