vdb

package
v0.0.0-...-168a7d3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVFS

func CreateVFS(block *im.GenBlock, ind *core.IpfsNode, idxSer AIndexes.IndexesServices) (cid.Cid, error)

func NewCacheCVFS

func NewCacheCVFS(rdonlyCVFS CVFS) (*aCacheCVFS, error)

Types

type CVFS

type CVFS interface {
	Indexes() AIndexes.IndexesServices

	Nodes() ANodes.Services

	Blocks() ABlock.Services

	Assetses() AAssets.Services

	Receipts() AReceipts.Services

	Transactions() ATx.Services

	ForkMergeBatch(merger VDBMerge.CVFSMerger) (cid.Cid, error)

	NewCVFSWriter() (CacheCVFS, error)
}

func LinkVFS

func LinkVFS(chainId string, ind *core.IpfsNode, idxSer AIndexes.IndexesServices) (CVFS, error)

type CacheCVFS

type CacheCVFS interface {
	Close() error

	BestCID() cid.Cid

	Blocks() ABlock.MergeWriter

	Nodes() ANodes.MergeWriter

	Assetses() AAssetses.MergeWriter

	Receipts() AReceipts.MergeWriter

	Transactions() ATx.MergeWriter

	MergeGroup() merger.CVFSMerger
}

type TransactionContext

type TransactionContext struct {
	context.Context
	// contains filtered or unexported fields
}

func WithCancel

func WithCancel(ctx context.Context) *TransactionContext

func (*TransactionContext) CancelWithErr

func (ttxc *TransactionContext) CancelWithErr(err error)

func (*TransactionContext) HasError

func (ttxc *TransactionContext) HasError() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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