io

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0, MIT Imports: 9 Imported by: 11

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 core_iface.CoreAPI, 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 core_iface.CoreAPI, obj interface{}, opts *WriteOpts) (cid.Cid, error)

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

Types

type WriteOpts added in v1.1.0

type WriteOpts struct {
	Pin bool
}

Jump to

Keyboard shortcuts

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