migration

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCID

func MakeCID(input string, prefix *cid.Prefix) cid.Cid

func NewADTStore

func NewADTStore(ctx context.Context) adt.Store

Creates a new, empty IPLD store in memory.

Types

type BlockStoreInMemory

type BlockStoreInMemory struct {
	// contains filtered or unexported fields
}

func NewBlockStoreInMemory

func NewBlockStoreInMemory() *BlockStoreInMemory

func (*BlockStoreInMemory) Get

func (mb *BlockStoreInMemory) Get(ctx context.Context, c cid.Cid) (block.Block, error)

func (*BlockStoreInMemory) Put

type SyncBlockStoreInMemory

type SyncBlockStoreInMemory struct {
	// contains filtered or unexported fields
}

func NewSyncBlockStoreInMemory

func NewSyncBlockStoreInMemory() *SyncBlockStoreInMemory

func (*SyncBlockStoreInMemory) Get

func (ss *SyncBlockStoreInMemory) Get(ctx context.Context, c cid.Cid) (block.Block, error)

func (*SyncBlockStoreInMemory) Put

type TestLogger

type TestLogger struct {
	TB testing.TB
}

func (TestLogger) Log

func (t TestLogger) Log(_ rt.LogLevel, msg string, args ...interface{})

Jump to

Keyboard shortcuts

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