blob: 438e355e2bf974339a6275925341dba29566327b [file] [log] [blame]
package chunk
import (
"io"
"pcloud/api"
)
type ChunkInfo struct {
Status api.ChunkStatus
Size int
Committed int
}
type Chunk interface {
Stats() (ChunkInfo, error)
ReaderAt() io.ReaderAt
WriterAt() io.WriterAt
}
type ChunkFactory interface {
New(size int) Chunk
}