Documentation ¶
Index ¶
- Constants
- func UnmarshalEntry(b []byte) (any, error)
- 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) GetVersion() uint16
- 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 (desc Base) SetVersion(t uint16)
- func (b *Base) StartTime()
- func (desc Base) TotalSize() int
- func (desc Base) TotalSizeExpectMeta() int
- func (b *Base) Unmarshal(buf []byte) error
- func (b *Base) UnmarshalBinary(buf []byte) (n int64, err 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 ( VersionOffset = int(unsafe.Sizeof(uint16(0))) PayloadSizeOffset = VersionOffset + int(unsafe.Sizeof(IOET_WALEntry_Invalid)) InfoSizeOffset = VersionOffset + int(unsafe.Sizeof(IOET_WALEntry_Invalid)+unsafe.Sizeof(uint32(0))) DescriptorSize = VersionOffset + int(unsafe.Sizeof(IOET_WALEntry_Invalid)+2*unsafe.Sizeof(uint32(0))) )
type uint16 version uint16 payload size uint32 info size uint32
View Source
const ( IOET_WALEntry_V1 uint16 = 1 IOET_WALEntry_Invalid uint16 = 2000 IOET_WALEntry_Checkpoint uint16 = 2001 IOET_WALEntry_PostCommit uint16 = 2002 IOET_WALEntry_Uncommitted uint16 = 2003 IOET_WALEntry_Txn uint16 = 2004 IOET_WALEntry_Test uint16 = 2005 IOET_WALEntry_CustomizedStart uint16 = 2006 IOET_WALEntry_CurrVer = IOET_WALEntry_V1 )
View Source
const ( GTInvalid uint32 = iota GTNoop GTCKp GTInternal GTCustomizedStart )
Variables ¶
This section is empty.
Functions ¶
func UnmarshalEntry ¶ added in v0.8.0
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) GetVersion ¶ added in v0.8.0
func (desc Base) GetVersion() uint16
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) SetVersion ¶ added in v0.8.0
func (desc Base) SetVersion(t uint16)
func (Base) TotalSizeExpectMeta ¶
func (desc Base) TotalSizeExpectMeta() int
func (*Base) UnmarshalBinary ¶ added in v0.8.0
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) UnmarshalBinary(buf []byte) (n int64, err 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.