nodestore

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CidString

type CidString string

CidString is the KeyString() of a CID

func ToCidString

func ToCidString(id cid.Cid) CidString

ToCidString takes a CID and returns its map key (CidString)

func (CidString) Cid

func (cs CidString) Cid() cid.Cid

Cid returns the CID from the CidString (which is the KeyString format)

type DagStore

type DagStore interface {
	format.DAGService
}

func FromDatastoreOffline

func FromDatastoreOffline(ctx context.Context, ds datastore.Batching) (DagStore, error)

func FromDatastoreOfflineCached

func FromDatastoreOfflineCached(ctx context.Context, ds datastore.Batching, cachesize int) (DagStore, error)

func MemoryStore

func MemoryStore(ctx context.Context) (DagStore, error)

Return a new DagStore which is only in memory

func MustMemoryStore

func MustMemoryStore(ctx context.Context) DagStore

Return a new DagStore which is only in memory

Jump to

Keyboard shortcuts

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