options

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 0 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dag dagOpts

Functions

This section is empty.

Types

type DagImportOption added in v0.5.0

type DagImportOption func(opts *DagImportSettings) error

DagImportOption is a single DagImport option.

type DagImportSettings added in v0.5.0

type DagImportSettings struct {
	PinRoots      bool
	Silent        bool
	Stats         bool
	AllowBigBlock bool
}

DagImportSettings is a set of DagImport options.

func DagImportOptions added in v0.5.0

func DagImportOptions(opts ...DagImportOption) (*DagImportSettings, error)

DagImportOptions applies the given options to a DagImportSettings instance.

type DagPutOption

type DagPutOption func(opts *DagPutSettings) error

DagPutOption is a single Dag option.

type DagPutSettings

type DagPutSettings struct {
	InputCodec string
	StoreCodec string
	Pin        string
	Hash       string
}

DagPutSettings is a set of Dag options.

func DagPutOptions

func DagPutOptions(opts ...DagPutOption) (*DagPutSettings, error)

DagPutOptions applies the given options to a DagPutSettings instance.

Jump to

Keyboard shortcuts

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