sanitycheck

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blockstore

type Blockstore struct {
	blockstore.Blockstore
	// contains filtered or unexported fields
}

func NewBlockstoreWrapper

func NewBlockstoreWrapper(bs blockstore.Blockstore, fn CheckFn) *Blockstore

func (Blockstore) Get

func (bs Blockstore) Get(ctx context.Context, cid cid.Cid) (blocks.Block, error)

type CheckFn

type CheckFn func(cid cid.Cid, errMsg string)

type IManager

type IManager interface {
	HandleMissingBlocks(cc cid.Cid, errMsg string)
}

func NewManager

func NewManager(db *gorm.DB, log *zap.SugaredLogger) IManager

Jump to

Keyboard shortcuts

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