bitswapserver

package
v0.0.0-...-9232f08 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const (
	MaxRequestTimeout = 30 * time.Second
	MaxSendMsgSize    = 3 * 1024 * 1024
)

Variables

View Source
var (
	ErrNotHave  = errors.New("no requested blocks available")
	ErrOverflow = errors.New("send queue overflow")
)

Functions

func AttachBitswapServer

func AttachBitswapServer(h host.Host, bs Blockstore) error

Types

type Blockstore

type Blockstore interface {
	Has(ctx context.Context, c cid.Cid) (bool, error)
	Get(ctx context.Context, c cid.Cid) (blocks.Block, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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