Documentation ¶
Overview ¶
Generated by the generator, DO NOT modify manually
Index ¶
Constants ¶
View Source
const ( RecordNone uint64 = iota RecordInsert RecordDelete )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDType ¶
type IDType struct { //+field:natural Producer uint64 `tlv:"0xa1"` //+field:natural Clock uint64 `tlv:"0xa3"` }
func ParseIDType ¶
func ParseIDType(reader enc.ParseReader, ignoreCritical bool) (*IDType, error)
type IDTypeEncoder ¶
type IDTypeEncoder struct {
// contains filtered or unexported fields
}
func (*IDTypeEncoder) EncodeInto ¶
func (encoder *IDTypeEncoder) EncodeInto(value *IDType, buf []byte)
func (*IDTypeEncoder) Init ¶
func (encoder *IDTypeEncoder) Init(value *IDType)
type IDTypeParsingContext ¶
type IDTypeParsingContext struct { }
func (*IDTypeParsingContext) Init ¶
func (context *IDTypeParsingContext) Init()
func (*IDTypeParsingContext) Parse ¶
func (context *IDTypeParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*IDType, error)
type Item ¶
type Item[V any] struct { ID IDType Parent *Doc[V] Left *Item[V] Right *Item[V] Origin *IDType RightOrigin *IDType Content V Deleted bool }
func (*Item[V]) InsertInto ¶
InsertInto inserts new item i (with Origin==Left and RightOrigin==Right) into d
type Record ¶
type Record struct { //+field:natural RecordType uint64 `tlv:"0xa5"` //+field:struct:IDType ID *IDType `tlv:"0xa7"` //+field:struct:IDType Origin *IDType `tlv:"0xa9"` //+field:struct:IDType RightOrigin *IDType `tlv:"0xaa"` //+field:string Content string `tlv:"0xac"` }
func ParseRecord ¶
func ParseRecord(reader enc.ParseReader, ignoreCritical bool) (*Record, error)
type RecordEncoder ¶
type RecordEncoder struct { ID_encoder IDTypeEncoder Origin_encoder IDTypeEncoder RightOrigin_encoder IDTypeEncoder // contains filtered or unexported fields }
func (*RecordEncoder) EncodeInto ¶
func (encoder *RecordEncoder) EncodeInto(value *Record, buf []byte)
func (*RecordEncoder) Init ¶
func (encoder *RecordEncoder) Init(value *Record)
type RecordParsingContext ¶
type RecordParsingContext struct { ID_context IDTypeParsingContext Origin_context IDTypeParsingContext RightOrigin_context IDTypeParsingContext }
func (*RecordParsingContext) Init ¶
func (context *RecordParsingContext) Init()
func (*RecordParsingContext) Parse ¶
func (context *RecordParsingContext) Parse(reader enc.ParseReader, ignoreCritical bool) (*Record, error)
type TextDoc ¶
type TextDoc struct {
// contains filtered or unexported fields
}
func NewTextDoc ¶
func (*TextDoc) HandleRecord ¶
Click to show internal directories.
Click to hide internal directories.