Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Error = errs.Class("stream error")
Error is the errs class of stream errors.
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct {
// contains filtered or unexported fields
}
Download implements Reader, Seeker and Closer for reading from stream.
func NewDownload ¶
NewDownload creates new stream download.
func NewDownloadRange ¶
func NewDownloadRange(ctx context.Context, object storj.Object, streams *streams.Store, offset, limit int64) *Download
NewDownloadRange creates new stream range download with range from offset to offset+limit.
type Upload ¶
type Upload struct {
// contains filtered or unexported fields
}
Upload implements Writer and Closer for writing to stream.
func NewUpload ¶
func NewUpload(ctx context.Context, stream *metainfo.MutableStream, streamsStore *streams.Store) *Upload
NewUpload creates new stream upload.
func (*Upload) Abort ¶ added in v1.2.0
Abort closes the stream with an error so that it does not successfully commit and releases the underlying resources.
Click to show internal directories.
Click to hide internal directories.