car

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const ContentType = "application/vnd.ipld.car"

ContentType is the value the HTTP Content-Type header should have for CARs. See https://www.iana.org/assignments/media-types/application/vnd.ipld.car

Variables

This section is empty.

Functions

func Decode

func Decode(reader io.Reader) ([]ipld.Link, iter.Seq2[ipld.Block, error], error)

func Encode

func Encode(roots []ipld.Link, blocks iter.Seq2[ipld.Block, error]) io.Reader

Types

type CarBlock

type CarBlock interface {
	ipld.Block
	Offset() uint64
	Length() uint64
}

Jump to

Keyboard shortcuts

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