TBR p2b: moving all Go code under v.io prefix and making the v23 tool
aware of all of our Go workspaces

The purpose of this CL is to be able to build / test all of our Go
code by running:

$ v23 go [build|test] v.io/...

MultiPart: 4/8
Change-Id: I09d2949150d91cba73afb4f46feec8412c8bf882
4 files changed
tree: 3a798b3abbd9939f7c2e9db7170f0b2f8e2c1ddb
  1. browser/
  2. go/
  3. .gitignore
  4. AUTHORS
  5. CONTRIBUTORS
  6. LICENSE
  7. Makefile
  8. package.json
  9. PATENTS
  10. README.md
  11. VERSION
README.md

Pipe to Browser

P2B allows one to pipe anything from shell console to the browser. Data being piped to the browser then is displayed in a graphical and formatted way by a “viewer” Viewers are pluggable pieces of code that know how to handle and display a stream of data.

For example one can do:

echo "Hi!" | p2b users/jane@google.com/chrome/p2b/jane/console

or

cat cat.jpg | p2b -binary users/jane@google.com/chrome/p2b/jane/image

where users/jane@google.com/chrome/p2b is the Object name where p2b service is running in the browser. The suffix console or image specifies what viewer should be used to display the data.

Please see the help page inside the P2B application for detailed tutorials.

Building and Running

To build make To run make go/bin/p2b #Builds the p2b binary make start #Starts a web server at 8080 and then navigate to http://localhost:8080 and publish under a name such as ‘foo’ and run p2b rpc under vbash with commands such as

# run vbash
$V23_ROOT/release/go/src/v.io/x/ref/cmd/vbash

# run a sample p2b command
echo "Hello World" | go/bin/p2b users/<email-address>/chrome/p2b/foo/console

To stop simply Ctrl-C the console that started it

To clean make clean