entry

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Entry entry.Entry
	Info  *entry.Info //for wal in post append
	Lsn   uint64
	Ctx   any //for addr in batchstore
	// contains filtered or unexported fields
}

func MockEntry

func MockEntry() *Entry

func MockEntryWithPayload added in v0.8.0

func MockEntryWithPayload(payload []byte) *Entry

func NewEmptyEntry

func NewEmptyEntry() *Entry

func NewEndEntry added in v0.8.0

func NewEndEntry() *Entry

func NewEntry

func NewEntry(e entry.Entry) *Entry

func (*Entry) DoneWithErr

func (e *Entry) DoneWithErr(err error)

func (*Entry) GetSize

func (e *Entry) GetSize() int

func (*Entry) IsEnd added in v0.8.0

func (e *Entry) IsEnd() bool

func (*Entry) ReadAt

func (e *Entry) ReadAt(r *os.File, offset int) (int, error)

func (*Entry) ReadFrom

func (e *Entry) ReadFrom(r io.Reader) (n int64, err error)

func (*Entry) SetInfo

func (e *Entry) SetInfo()

func (*Entry) UnmarshalBinary added in v0.8.0

func (e *Entry) UnmarshalBinary(buf []byte) (n int64, err error)

func (*Entry) WaitDone

func (e *Entry) WaitDone() error

func (*Entry) WriteTo

func (e *Entry) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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