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 ¶
func NewDownload(ctx context.Context, stream kvmetainfo.ReadOnlyStream, streams streams.Store) *Download
NewDownload creates new stream download.
func NewDownloadRange ¶ added in v0.18.0
func NewDownloadRange(ctx context.Context, stream kvmetainfo.ReadOnlyStream, 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 kvmetainfo.MutableStream, streams streams.Store) *Upload
NewUpload creates new stream upload.
Click to show internal directories.
Click to hide internal directories.