Versions in this module Expand all Collapse all v0 v0.4.11 Apr 17, 2023 v0.4.1 Apr 3, 2023 Changes in this version + const FindProvidersPath + const ProvidePath + func Handler(svc ContentRouter, opts ...serverOption) http.Handler + type BitswapWriteProvideRequest struct + Addrs []multiaddr.Multiaddr + AdvisoryTTL time.Duration + ID peer.ID + Keys []cid.Cid + Timestamp time.Time + type ContentRouter interface + FindProviders func(ctx context.Context, key cid.Cid) ([]types.ProviderResponse, error) + Provide func(ctx context.Context, req *WriteProvideRequest) (types.ProviderResponse, error) + ProvideBitswap func(ctx context.Context, req *BitswapWriteProvideRequest) (time.Duration, error) + type WriteProvideRequest struct + Bytes []byte + Protocol string + Schema string