Versions in this module Expand all Collapse all v3 v3.0.1 Dec 28, 2023 v3.0.0 Dec 23, 2022 Changes in this version + type BinLogger interface + Close func() error + LastIndex func() (index uint64, err error) + ReadFileSection func(fiIndex *storePb.StoreInfo) ([]byte, error) + ReadLastSegSection func(index uint64) (data []byte, fileName string, offset, blkLen uint64, err error) + TruncateFront func(index uint64) error + Write func(index uint64, data []byte) (fileName string, offset, blkLen uint64, err error) + type MemBinlog struct + func NewMemBinlog(log protocol.Logger) *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)