blocks

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 2 Imported by: 0

README

go-block-format

Coverage Status Travis CI

go-block-format is a set of interfaces that a type needs to implement in order to be a CID addressable block of data.

Lead Maintainer

Eric Myhre

Table of Contents

Install

make install

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Juan Batiz-Benet

Documentation

Overview

Deprecated: Use github.com/ipfs/go-libipfs/blocks instead.

Index

Constants

This section is empty.

Variables

View Source
var ErrWrongHash = blocks.ErrWrongHash

Deprecated: Use blocks.ErrWrongHash instead.

Functions

func NewBlock deprecated

func NewBlock(data []byte) *blocks.BasicBlock

Deprecated: Use blocks.NewBlock instead.

func NewBlockWithCid deprecated

func NewBlockWithCid(data []byte, c cid.Cid) (*blocks.BasicBlock, error)

Deprecated: Use blocks.NewBlockWithCid instead.

func NewBlockWithCid1

func NewBlockWithCid1(data []byte, c cid.Cid) (*blocks.BasicBlock, error)

Types

type BasicBlock deprecated

type BasicBlock = blocks.BasicBlock

Deprecated: Use blocks.BasicBlock instead.

type Block deprecated

type Block = blocks.Block

Deprecated: Use blocks.Block instead.

Jump to

Keyboard shortcuts

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