mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 02:30:39 +08:00
docs for core builder NewNode method
License: MIT Signed-off-by: ForrestWeston <forrest@protocol.ai>
This commit is contained in:
@ -115,6 +115,7 @@ func defaultRepo(dstore repo.Datastore) (repo.Repo, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewNode constructs and returns an IpfsNode using the given cfg.
|
||||||
func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
|
func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
|
||||||
if cfg == nil {
|
if cfg == nil {
|
||||||
cfg = new(BuildCfg)
|
cfg = new(BuildCfg)
|
||||||
|
Reference in New Issue
Block a user