Versions in this module Expand all Collapse all v1 v1.0.0 Dec 4, 2022 Changes in this version + type MmapFile struct + func NewMmapFile(path string, mmSize int) (*MmapFile, error) + func OpenMmapFile(path string, mmSize int, flag int, perm os.FileMode, mapFlag int, lock bool) (*MmapFile, error) + func (mf *MmapFile) Close() error + func (mf *MmapFile) Read(data []byte) (int, error) + func (mf *MmapFile) ReadAt(data []byte, offset int64) (int, error) + func (mf *MmapFile) Seek(offset int64, whence int) (ret int64, err error) + func (mf *MmapFile) Size() int64 + func (mf *MmapFile) Sync() error + func (mf *MmapFile) Truncate(size int64) error + func (mf *MmapFile) Write(data []byte) (int, error) + func (mf *MmapFile) WriteAt(data []byte, offset int64) (int, error) + type NormalFile struct + func NewFile(path string) (*NormalFile, error) + func OpenFile(path string, flag int, perm os.FileMode) (*NormalFile, error) + func (fn *NormalFile) Size() int64 + type WalFile interface + Close func() error + Read func([]byte) (int, error) + ReadAt func(data []byte, offset int64) (int, error) + Seek func(offset int64, whence int) (ret int64, err error) + Size func() int64 + Sync func() error + Truncate func(size int64) error + Write func([]byte) (int, error) + WriteAt func(data []byte, offset int64) (int, error)