io

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: Apache-2.0, MIT Imports: 7 Imported by: 10

Documentation

Overview

Package io defines helpers used within IPFS Log and OrbitDB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCBOR

func ReadCBOR(ctx context.Context, ipfs IpfsServices, contentIdentifier cid.Cid) (format.Node, error)

ReadCBOR reads a CBOR representation of a given object from IPFS' DAG.

func SetDebug

func SetDebug(val bool)

func WriteCBOR

func WriteCBOR(ctx context.Context, ipfs IpfsServices, obj interface{}) (cid.Cid, error)

WriteCBOR writes a CBOR representation of a given object in IPFS' DAG.

Types

type IpfsServices

type IpfsServices interface {
	Dag() core_iface.APIDagService
}

The IpfsServices interface with required IPFS services.

Source Files

Jump to

Keyboard shortcuts

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