Versions in this module Expand all Collapse all v0 v0.24.1 Oct 10, 2024 Changes in this version + var ImportPath = importPath() + var OpenCensusViews = []*view.View + var ViewLatency = &view.View + var ViewLength = &view.View + type Client struct + func New(baseURL string, opts ...Option) (*Client, error) + func (c *Client) FindPeers(ctx context.Context, pid peer.ID) (peers iter.ResultIter[*types.PeerRecord], err error) + func (c *Client) FindProviders(ctx context.Context, key cid.Cid) (providers iter.ResultIter[types.Record], err error) + func (c *Client) GetIPNS(ctx context.Context, name ipns.Name) (*ipns.Record, error) + func (c *Client) ProvideBitswap(ctx context.Context, keys []cid.Cid, ttl time.Duration) (time.Duration, error) + func (c *Client) PutIPNS(ctx context.Context, name ipns.Name, record *ipns.Record) error + type HTTPError struct + Body string + StatusCode int + func (e *HTTPError) Error() string + type Option func(*Client) error + func WithHTTPClient(h httpClient) Option + func WithIdentity(identity crypto.PrivKey) Option + func WithProviderInfo(peerID peer.ID, addrs []multiaddr.Multiaddr) Option + func WithStreamResultsRequired() Option + func WithUserAgent(ua string) Option + type ResponseBodyLimitedTransport struct + LimitBytes int64 + UserAgent string + func (r *ResponseBodyLimitedTransport) RoundTrip(req *http.Request) (*http.Response, error)