mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-23 17:07:57 +08:00
18 lines
417 B
Go
18 lines
417 B
Go
package page_writer
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type SaveToStorageFunc func(reader io.Reader, offset int64, size int64, modifiedTsNs int64, cleanupFn func())
|
|
|
|
type PageChunk interface {
|
|
FreeResource()
|
|
WriteDataAt(src []byte, offset int64, tsNs int64) (n int)
|
|
ReadDataAt(p []byte, off int64, tsNs int64) (maxStop int64)
|
|
IsComplete() bool
|
|
ActivityScore() int64
|
|
WrittenSize() int64
|
|
SaveContent(saveFn SaveToStorageFunc)
|
|
}
|