-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Send individual nodes to daemon #133
Comments
this could be pretty easily implemented as a flag to ipfs add, i.e.
where the 'i' flag could specify to read from 'stdin' and stream the block over. |
Or even:
could read in and send blocks as opposed to just sending the filename over |
For whatever reason on this branch 'ipfsadd' and 'ipfscat' can add and cat from a single machine, but the blocks don't propagate between peers. Whatever, its a proof-of-concept. |
good call, we'll need the API to allow adding blocks. Will be useful for #132 as well. |
@llSourcell but allowing the user to choose is better than either on its own. |
I like the idea of perhaps a protobuf API on a plain socket and an JSON HTTP API. |
@whyrusleeping true. @ehmry that would some ideal |
Please see #132 for API considerations. the APIs should allow format choice in both cases. (yes, also protobufs over http, and json over raw tcp) |
Superceded by #132 |
docs: remove mentions of coral, it's not implemented
I wanted to be able to send data to a daemon in a way that does not require the daemon have access to the data on local disk, so I added a command to core for adding a block over RPC.
https://github.com/ehmry/go-ipfs/compare/add_node
There are a few reasons I wanted this,
I've got a utilty that pushes nodes to a daemon, and another utilty for pulling them from a daemon.
So far I've only tested them by piping music in and out of them.
This is just rough draft of what I want, and a RFC.
On a side note, perhaps the RPC interface would be best wrapped in a more traditional manner so that success reponses can be differentiated from errors?
There is of course http://golang.org/pkg/net/rpc/jsonrpc/, though I'm not sure if its too Go centric to reimplent clients in something like javascript.
The text was updated successfully, but these errors were encountered: