Documentation ¶
Index ¶
- type BinLogger
- type MemBinlog
- func (l *MemBinlog) Close() error
- func (l *MemBinlog) LastIndex() (uint64, error)
- func (l *MemBinlog) ReadFileSection(fiIndex *storePb.StoreInfo) ([]byte, error)
- func (l *MemBinlog) ReadLastSegSection(index uint64) ([]byte, string, uint64, uint64, error)
- func (l *MemBinlog) TruncateFront(index uint64) error
- func (l *MemBinlog) Write(index uint64, data []byte) (fileName string, offset, blkLen uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinLogger ¶
type BinLogger interface { Close() error TruncateFront(index uint64) error ReadLastSegSection(index uint64) (data []byte, fileName string, offset, blkLen uint64, err error) LastIndex() (index uint64, err error) Write(index uint64, data []byte) (fileName string, offset, blkLen uint64, err error) ReadFileSection(fiIndex *storePb.StoreInfo) ([]byte, error) }
type MemBinlog ¶
type MemBinlog struct {
// contains filtered or unexported fields
}
func (*MemBinlog) ReadFileSection ¶
根据索引,读取对应数据
func (*MemBinlog) ReadLastSegSection ¶
读取最后的segment
Click to show internal directories.
Click to hide internal directories.