commit | b2d0e569ac562d9849f24d054d32c5e48dfad1f5 | [log] [tgz] |
---|---|---|
author | Matt Rosencrantz <mattr@google.com> | Fri Feb 27 22:22:41 2015 -0800 |
committer | Matt Rosencrantz <mattr@google.com> | Fri Feb 27 22:22:41 2015 -0800 |
tree | b5f9685b81e4b8feb5fb822e59d41b2ca4d7181e | |
parent | f1ad36a658d2b7ec7360b512b41b66df352714e5 [diff] |
pipe2browser: Rename things called *Context to *Call. This is part of an effort to clarify naming around contexts. We are going to rename ServerContext and security.Context to ServerCall and security.Call respectively. Now when people say "context" we will know they mean context.T. In a follow-up change I can try to change the variable names ctx and context to call. I also need to merge the security.Call interface into ClientCall and remove redundant access to LocalPrincipal. MultiPart: 8/11 Change-Id: I876b85ba6f5434baaaaffa89ac554ae8464072da
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 google/p2b/jane/console
or
cat cat.jpg | p2b -binary google/p2b/jane/image
where google/p2b/jane 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.
To build make
To run make start #Starts a web server at 8080
and then navigate to http://localhost:8080
To stop simply Ctrl-C the console that started it
To clean make clean