blockstore

package
v0.0.0-...-2bc029e Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CborStore

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

func NewCborStore

func NewCborStore(bs *Store) *CborStore

func (*CborStore) Get

func (s *CborStore) Get(ctx context.Context, id cid.Cid, out interface{}) error

func (*CborStore) Put

func (s *CborStore) Put(ctx context.Context, v interface{}) (cid.Cid, error)

type Store

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

func New

func New() *Store

func (*Store) Get

func (s *Store) Get(ctx context.Context, id cid.Cid) ([]byte, error)

func (*Store) Put

func (s *Store) Put(ctx context.Context, data []byte) (cid.Cid, error)

Jump to

Keyboard shortcuts

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