mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +08:00
docs
This commit is contained in:
@ -5,6 +5,9 @@ import (
|
|||||||
"github.com/ipfs/go-ipfs/pin"
|
"github.com/ipfs/go-ipfs/pin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// NodeCB is callback function for dag generation
|
||||||
|
// the `root` flag signifies whether or not this is
|
||||||
|
// the root of a dag.
|
||||||
type NodeCB func(node *dag.Node, root bool) error
|
type NodeCB func(node *dag.Node, root bool) error
|
||||||
|
|
||||||
var nilFunc NodeCB = func(_ *dag.Node, _ bool) error { return nil }
|
var nilFunc NodeCB = func(_ *dag.Node, _ bool) error { return nil }
|
||||||
|
Reference in New Issue
Block a user