contentrouter

package
v0.0.0-...-e23051b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2023 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContentRoutingClient

func NewContentRoutingClient(c Client, opts ...option) *contentRouter

func WithMaxProvideBatchSize

func WithMaxProvideBatchSize(max int) option

func WithMaxProvideConcurrency

func WithMaxProvideConcurrency(max int) option

Types

type Client

type Client interface {
	ProvideBitswap(ctx context.Context, keys []cid.Cid, ttl time.Duration) (time.Duration, error)
	FindProviders(ctx context.Context, key cid.Cid) (iter.ResultIter[types.ProviderResponse], error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL