blob: eff991e44a25db1eb7f0289efeb114b2bf5b0138 [file] [log] [blame]
package pipetobrowser
// Viewer allows clients to stream data to it and to request a particular viewer to format and display the data.
type Viewer interface {
// Pipe creates a bidirectional pipe between client and viewer service, returns total number of bytes received by the service after streaming ends
Pipe() stream<[]byte, _> (int64, error)
}