bitswapserver

package
v0.0.0-...-adb0fc9 Latest Latest
Warning

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

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

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(c cid.Cid) (bool, error)
	Get(c cid.Cid) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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