| // Boxes is an android app that uses veyron to share views |
| // BoxSignalling allows peers to rendezvous with each other |
| type BoxSignalling interface { |
| // Add endpoint information to the signalling server. |
| Add(Endpoint string) (Err error) |
| // Get endpoint information about a peer. |
| Get() (Endpoint string, Err error) |
| // Box describes the name and co-ordinates of a given box that |
| // is displayed in the View of a peer device. |
| // DeviceID that generated the box |
| // BoxId is a unique name for a box |
| // Points are the co-ordinates of a given box |
| // DrawInterface enables adding a box on another peer |
| type DrawInterface interface { |
| // Draw is used to send/receive a stream of boxes to another peer |
| Draw() stream<Box, Box> (Err error) |
| // SyncBoxes is used to setup a sync service over store to send/receive |