ipfs

package
v0.0.0-...-b2a47e0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSchema

func GetSchema(c context.Context, a ipld.NodeGetter, cid cid.Cid) (core.Schema, error)

func NewIPFSMSTNodeStore

func NewIPFSMSTNodeStore(
	ctx context.Context,
	dagService icore.APIDagService,
	multihashType uint64,
	keyReader mst.KeyReader,
	valReader mst.ValueReader,
) mst.NodeStore

func PutSchema

func PutSchema(c context.Context, a ipld.NodeAdder, s core.Schema) (cid.Cid, error)

func RegisterTypes

func RegisterTypes()

func SpawnDefault

func SpawnDefault(ctx context.Context) (icore.CoreAPI, error)

Spawns a node on the default repo location, if the repo exists

Types

type IPFSMSTNodeStore

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

func (*IPFSMSTNodeStore) Get

func (s *IPFSMSTNodeStore) Get(k []byte) *mst.Node

func (*IPFSMSTNodeStore) Put

func (s *IPFSMSTNodeStore) Put(n *mst.Node) (mst.NodeStore, []byte)

func (*IPFSMSTNodeStore) Remove

func (s *IPFSMSTNodeStore) Remove(k []byte) mst.NodeStore

func (*IPFSMSTNodeStore) Size

func (s *IPFSMSTNodeStore) Size() uint

Jump to

Keyboard shortcuts

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