binlog

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 NewMemBinlog

func NewMemBinlog(log protocol.Logger) *MemBinlog

func (*MemBinlog) Close

func (l *MemBinlog) Close() error

func (*MemBinlog) LastIndex

func (l *MemBinlog) LastIndex() (uint64, error)

func (*MemBinlog) ReadFileSection added in v2.2.0

func (l *MemBinlog) ReadFileSection(fiIndex *storePb.StoreInfo) ([]byte, error)

func (*MemBinlog) ReadLastSegSection added in v2.2.0

func (l *MemBinlog) ReadLastSegSection(index uint64) ([]byte, string, uint64, uint64, error)

func (*MemBinlog) TruncateFront

func (l *MemBinlog) TruncateFront(index uint64) error

func (*MemBinlog) Write

func (l *MemBinlog) Write(index uint64, data []byte) (fileName string, offset, blkLen uint64, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL