Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assembler ¶
type Assembler interface {
// NewReader creates an io.Reader for the given FileMeta.
// It uses the blobStore to fetch data chunks if necessary.
NewReader(fileMeta metaiface.FileMeta) (io.Reader, error)
// WriteContent processes the content from the reader, stores it (either embedded or as sharded blobs),
// and returns the content ID and the generated FileMeta object.
WriteContent(r io.Reader, size int64) (contentID string, fileMeta metaiface.FileMeta, err error)
// NewWriter 创建一个新的流式写入器
NewWriter(r io.Reader) (Writer, error)
}
Assembler is responsible for assembling file content from metadata and blob storage.
Click to show internal directories.
Click to hide internal directories.