Documentation ¶
Index ¶
Constants ¶
View Source
const FindProvidersPath = "/routing/v1/providers/{cid}"
View Source
const ProvidePath = "/routing/v1/providers/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentRouter ¶
type ContentRouter interface { FindProviders(ctx context.Context, key cid.Cid) (iter.ResultIter[types.ProviderResponse], error) ProvideBitswap(ctx context.Context, req *BitswapWriteProvideRequest) (time.Duration, error) Provide(ctx context.Context, req *WriteProvideRequest) (types.ProviderResponse, error) }
type FindProvidersAsyncResponse ¶
type FindProvidersAsyncResponse struct { ProviderResponse types.ProviderResponse Error error }
type Option ¶
type Option func(s *server)
func WithStreamingResultsDisabled ¶
func WithStreamingResultsDisabled() Option
WithStreamingResultsDisabled disables ndjson responses, so that the server only supports JSON responses.
type WriteProvideRequest ¶
Click to show internal directories.
Click to hide internal directories.