stores

package
v0.0.0-...-c7a1919 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDagFromStore

func BuildDagFromStore(store Store, root string) (*merkle_dag.Dag, error)

func StoreDag

func StoreDag(store Store, dag *merkle_dag.Dag) error

Types

type Store

type Store interface {
	InitStore(args ...interface{}) error
	StoreLeaf(root string, leaf *merkle_dag.DagLeaf) error
	RetrieveLeaf(root string, hash string) (*merkle_dag.DagLeaf, error)
	StoreDag(dag *merkle_dag.Dag) error
	BuildDagFromStore(root string) (*merkle_dag.Dag, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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