seaweedfs/weed/filesys/page_writer/dirty_pages.go

11 lines
288 B
Go
Raw Normal View History

2021-12-20 17:02:23 +08:00
package page_writer
2021-05-10 06:33:01 +08:00
type DirtyPages interface {
AddPage(offset int64, data []byte)
FlushData() error
ReadDirtyDataAt(data []byte, startOffset int64) (maxStop int64)
GetStorageOptions() (collection, replication string)
2021-05-10 08:22:30 +08:00
SetWriteOnly(writeOnly bool)
GetWriteOnly() (writeOnly bool)
2021-05-10 06:33:01 +08:00
}