Closed vyzo closed 7 years ago
Got this working locally, but had to do a gx install
to get all the deps first. Works as advertised 👍
I think a setup script that installs the dependencies might be in order.
I can run setup successfully but both build and install give me
[vyzo-ping-pong¹//concat]% ./install.sh (arkadiy@molybdenum:~/mine/concat/)
mc/util.go:4:2: cannot find package "context" in any of:
/usr/local/Cellar/go/1.6.3/libexec/src/context (from $GOROOT)
/Users/arkadiy/go/src/context (from $GOPATH)
mc/message.go:4:2: cannot find package "github.com/mediachain/concat/proto" in any of:
/usr/local/Cellar/go/1.6.3/libexec/src/github.com/mediachain/concat/proto (from $GOROOT)
/Users/arkadiy/go/src/github.com/mediachain/concat/proto (from $GOPATH)
progs/mcdir/main.go:6:2: cannot find package "github.com/mediachain/concat/mc" in any of:
/usr/local/Cellar/go/1.6.3/libexec/src/github.com/mediachain/concat/mc (from $GOROOT)
/Users/arkadiy/go/src/github.com/mediachain/concat/mc (from $GOPATH)
also these rewrites are really not git-friendly, hmm
oh, I think you need go 1.7 - they moved context into the standard lib from a google contrib repo or something
lgtm, let's merge
This is the first experiment, with a basic ping pong scenario working.
The are two programs: the directory (mcdir) and the node (mcnode). First you need a directory running; you can do that by running mcdir. Then you can start a couple of nodes, by running mcnode (you need to pass the directory handle printed by mcdir).
Each node exports a RESTful clinet API; it currently supports two methods:
A small example illustrating usage: