mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 01:52:26 +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
|
||||
}
|
||||
|
||||
// NewNode constructs and returns an IpfsNode using the given cfg.
|
||||
func NewNode(ctx context.Context, cfg *BuildCfg) (*IpfsNode, error) {
|
||||
if cfg == nil {
|
||||
cfg = new(BuildCfg)
|
||||
|
Reference in New Issue
Block a user