Documentation
¶
Index ¶
- Constants
- type Base
- func (b *Base) DoneWithErr(err error)
- func (b *Base) Duration() time.Duration
- func (b *Base) Free()
- func (b *Base) GetError() error
- func (b *Base) GetInfo() any
- func (b *Base) GetInfoBuf() []byte
- func (desc Base) GetInfoSize() int
- func (b *Base) GetLsn() (gid uint32, lsn uint64)
- func (desc Base) GetMetaBuf() []byte
- func (desc Base) GetMetaSize() int
- func (b *Base) GetPayload() []byte
- func (desc Base) GetPayloadSize() int
- func (desc Base) GetType() Type
- func (desc Base) IsCheckpoint() bool
- func (desc Base) IsFlush() bool
- func (b *Base) IsPrintTime() bool
- func (b *Base) Marshal() (buf []byte, err error)
- func (b *Base) PrepareWrite()
- func (b *Base) PrintTime()
- func (b *Base) ReadAt(r *os.File, offset int) (int, error)
- func (b *Base) ReadFrom(r io.Reader) (int64, error)
- func (desc Base) ReadMeta(r io.Reader) (int, error)
- func (b *Base) SetInfo(info any)
- func (b *Base) SetInfoBuf(buf []byte)
- func (desc Base) SetInfoSize(size int)
- func (b *Base) SetPayload(buf []byte) error
- func (desc Base) SetPayloadSize(size int)
- func (desc Base) SetType(t Type)
- func (b *Base) StartTime()
- func (desc Base) TotalSize() int
- func (desc Base) TotalSizeExpectMeta() int
- func (b *Base) Unmarshal(buf []byte) error
- func (b *Base) UnmarshalFromNode(n []byte, own bool) error
- func (b *Base) WaitDone() error
- func (b *Base) WriteTo(w io.Writer) (int64, error)
- type CkpRanges
- type CommandInfo
- type Desc
- type Entry
- type Info
- type Type
Constants ¶
View Source
const ( PayloadSizeOffset = int(unsafe.Sizeof(ETInvalid)) InfoSizeOffset = int(unsafe.Sizeof(ETInvalid) + unsafe.Sizeof(uint32(0))) DescriptorSize = int(unsafe.Sizeof(ETInvalid) + 2*unsafe.Sizeof(uint32(0))) )
View Source
const ( GTInvalid uint32 = iota GTNoop GTCKp GTInternal GTCustomizedStart )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) DoneWithErr ¶
func (*Base) GetInfoBuf ¶
func (Base) GetInfoSize ¶
func (desc Base) GetInfoSize() int
func (Base) GetMetaBuf ¶
func (desc Base) GetMetaBuf() []byte
func (Base) GetMetaSize ¶ added in v0.6.0
func (desc Base) GetMetaSize() int
func (*Base) GetPayload ¶
func (Base) GetPayloadSize ¶
func (desc Base) GetPayloadSize() int
func (Base) IsCheckpoint ¶
func (desc Base) IsCheckpoint() bool
func (*Base) IsPrintTime ¶
func (*Base) PrepareWrite ¶ added in v0.6.0
func (b *Base) PrepareWrite()
func (*Base) SetInfoBuf ¶
func (Base) SetInfoSize ¶
func (desc Base) SetInfoSize(size int)
func (*Base) SetPayload ¶ added in v0.6.0
func (Base) SetPayloadSize ¶
func (desc Base) SetPayloadSize(size int)
func (Base) TotalSizeExpectMeta ¶
func (desc Base) TotalSizeExpectMeta() int
type CkpRanges ¶
type CkpRanges struct {
Group uint32
Ranges *common.ClosedIntervals
Command map[uint64]CommandInfo
}
type CommandInfo ¶
type Entry ¶
type Entry interface {
Desc
GetPayload() []byte
SetInfo(any)
GetInfo() any
GetInfoBuf() []byte
SetInfoBuf(buf []byte)
SetPayload([]byte) error
UnmarshalFromNode([]byte, bool) error
Unmarshal(buf []byte) error
Marshal() (buf []byte, err error)
ReadFrom(io.Reader) (int64, error)
ReadAt(r *os.File, offset int) (int, error)
WriteTo(io.Writer) (int64, error)
PrepareWrite()
GetLsn() (gid uint32, lsn uint64)
WaitDone() error
DoneWithErr(error)
GetError() error
Free()
Duration() time.Duration
StartTime()
PrintTime()
IsPrintTime() bool
}
Click to show internal directories.
Click to hide internal directories.