mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
16 lines
329 B
Go
16 lines
329 B
Go
package page_writer
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type SaveToStorageFunc func(reader io.Reader, offset int64, size int64, cleanupFn func())
|
|
|
|
type PageChunk interface {
|
|
FreeResource()
|
|
WriteDataAt(src []byte, offset int64) (n int)
|
|
ReadDataAt(p []byte, off int64) (maxStop int64)
|
|
IsComplete() bool
|
|
SaveContent(saveFn SaveToStorageFunc)
|
|
}
|