Documentation ¶
Overview ¶
Package streamer implements streaming of files over gRPC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStreamer ¶
type FileStreamer struct {
// contains filtered or unexported fields
}
FileStreamer handles reading and writing of a file using a stream of chunks.
func (*FileStreamer) ReadStream ¶
func (f *FileStreamer) ReadStream(filename string, stream WriteChunkStream, chunksize uint, showProgress bool) error
ReadStream opens a file to read from and streams its contents chunkwise over gRPC.
func (*FileStreamer) WriteStream ¶
func (f *FileStreamer) WriteStream(filename string, stream ReadChunkStream, showProgress bool) error
WriteStream opens a file to write to and streams chunks from a gRPC stream into the file.
type ReadChunkStream ¶
ReadChunkStream is abstraction over a gRPC stream that allows us to receive chunks via gRPC.
type WriteChunkStream ¶
WriteChunkStream is abstraction over a gRPC stream that allows us to send chunks via gRPC.
Click to show internal directories.
Click to hide internal directories.