test_util

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) Context

func (ss *SyncBlockStoreInMemory) Context() context.Context

func (*SyncBlockStoreInMemory) Get

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

func (*SyncBlockStoreInMemory) Put

Jump to

Keyboard shortcuts

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