Documentation ¶
Index ¶
- Variables
- type FileWriteCache
- func (wc *FileWriteCache) ContentLen() int64
- func (wc *FileWriteCache) NeedsSync() bool
- func (wc *FileWriteCache) PWrite(p []byte, offset int64) error
- func (wc *FileWriteCache) ReadAtThrough(p []byte, offset int64, r ReadAter) (int, error)
- func (wc *FileWriteCache) Right() int64
- func (wc *FileWriteCache) Sync(bh blobstore.PWriter) error
- func (wc *FileWriteCache) Truncate(size int64)
- type Patch
- type Patches
- type ReadAter
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxPatchContentLen = 8 * 1024 * 1024
View Source
var MaxPatches = 32
Below may overwritten from tests
View Source
var PatchSentinel = Patch{Offset: math.MaxInt64}
Functions ¶
This section is empty.
Types ¶
type FileWriteCache ¶
type FileWriteCache struct {
// contains filtered or unexported fields
}
func New ¶
func New() *FileWriteCache
func (*FileWriteCache) ContentLen ¶
func (wc *FileWriteCache) ContentLen() int64
func (*FileWriteCache) NeedsSync ¶
func (wc *FileWriteCache) NeedsSync() bool
func (*FileWriteCache) ReadAtThrough ¶
func (*FileWriteCache) Right ¶
func (wc *FileWriteCache) Right() int64
func (*FileWriteCache) Truncate ¶
func (wc *FileWriteCache) Truncate(size int64)
type Patch ¶
func (Patch) IsSentinel ¶
Click to show internal directories.
Click to hide internal directories.