binlog

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 1 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
	Read(index uint64) (data []byte, err error)
	LastIndex() (index uint64, err error)
	Write(index uint64, data []byte) error
}

type MemBinlog

type MemBinlog struct {
	// contains filtered or unexported fields
}

func NewMemBinlog

func NewMemBinlog() *MemBinlog

func (*MemBinlog) Close

func (l *MemBinlog) Close() error

func (*MemBinlog) LastIndex

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

func (*MemBinlog) Read

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

func (*MemBinlog) TruncateFront

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

func (*MemBinlog) Write

func (l *MemBinlog) Write(index uint64, data []byte) error

Jump to

Keyboard shortcuts

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