message

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 4 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxEntrySize = libipfs.MaxEntrySize

Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.MaxEntrySize instead

Functions

func BlockPresenceSize deprecated added in v0.2.0

func BlockPresenceSize(c cid.Cid) int

Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.BlockPresenceSize instead

Types

type BitSwapMessage

type BitSwapMessage = libipfs.BitSwapMessage

BitSwapMessage is the basic interface for interacting building, encoding, and decoding messages sent on the BitSwap protocol. Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.BitSwapMessage instead

func FromMsgReader added in v0.1.5

func FromMsgReader(r msgio.Reader) (BitSwapMessage, error)

FromPBReader generates a new Bitswap message from a gogo-protobuf reader Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.FromMsgReader instead

func FromNet

func FromNet(r io.Reader) (BitSwapMessage, error)

FromNet generates a new BitswapMessage from incoming data on an io.Reader. Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.FromNet instead

func New

func New(full bool) BitSwapMessage

New returns a new, empty bitswap message Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.New instead

type BlockPresence added in v0.2.0

type BlockPresence = libipfs.BlockPresence

BlockPresence represents a HAVE / DONT_HAVE for a given Cid Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.BlockPresence instead

type Entry

type Entry = libipfs.Entry

Entry is a wantlist entry in a Bitswap message, with flags indicating - whether message is a cancel - whether requester wants a DONT_HAVE message - whether requester wants a HAVE message (instead of the block) Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.Entry instead

type Exportable

type Exportable = libipfs.Exportable

Exportable is an interface for structures than can be encoded in a bitswap protobuf. Deprecated: use github.com/ipfs/go-libipfs/bitswap/message.Exportable instead

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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