blob: aaa1bfb8eac2fadc1000bd3d9e3242fb65900aa8 [file] [log] [blame]
package chunk
import (
"io"
"github.com/giolekva/pcloud/pfs/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
}