-
Notifications
You must be signed in to change notification settings - Fork 63
docs: review the readme #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
- `options` - an optional object with the following properties | ||
- `remote` bool - indicates if the factory should spawn local or remote nodes. By default, local nodes are spawned in Node.js and remote nodes are spawned in Browser environments. | ||
- `port` number - the port number to use for the remote factory. It should match the port on which `DaemonFactory.server` was started. Defaults to 9999. | ||
- type - the daemon type to create with this factory. See the section bellow for the supported types | ||
- `type` - the daemon type to create with this factory. See the section bellow for the supported types | ||
- `exec` - path to the desired IPFS executable to spawn, otherwise `ipfsd-ctl` will try to locate the correct one based on the `type`. In the case of `proc` type, exec is required and expects an IPFS coderef. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dryajov seems that you never got to update the README based on the new reviewed API. I've updated it for you, please confirm that these options are correct.
README.md
Outdated
|
||
> Delete the repo that was being used. If the node was marked as `disposable` this will be called automatically when the process is exited. | ||
|
||
`callback` is a function with the signature `function (Error, Node)` where `err` is an Error in case something goes wrong and `Node` is a ???. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dryajov what is this Node
that is returned with init?
Codecov Report
@@ Coverage Diff @@
## feat/remote-daemon #181 +/- ##
======================================================
- Coverage 89.87% 89.81% -0.06%
======================================================
Files 11 11
Lines 553 550 -3
======================================================
- Hits 497 494 -3
Misses 56 56
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @diasdavid! LGTM!
README.md
Outdated
|
||
> Delete the repo that was being used. If the node was marked as `disposable` this will be called automatically when the process is exited. | ||
|
||
`callback` is a function with the signature `function (Error, Node)` where `err` is an Error in case something goes wrong and `Node` is a ???. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It returns an ipfsd controller (ipfsd
). I'll update this branch with the change.
No description provided.