Documentation ¶
Index ¶
Constants ¶
View Source
const FindProvidersPath = "/routing/v1/providers/{cid}"
View Source
const ProvidePath = "/routing/v1/providers/"
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(svc ContentRouter, opts ...serverOption) http.Handler
Types ¶
type ContentRouter ¶
type ContentRouter interface { FindProviders(ctx context.Context, key cid.Cid) ([]types.ProviderResponse, error) ProvideBitswap(ctx context.Context, req *BitswapWriteProvideRequest) (time.Duration, error) Provide(ctx context.Context, req *WriteProvideRequest) (types.ProviderResponse, error) }
type WriteProvideRequest ¶
Click to show internal directories.
Click to hide internal directories.