Versions in this module Expand all Collapse all v0 v0.0.2 Feb 23, 2026 Changes in this version + const ActionAdd + const ActionDelete + const ActionUpdate + const BIT1 + const BIT2 + const BIT3 + const BIT4 + const BIT5 + const BIT6 + const BIT7 + const BIT8 + const BITS0 + const BITS1 + const BITS2 + const BITS3 + const BITS4 + const BITS5 + const BITS6 + const BITS7 + const BITS8 + const DefaultNodeName + const KeywordUndefined + const MessageAwareness + const MessagePermissionDenied + const MessageSync + const MessageYjsSyncStep1 + const MessageYjsSyncStep2 + const MessageYjsUpdate + const OptKeyAutoLoad + const OptKeyGC + const OptKeyMeta + const OutdatedTimeout + const RecordPositionUnit + const RefContentAny + const RefContentBinary + const RefContentDeleted + const RefContentDoc + const RefContentEmbed + const RefContentFormat + const RefContentJson + const RefContentString + const RefContentType + const RefGC + const RefSkip + const StructGCRefNumber + const StructSkipRefNumber + const YArrayRefID + const YMapRefID + const YTextRefID + const YXmlElementRefID + const YXmlFragmentRefID + const YXmlHookRefID + const YXmlTextRefID + var ContentRefs = []func(*UpdateDecoderV1) (IAbstractContent, error) + var DefaultGCFilter = func(item *Item) bool + var ErrInvalidData = errors.New("invalid data error") + var GlobalSearchMarkerTimestamp = 0 + var Log = func(a ...interface{}) + var Logf = func(format string, a ...interface{}) + var Null = NullType + var ReadAnyLookupTable = []func(decoder *bytes.Buffer) (any, error) + var Undefined = UndefinedType + func AddChangedTypeToTransaction(trans *Transaction, t IAbstractType, parentSub string) + func AddEventHandlerListener(eventHandler *EventHandler, f EventListener) + func AddStruct(store *StructStore, st IAbstractStruct) error + func AddToDeleteSet(ds *DeleteSet, client Number, clock Number, length Number) + func ApplyAwarenessUpdate(awareness *Awareness, update []byte, origin interface{}) + func ApplyUpdate(ydoc *Doc, update []uint8, transactionOrigin interface{}) + func ApplyUpdateV2(ydoc *Doc, update []uint8, transactionOrigin interface{}, ...) + func ArrayLast(a ArrayAny) (interface{}, error) + func CallAll(fs *[]func(...interface{}), args ArrayAny, i int) + func CallEventHandlerListeners(eventHandler *EventHandler, arg0, arg1 interface{}) + func CallTypeObservers(t IAbstractType, trans *Transaction, event IEventType) + func CharCodeAt(str string, pos Number) (uint16, error) + func CleanupContextlessFormattingGap(trans *Transaction, item *Item) + func CleanupTransactions(transactionCleanups []*Transaction, i Number) + func ClearInterval(t *time.Timer) + func CompareIDs(a *ID, b *ID) bool + func CompareRelativePositions(a, b *RelativePosition) bool + func Conditional(cond bool, a interface{}, b interface{}) interface + func DecodeStateVector(decodedState []uint8) map[Number]Number + func DiffUpdate(update []uint8, sv []uint8) []uint8 + func DiffUpdateV2(update []uint8, sv []uint8, YDecoder func([]byte) *UpdateDecoderV1, ...) []uint8 + func DiffUpdates(update []uint8, sv []uint8, maxUpdateSize int) [][]uint8 + func DiffUpdatesV2(update []uint8, sv []uint8, YDecoder func([]byte) *UpdateDecoderV1, ...) [][]uint8 + func EncodeAwarenessUpdate(awareness *Awareness, clients []Number, states map[Number]Object) []byte + func EncodeRelativePosition(rpos *RelativePosition) []uint8 + func EncodeSnapshot(snapshot *Snapshot) []uint8 + func EncodeSnapshotV2(snapshot *Snapshot, encoder *UpdateEncoderV1) []uint8 + func EncodeStateAsUpdate(doc *Doc, encodedTargetStateVector []uint8) []uint8 + func EncodeStateAsUpdateV2(doc *Doc, encodedTargetStateVector []uint8, encoder *UpdateEncoderV1) []uint8 + func EncodeStateVector(doc *Doc, m map[Number]Number, encoder *UpdateEncoderV1) []uint8 + func EncodeStateVectorFromUpdate(update []uint8) []uint8 + func EncodeStateVectorFromUpdateV2(update []uint8, YEncoder func() *UpdateEncoderV1, ...) []uint8 + func EncodeStateVectorV2(doc *Doc, m map[Number]Number, encoder *UpdateEncoderV1) []uint8 + func EqualAttrs(a, b interface{}) bool + func EqualContentFormat(a, b interface{}) bool + func EqualSnapshots(snap1, snap2 *Snapshot) bool + func FindRootTypeKey(t IAbstractType) string + func FinishLazyStructWriting(lazyWriter *LazyStructWriter) + func FlushLazyStructWriter(lazyWriter *LazyStructWriter) + func FollowRedone(store *StructStore, id ID) (*Item, Number) + func FormatText(trans *Transaction, parent IAbstractType, currPos *ItemTextListPosition, ...) + func GenerateUpdate(lazyWriter *LazyStructWriter, maxUpdateSize int) []uint8 + func GenerateUpdates(lazyWriter *LazyStructWriter, maxUpdateSize int) [][]uint8 + func GetPathTo(parent IAbstractType, child IAbstractType) []interface + func GetStateVector(store *StructStore) map[Number]Number + func GetUnixTime() int64 + func InsertNegatedAttributes(trans *Transaction, parent IAbstractType, currPos *ItemTextListPosition, ...) + func InsertText(trans *Transaction, parent IAbstractType, currPos *ItemTextListPosition, ...) + func InsertionSort(a []*LazyStructReader) + func IntegretyCheck(store *StructStore) error + func IsDeleted(ds *DeleteSet, id *ID) bool + func IsGCPtr(obj interface{}) bool + func IsIAbstractType(a interface{}) bool + func IsIDPtr(obj interface{}) bool + func IsItemPtr(obj interface{}) bool + func IsNull(obj any) bool + func IsParentOf(parent IAbstractType, child *Item) bool + func IsPtr(obj any) bool + func IsSameType(a interface{}, b interface{}) bool + func IsString(obj interface{}) bool + func IsUndefined(obj any) bool + func IsVisible(item *Item, snapshot *Snapshot) bool + func IsYString(obj interface{}) bool + func IterateDeletedStructs(trans *Transaction, ds *DeleteSet, f func(s IAbstractStruct)) + func IterateStructs(trans *Transaction, ss *[]IAbstractStruct, clockStart Number, length Number, ...) + func JsonObject(data string) interface + func JsonString(object interface{}) string + func KeepItem(item *Item, keep bool) + func LogUpdate(update []uint8, YDecoder func([]byte) *UpdateDecoderV1) + func LogUpdateV2(update []uint8, YDecoder func([]byte) *UpdateDecoderV1) + func MapAny(m map[Number]Number, f func(key, value Number) bool) bool + func MapSortedRange(m map[Number]Number, isInc bool, f func(key, value Number)) + func MergeString(str1, str2 string) string + func MergeUpdates(updates [][]uint8, YDecoder func([]byte) *UpdateDecoderV1, ...) []uint8 + func MergeUpdatesV2(updates [][]uint8, YDecoder func([]byte) *UpdateDecoderV1, ...) []uint8 + func MinimizeAttributeChanges(currPos *ItemTextListPosition, attributes Object) + func ModifyAwarenessUpdate(update []byte, modify func(interface{}) interface{}) []byte + func NewDecoder(buf []byte) *bytes.Buffer + func NewEncoder() *bytes.Buffer + func OverwriteMarker(marker *ArraySearchMarker, p *Item, index Number) + func ParseUpdateMeta(update []uint8) (map[Number]Number, map[Number]Number) + func ParseUpdateMetaV2(update []uint8, YDecoder func([]byte) *UpdateDecoderV1) (map[Number]Number, map[Number]Number) + func ReadAndApplyDeleteSet(decoder *UpdateDecoderV1, trans *Transaction, store *StructStore) []uint8 + func ReadAny(decoder *bytes.Buffer) (any, error) + func ReadArray(decoder *bytes.Buffer) (any, error) + func ReadAuthMessage(decoder *bytes.Buffer, doc *Doc, ...) + func ReadBigInt64(decoder *bytes.Buffer) (any, error) + func ReadClientsStructRefs(decoder *UpdateDecoderV1, doc *Doc) (map[Number]*ClientStructRef, error) + func ReadFloat32(decoder *bytes.Buffer) (any, error) + func ReadFloat64(decoder *bytes.Buffer) (any, error) + func ReadObject(decoder *bytes.Buffer) (any, error) + func ReadStateVector(decoder *UpdateDecoderV1) map[Number]Number + func ReadString(decoder *bytes.Buffer) (string, error) + func ReadSyncMessage(decoder *UpdateDecoderV1, encoder *UpdateEncoderV1, doc *Doc, ...) int + func ReadSyncStep1(decoder *UpdateDecoderV1, encoder *UpdateEncoderV1, doc *Doc) + func ReadSyncStep2(decoder *UpdateDecoderV1, doc *Doc, transactionOrigin interface{}) + func ReadUint8(decoder *bytes.Buffer) (uint8, error) + func ReadUpdate(decoder *UpdateDecoderV1, ydoc *Doc, transactionOrigin interface{}) + func ReadUpdateV2(decoder *UpdateDecoderV1, ydoc *Doc, transactionOrigin interface{}, ...) + func ReadVarInt(decoder *bytes.Buffer) (any, error) + func ReadVarString(decoder *bytes.Buffer) (any, error) + func ReadVarUint(decoder *bytes.Buffer) uint64 + func ReadVarUint8Array(decoder *bytes.Buffer) (any, error) + func RefreshMarkerTimestamp(marker *ArraySearchMarker) + func RemoveAllEventHandlerListeners(eventHandler *EventHandler) + func RemoveAwarenessStates(awareness *Awareness, clients []Number, origin interface{}) + func RemoveEventHandlerListener(eventHandler *EventHandler, f EventListener) + func ReplaceChar(str string, pos Number, char uint16) string + func ReplaceStruct(store *StructStore, item IAbstractStruct, newItem IAbstractStruct) error + func SortAndMergeDeleteSet(ds *DeleteSet) + func SpliceStruct(ss *[]IAbstractStruct, start Number, deleteCount Number, ...) + func SpliceStructInner(ss *[]IAbstractStruct, start Number, deleteCount Number, ...) + func SplitSnapshotAffectedStructs(trans *Transaction, snapshot *Snapshot) + func StringHeader(str string, offset Number) string + func StringTail(str string, offset Number) string + func Transact(doc *Doc, f func(trans *Transaction), origin interface{}, local bool) + func TryGc(ds *DeleteSet, store *StructStore, gcFilter func(item *Item) bool) + func TryGcDeleteSet(ds *DeleteSet, store *StructStore, gcFilter func(item *Item) bool) + func TryMergeDeleteSet(ds *DeleteSet, store *StructStore) + func TryToMergeWithLeft(structs *[]IAbstractStruct, pos Number) + func TypeListDelete(trans *Transaction, parent IAbstractType, index Number, length Number) error + func TypeListForEach(t IAbstractType, f func(interface{}, Number, IAbstractType)) + func TypeListForEachSnapshot(t IAbstractType, f func(interface{}, Number, IAbstractType), ...) + func TypeListGet(t IAbstractType, index Number) interface + func TypeListInsertGenerics(trans *Transaction, parent IAbstractType, index Number, content ArrayAny) error + func TypeListInsertGenericsAfter(trans *Transaction, parent IAbstractType, referenceItem *Item, ...) error + func TypeMapDelete(trans *Transaction, parent IAbstractType, key string) + func TypeMapGet(parent IAbstractType, key string) interface + func TypeMapGetSnapshot(parent IAbstractType, key string, snapshot *Snapshot) interface + func TypeMapHas(parent IAbstractType, key string) bool + func TypeMapSet(trans *Transaction, parent IAbstractType, key string, value interface{}) error + func UpdateCurrentAttributes(currentAttributes Object, format *ContentFormat) + func UpdateMarkerChanges(searchMarker *[]*ArraySearchMarker, index Number, length Number) + func VenusApplyAwarenessUpdate(awareness *Awareness, update []byte) + func WriteAny(encoder *bytes.Buffer, any any) error + func WriteArray(encoder *bytes.Buffer, array []any) error + func WriteByte(encoder *bytes.Buffer, number uint8) + func WriteClientsStructs(encoder *UpdateEncoderV1, store *StructStore, _sm map[Number]Number) + func WriteDeleteSet(encoder *UpdateEncoderV1, ds *DeleteSet) + func WriteDeleteSetV2(encoder *UpdateEncoderV2, ds *DeleteSet) + func WriteDocumentStateVector(encoder *UpdateEncoderV1, doc *Doc) + func WriteFloat32(encoder *bytes.Buffer, f float32) + func WriteFloat64(encoder *bytes.Buffer, f float64) + func WriteInt64(encoder *bytes.Buffer, n int64) + func WriteObject(encoder *bytes.Buffer, obj Object) error + func WritePermissionDenied(encoder *bytes.Buffer, reason string) + func WriteRelativePosition(encoder *UpdateEncoderV1, rpos *RelativePosition) error + func WriteStateAsUpdate(encoder *UpdateEncoderV1, doc *Doc, targetStateVector map[Number]Number) + func WriteString(encoder *bytes.Buffer, str string) error + func WriteStructToLazyStructWriter(lazyWriter *LazyStructWriter, s IAbstractStruct, offset Number) + func WriteStructs(encoder *UpdateEncoderV1, structs *[]IAbstractStruct, client, clock Number) + func WriteStructsFromTransaction(encoder *UpdateEncoderV1, trans *Transaction) + func WriteSyncStep1(encoder *UpdateEncoderV1, doc *Doc) + func WriteSyncStep1FromUpdate(encoder *UpdateEncoderV1, update []uint8) + func WriteSyncStep2(encoder *UpdateEncoderV1, doc *Doc, encodedStateVector []byte) + func WriteSyncStep2FromUpdate(encoder *UpdateEncoderV1, update []byte, encodedStateVector []byte) + func WriteUint8Array(encoder *bytes.Buffer, buf []uint8) + func WriteUpdate(encoder *UpdateEncoderV1, update []byte) + func WriteUpdateMessageFromTransaction(encoder *UpdateEncoderV1, trans *Transaction) bool + func WriteVarInt(encoder *bytes.Buffer, number int) + func WriteVarUint(encoder *bytes.Buffer, number uint64) + func WriteVarUint8Array(encoder *bytes.Buffer, buf []uint8) + type AbsolutePosition struct + Assoc Number + Index Number + Type IAbstractType + func CreateAbsolutePositionFromRelativePosition(rpos *RelativePosition, doc *Doc) *AbsolutePosition + func NewAbsolutePosition(t IAbstractType, index, assoc Number) *AbsolutePosition + type AbstractStruct struct + ID ID + Length Number + func (s *AbstractStruct) Deleted() bool + func (s *AbstractStruct) GetID() *ID + func (s *AbstractStruct) GetLength() Number + func (s *AbstractStruct) GetMissing(trans *Transaction, store *StructStore) (Number, error) + func (s *AbstractStruct) Integrate(trans *Transaction, offset Number) + func (s *AbstractStruct) MergeWith(right IAbstractStruct) bool + func (s *AbstractStruct) SetLength(length Number) + func (s *AbstractStruct) Write(encoder *UpdateEncoderV1, offset Number) + type AbstractType struct + DEH *EventHandler + Doc *Doc + EH *EventHandler + Item *Item + Length Number + Map map[string]*Item + SearchMarker []*ArraySearchMarker + Start *Item + func (t *AbstractType) CallObserver(trans *Transaction, parentSubs Set) + func (t *AbstractType) Clone() IAbstractType + func (t *AbstractType) Copy() IAbstractType + func (t *AbstractType) First() *Item + func (t *AbstractType) GetDEH() *EventHandler + func (t *AbstractType) GetDoc() *Doc + func (t *AbstractType) GetEH() *EventHandler + func (t *AbstractType) GetItem() *Item + func (t *AbstractType) GetLength() Number + func (t *AbstractType) GetMap() map[string]*Item + func (t *AbstractType) GetSearchMarker() *[]*ArraySearchMarker + func (t *AbstractType) Integrate(y *Doc, item *Item) + func (t *AbstractType) Observe(f func(interface{}, interface{})) + func (t *AbstractType) ObserveDeep(f func(interface{}, interface{})) + func (t *AbstractType) Parent() IAbstractType + func (t *AbstractType) SetLength(number Number) + func (t *AbstractType) SetMap(m map[string]*Item) + func (t *AbstractType) SetSearchMarker(marker []*ArraySearchMarker) + func (t *AbstractType) SetStartItem(item *Item) + func (t *AbstractType) StartItem() *Item + func (t *AbstractType) ToJson() interface{} + func (t *AbstractType) Unobserve(f func(interface{}, interface{})) + func (t *AbstractType) UnobserveDeep(f func(interface{}, interface{})) + func (t *AbstractType) UpdateLength(n Number) + func (t *AbstractType) Write(encoder *UpdateEncoderV1) + type ArrayAny = []any + func SpliceArray(a *ArrayAny, start Number, deleteCount Number, elements ArrayAny) ArrayAny + func SpliceArrayInner(a *ArrayAny, start Number, deleteCount Number, elements ArrayAny) ArrayAny + func TypeListMap(t IAbstractType, f func(c interface{}, i Number, _ IAbstractType) interface{}) ArrayAny + func TypeListSlice(t IAbstractType, start, end Number) ArrayAny + func TypeListToArray(t IAbstractType) ArrayAny + func TypeListToArraySnapshot(t IAbstractType, snapshot *Snapshot) ArrayAny + func Unshift(a ArrayAny, e interface{}) ArrayAny + type ArraySearchMarker struct + Index Number + P *Item + Timestamp Number + func FindMarker(yarray IAbstractType, index Number) *ArraySearchMarker + func MarkPosition(searchMarker *[]*ArraySearchMarker, p *Item, index Number) *ArraySearchMarker + func NewArraySearchMarker(p *Item, index Number) *ArraySearchMarker + type Awareness struct + ClientID Number + Doc *Doc + Meta map[Number]Object + States map[Number]Object + func NewAwareness(doc *Doc) *Awareness + func (a *Awareness) Destroy() + func (a *Awareness) GetLocalState() Object + func (a *Awareness) GetStates() map[Number]Object + func (a *Awareness) SetLocalState(state Object) + func (a *Awareness) SetLocalStateField(field string, value interface{}) + type ClientStruct struct + Client Number + End int + PositionList []PositionInfo + RestEncoder []uint8 + Start int + Written Number + type ClientStructRef struct + I Number + Refs []IAbstractStruct + type ContentAny struct + Arr ArrayAny + func NewContentAny(arr ArrayAny) *ContentAny + func (c *ContentAny) Copy() IAbstractContent + func (c *ContentAny) Delete(trans *Transaction) + func (c *ContentAny) GC(store *StructStore) + func (c *ContentAny) GetContent() ArrayAny + func (c *ContentAny) GetLength() Number + func (c *ContentAny) GetRef() uint8 + func (c *ContentAny) Integrate(trans *Transaction, item *Item) + func (c *ContentAny) IsCountable() bool + func (c *ContentAny) MergeWith(right IAbstractContent) bool + func (c *ContentAny) Splice(offset Number) IAbstractContent + func (c *ContentAny) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentBinary struct + Content []uint8 + func NewContentBinary(content []uint8) *ContentBinary + func (c *ContentBinary) Copy() IAbstractContent + func (c *ContentBinary) Delete(trans *Transaction) + func (c *ContentBinary) GC(store *StructStore) + func (c *ContentBinary) GetContent() ArrayAny + func (c *ContentBinary) GetLength() Number + func (c *ContentBinary) GetRef() uint8 + func (c *ContentBinary) Integrate(trans *Transaction, item *Item) + func (c *ContentBinary) IsCountable() bool + func (c *ContentBinary) MergeWith(right IAbstractContent) bool + func (c *ContentBinary) Splice(offset Number) IAbstractContent + func (c *ContentBinary) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentDeleted struct + Length Number + func NewContentDeleted(length Number) *ContentDeleted + func (c *ContentDeleted) Copy() IAbstractContent + func (c *ContentDeleted) Delete(trans *Transaction) + func (c *ContentDeleted) GC(store *StructStore) + func (c *ContentDeleted) GetContent() ArrayAny + func (c *ContentDeleted) GetLength() Number + func (c *ContentDeleted) GetRef() uint8 + func (c *ContentDeleted) Integrate(trans *Transaction, item *Item) + func (c *ContentDeleted) IsCountable() bool + func (c *ContentDeleted) MergeWith(right IAbstractContent) bool + func (c *ContentDeleted) Splice(offset Number) IAbstractContent + func (c *ContentDeleted) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentDoc struct + Doc *Doc + Opts Object + func NewContentDoc(doc *Doc) *ContentDoc + func (c *ContentDoc) Copy() IAbstractContent + func (c *ContentDoc) Delete(trans *Transaction) + func (c *ContentDoc) GC(store *StructStore) + func (c *ContentDoc) GetContent() ArrayAny + func (c *ContentDoc) GetLength() Number + func (c *ContentDoc) GetRef() uint8 + func (c *ContentDoc) Integrate(trans *Transaction, item *Item) + func (c *ContentDoc) IsCountable() bool + func (c *ContentDoc) MergeWith(right IAbstractContent) bool + func (c *ContentDoc) Splice(offset Number) IAbstractContent + func (c *ContentDoc) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentEmbed struct + Embed interface{} + func NewContentEmbed(embed interface{}) *ContentEmbed + func (c *ContentEmbed) Copy() IAbstractContent + func (c *ContentEmbed) Delete(trans *Transaction) + func (c *ContentEmbed) GC(store *StructStore) + func (c *ContentEmbed) GetContent() ArrayAny + func (c *ContentEmbed) GetLength() Number + func (c *ContentEmbed) GetRef() uint8 + func (c *ContentEmbed) Integrate(trans *Transaction, item *Item) + func (c *ContentEmbed) IsCountable() bool + func (c *ContentEmbed) MergeWith(right IAbstractContent) bool + func (c *ContentEmbed) Splice(offset Number) IAbstractContent + func (c *ContentEmbed) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentFormat struct + Key string + Value interface{} + func NewContentFormat(key string, value interface{}) *ContentFormat + func (c *ContentFormat) Copy() IAbstractContent + func (c *ContentFormat) Delete(trans *Transaction) + func (c *ContentFormat) GC(store *StructStore) + func (c *ContentFormat) GetContent() ArrayAny + func (c *ContentFormat) GetLength() Number + func (c *ContentFormat) GetRef() uint8 + func (c *ContentFormat) Integrate(trans *Transaction, item *Item) + func (c *ContentFormat) IsCountable() bool + func (c *ContentFormat) MergeWith(right IAbstractContent) bool + func (c *ContentFormat) Splice(offset Number) IAbstractContent + func (c *ContentFormat) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentJson struct + Arr ArrayAny + func NewContentJson(arr ArrayAny) *ContentJson + func (c *ContentJson) Copy() IAbstractContent + func (c *ContentJson) Delete(trans *Transaction) + func (c *ContentJson) GC(store *StructStore) + func (c *ContentJson) GetContent() ArrayAny + func (c *ContentJson) GetLength() Number + func (c *ContentJson) GetRef() uint8 + func (c *ContentJson) Integrate(trans *Transaction, item *Item) + func (c *ContentJson) IsCountable() bool + func (c *ContentJson) MergeWith(right IAbstractContent) bool + func (c *ContentJson) Splice(offset Number) IAbstractContent + func (c *ContentJson) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentString struct + Str string + func NewContentString(str string) *ContentString + func (c *ContentString) Copy() IAbstractContent + func (c *ContentString) Delete(trans *Transaction) + func (c *ContentString) GC(store *StructStore) + func (c *ContentString) GetContent() ArrayAny + func (c *ContentString) GetLength() Number + func (c *ContentString) GetRef() uint8 + func (c *ContentString) Integrate(trans *Transaction, item *Item) + func (c *ContentString) IsCountable() bool + func (c *ContentString) MergeWith(right IAbstractContent) bool + func (c *ContentString) Splice(offset Number) IAbstractContent + func (c *ContentString) Write(encoder *UpdateEncoderV1, offset Number) error + type ContentType struct + Type IAbstractType + func NewContentType(t IAbstractType) *ContentType + func (c *ContentType) Copy() IAbstractContent + func (c *ContentType) Delete(trans *Transaction) + func (c *ContentType) GC(store *StructStore) + func (c *ContentType) GetContent() ArrayAny + func (c *ContentType) GetLength() Number + func (c *ContentType) GetRef() uint8 + func (c *ContentType) Integrate(trans *Transaction, item *Item) + func (c *ContentType) IsCountable() bool + func (c *ContentType) MergeWith(right IAbstractContent) bool + func (c *ContentType) Splice(offset Number) IAbstractContent + func (c *ContentType) Write(encoder *UpdateEncoderV1, offset Number) error + type CurrWrite struct + Offset Number + S IAbstractStruct + type DSEncoderV1 struct + RestEncoder *bytes.Buffer + func (v1 *DSEncoderV1) ResetDsCurVal() + func (v1 *DSEncoderV1) ToUint8Array() []uint8 + func (v1 *DSEncoderV1) WriteDsClock(clock Number) + func (v1 *DSEncoderV1) WriteDsLen(length Number) + type DSEncoderV2 struct + DsCurrVal Number + RestEncoder *bytes.Buffer + func (v2 *DSEncoderV2) ResetDsCurVal() + func (v2 *DSEncoderV2) ToUint8Array() []uint8 + func (v2 *DSEncoderV2) WriteDsClock(clock Number) + func (v2 *DSEncoderV2) WriteDsLen(length Number) + type DeleteItem struct + Clock Number + Length Number + func NewDeleteItem(clock Number, length Number) *DeleteItem + type DeleteSet struct + Clients map[Number][]*DeleteItem + func MergeDeleteSets(dss []*DeleteSet) *DeleteSet + func NewDeleteSet() *DeleteSet + func NewDeleteSetFromStructStore(ss *StructStore) *DeleteSet + func ReadDeleteSet(decoder *UpdateDecoderV1) *DeleteSet + type Doc struct + AutoLoad bool + ClientID Number + GC bool + GCFilter func(item *Item) bool + Guid string + Item *Item + Meta interface{} + Share map[string]IAbstractType + ShouldLoad bool + Store *StructStore + SubDocs Set + Trans *Transaction + TransCleanup []*Transaction + func CreateDocFromSnapshot(originDoc *Doc, snapshot *Snapshot, newDoc *Doc) (*Doc, error) + func NewDoc(guid string, gc bool, gcFilter func(item *Item) bool, meta interface{}, ...) *Doc + func (doc *Doc) Destroy() + func (doc *Doc) Get(name string, typeConstructor TypeConstructor) (IAbstractType, error) + func (doc *Doc) GetArray(name string) *YArray + func (doc *Doc) GetMap(name string) IAbstractType + func (doc *Doc) GetSubdocGuids() Set + func (doc *Doc) GetSubdocs() Set + func (doc *Doc) GetText(name string) *YText + func (doc *Doc) GetXmlFragment(name string) IAbstractType + func (doc *Doc) Load() + func (doc *Doc) Off(eventName string, handler *ObserverHandler) + func (doc *Doc) On(eventName string, handler *ObserverHandler) + func (doc *Doc) ToJson() Object + func (doc *Doc) Transact(f func(trans *Transaction), origin interface{}) + type EventAction struct + Action string + NewValue interface{} + OldValue interface{} + type EventHandler struct + L []EventListener + func NewEventHandler() *EventHandler + type EventListener func(interface{}, interface{}) + type EventOperator struct + Attributes Object + Delete Number + Insert interface{} + IsAttributesDefined bool + IsDeleteDefined bool + IsInsertDefined bool + IsRetainDefined bool + Retain Number + type GC struct + func NewGC(id ID, length Number) *GC + func (gc *GC) Delete() + func (gc *GC) Deleted() bool + func (gc *GC) GetMissing(trans *Transaction, store *StructStore) (Number, error) + func (gc *GC) Integrate(trans *Transaction, offset Number) + func (gc *GC) MergeWith(right IAbstractStruct) bool + func (gc *GC) Write(encoder *UpdateEncoderV1, offset Number) + type IAbstractContent interface + Copy func() IAbstractContent + Delete func(trans *Transaction) + GC func(store *StructStore) + GetContent func() ArrayAny + GetLength func() Number + GetRef func() uint8 + Integrate func(trans *Transaction, item *Item) + IsCountable func() bool + MergeWith func(right IAbstractContent) bool + Splice func(offset Number) IAbstractContent + Write func(encoder *UpdateEncoderV1, offset Number) error + func ReadContentAny(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentBinary(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentDeleted(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentDoc(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentEmbed(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentFormat(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentJson(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentString(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadContentType(decoder *UpdateDecoderV1) (IAbstractContent, error) + func ReadItemContent(decoder *UpdateDecoderV1, info uint8) IAbstractContent + type IAbstractStruct interface + Deleted func() bool + GetID func() *ID + GetLength func() Number + GetMissing func(trans *Transaction, store *StructStore) (Number, error) + Integrate func(trans *Transaction, offset Number) + MergeWith func(right IAbstractStruct) bool + SetLength func(length Number) + Write func(encoder *UpdateEncoderV1, offset Number) + func Find(store *StructStore, id ID) (IAbstractStruct, error) + func GetItem(store *StructStore, id ID) IAbstractStruct + func SliceStruct(left IAbstractStruct, diff Number) IAbstractStruct + type IAbstractType interface + CallObserver func(trans *Transaction, parentSubs Set) + Clone func() IAbstractType + Copy func() IAbstractType + First func() *Item + GetDEH func() *EventHandler + GetDoc func() *Doc + GetEH func() *EventHandler + GetItem func() *Item + GetLength func() Number + GetMap func() map[string]*Item + GetSearchMarker func() *[]*ArraySearchMarker + Integrate func(doc *Doc, item *Item) + Observe func(f func(interface{}, interface{})) + ObserveDeep func(f func(interface{}, interface{})) + Parent func() IAbstractType + SetLength func(number Number) + SetMap func(map[string]*Item) + SetSearchMarker func(mark []*ArraySearchMarker) + SetStartItem func(item *Item) + StartItem func() *Item + ToJson func() interface{} + Unobserve func(f func(interface{}, interface{})) + UnobserveDeep func(f func(interface{}, interface{})) + UpdateLength func(n Number) + Write func(encoder *UpdateEncoderV1) + func NewAbstractType() IAbstractType + func NewYArrayType() IAbstractType + func NewYMapType() IAbstractType + func NewYTextType() IAbstractType + func NewYXmlFragmentType() IAbstractType + type ID struct + Client Number + Clock Number + func GenID(client Number, clock Number) ID + func GetItemID(item *Item) *ID + func GetItemLastID(item *Item) *ID + func NextID(trans *Transaction) ID + type IEventType interface + GetCurrentTarget func() IAbstractType + GetTarget func() IAbstractType + Path func() []interface{} + SetCurrentTarget func(t IAbstractType) + func ArrayFilter(a []IEventType, filter func(e IEventType) bool) []IEventType + type IXmlType interface + ToString func() string + type Item struct + Content IAbstractContent + Info uint8 + Left *Item + Origin *ID + Parent interface{} + ParentSub string + Redone *ID + Right *Item + RightOrigin *ID + func GetItemCleanEnd(trans *Transaction, store *StructStore, id ID) *Item + func GetItemCleanStart(trans *Transaction, id ID) *Item + func GetTypeChildren(t IAbstractType) []*Item + func NewItem(id ID, left *Item, origin *ID, right *Item, rightOrigin *ID, ...) *Item + func RedoItem(trans *Transaction, item *Item, redoItems Set) *Item + func SplitItem(trans *Transaction, leftItem *Item, diff Number) *Item + func (item *Item) Countable() bool + func (item *Item) Delete(trans *Transaction) + func (item *Item) Deleted() bool + func (item *Item) GC(store *StructStore, parentGCd bool) + func (item *Item) GetMissing(trans *Transaction, store *StructStore) (Number, error) + func (item *Item) Integrate(trans *Transaction, offset Number) + func (item *Item) Keep() bool + func (item *Item) LastID() *ID + func (item *Item) MarkDeleted() + func (item *Item) Marker() bool + func (item *Item) MergeWith(right IAbstractStruct) bool + func (item *Item) Next() *Item + func (item *Item) Prev() *Item + func (item *Item) SetCountable(countable bool) + func (item *Item) SetDeleted(deleted bool) + func (item *Item) SetKeep(keep bool) + func (item *Item) SetMarker(marked bool) + func (item *Item) Write(encoder *UpdateEncoderV1, offset Number) + type ItemTextListPosition struct + CurrentAttributes Object + Index Number + Left *Item + Right *Item + func DeleteText(trans *Transaction, currPos *ItemTextListPosition, length Number) *ItemTextListPosition + func FindNextPosition(trans *Transaction, pos *ItemTextListPosition, count Number) *ItemTextListPosition + func FindPosition(trans *Transaction, parent IAbstractType, index Number) *ItemTextListPosition + func NewItemTextListPosition(left, right *Item, index Number, currentAttributes Object) *ItemTextListPosition + func (it *ItemTextListPosition) Forward() error + type LazyStructReader struct + Curr IAbstractStruct + Done bool + FilterSkips bool + Gen func() IAbstractStruct + func NewLazyStructReader(decoder *UpdateDecoderV1, filterSkips bool, stopIfError bool) *LazyStructReader + func (r *LazyStructReader) Next() IAbstractStruct + type LazyStructReaderGenerator struct + func CreateLazyStructReaderGenerator(decoder *UpdateDecoderV1, stopIfError bool) LazyStructReaderGenerator + func (l LazyStructReaderGenerator) Next() func() IAbstractStruct + type LazyStructWriter struct + ClientStructs []ClientStruct + CurrClient Number + Encoder *UpdateEncoderV1 + NeedRecordPosition bool + PositionList []PositionInfo + StartClock Number + Written Number + func NewLazyStructWriter(encoder *UpdateEncoderV1) *LazyStructWriter + type NullType struct + type Number = int + func AwarenessStatesKeys(states map[Number]Object) []Number + func BinarySearch(ss []IAbstractStruct, clock Number, begin, end Number) (Number, error) + func CleanupFormattingGap(trans *Transaction, start *Item, end *Item, startAttributes Object, ...) Number + func CleanupYTextFormatting(t *YText) Number + func FindIndex(a ArrayAny, filter func(e interface{}) bool) Number + func FindIndexCleanStart(trans *Transaction, ss *[]IAbstractStruct, clock Number) (Number, error) + func FindIndexDS(dis []*DeleteItem, clock Number) (Number, error) + func FindIndexSS(ss []IAbstractStruct, clock Number) (Number, error) + func GenerateNewClientID() Number + func GetState(store *StructStore, client Number) Number + func Max(a, b Number) Number + func Min(a, b Number) Number + func StringLength(str string) Number + type NumberSlice []Number + func (ns NumberSlice) Filter(cond func(number Number) bool) NumberSlice + func (ns NumberSlice) Len() int + func (ns NumberSlice) Less(i, j int) bool + func (ns NumberSlice) Swap(i, j int) + type Object = map[string]any + func InsertAttributes(trans *Transaction, parent IAbstractType, currPos *ItemTextListPosition, ...) Object + func NewObject() Object + func RelativePositionToJSON(rpos *RelativePosition) Object + func TypeMapGetAll(parent IAbstractType) Object + type Observable struct + Observers map[interface{}]Set + func NewObservable() *Observable + func (o *Observable) Destroy() + func (o *Observable) Emit(name interface{}, v ...interface{}) + func (o *Observable) Off(name interface{}, handler *ObserverHandler) + func (o *Observable) On(name interface{}, handle *ObserverHandler) + func (o *Observable) Once(name interface{}, handler *ObserverHandler) + type ObserverHandler struct + Callback func(v ...interface{}) + Once bool + func NewObserverHandler(f func(v ...interface{})) *ObserverHandler + type PermanentUserData struct + Clients map[Number]string + Doc *Doc + Dss map[string]*DeleteSet + YUsers IAbstractType + func NewPermanentUserData(doc *Doc, storeType IAbstractType) *PermanentUserData + func (p *PermanentUserData) GetUserByClientID(clientID Number) string + func (p *PermanentUserData) GetUserByDeletedID(id *ID) string + func (p *PermanentUserData) SetUserMapping(doc *Doc, clientID Number, userDescription string, ...) + type PositionInfo struct + Clock Number + StartByte int + StructNo int + type RelativePosition struct + Assoc Number + Item *ID + Tname string + Type *ID + func CreateRelativePositionFromJSON(json Object) *RelativePosition + func DecodeRelativePosition(uint8Array []uint8) *RelativePosition + func NewRelativePosition(t IAbstractType, item *ID, assoc Number) *RelativePosition + func NewRelativePositionFromTypeIndex(tp IAbstractType, index, assoc Number) *RelativePosition + func ReadRelativePosition(decoder *UpdateDecoderV1) *RelativePosition + type RestStructs struct + Missing map[Number]Number + Update []uint8 + func IntegrateStructs(trans *Transaction, store *StructStore, ...) *RestStructs + func NewRestStructs() *RestStructs + type Set map[any]bool + func NewSet() Set + func (s Set) Add(e any) + func (s Set) Delete(e any) + func (s Set) Has(e any) bool + func (s Set) Range(f func(element any)) + type Skip struct + func NewSkip(id ID, length Number) *Skip + func (s *Skip) Delete() + func (s *Skip) Deleted() bool + func (s *Skip) GetMissing(trans *Transaction, store *StructStore) (Number, error) + func (s *Skip) Integrate(trans *Transaction, offset Number) + func (s *Skip) MergeWith(right IAbstractStruct) bool + func (s *Skip) Write(encoder *UpdateEncoderV1, offset Number) + type Snapshot struct + Ds *DeleteSet + Sv map[Number]Number + func DecodeSnapshot(buf []uint8) *Snapshot + func DecodeSnapshotV2(buf []uint8) *Snapshot + func EmptySnapshot() *Snapshot + func NewSnapshot(ds *DeleteSet, sv map[Number]Number) *Snapshot + func NewSnapshotByDoc(doc *Doc) *Snapshot + type StackItem struct + Deletions *DeleteSet + Insertions *DeleteSet + Meta map[interface{}]interface{} + func NewStackItem(deletes *DeleteSet, insertions *DeleteSet) *StackItem + func PopStackItem(undoManager *UndoManager, stack []*StackItem, eventType string) *StackItem + type StructStore struct + Clients map[Number]*[]IAbstractStruct + PendingDs []uint8 + PendingStructs *RestStructs + func NewStructStore() *StructStore + func (ss *StructStore) GetStructs(client Number) []IAbstractStruct + type Transaction struct + AfterState map[Number]Number + BeforeState map[Number]Number + Changed map[interface{}]Set + ChangedParentTypes map[interface{}][]IEventType + DeleteSet *DeleteSet + Doc *Doc + Local bool + MergeStructs []IAbstractStruct + Meta map[interface{}]Set + Origin interface{} + SubdocsAdded Set + SubdocsLoaded Set + SubdocsRemoved Set + func NewTransaction(doc *Doc, origin interface{}, local bool) *Transaction + type TypeConstructor = func() IAbstractType + type UndefinedType struct + type UndoManager struct + DeleteFilter func(item *Item) bool + LastChange Number + RedoStack []*StackItem + Redoing bool + Scopes []IAbstractType + TrackedOrigins Set + UndoStack []*StackItem + Undoing bool + func NewUndoManager(typeScope IAbstractType, captureTimeout Number, ...) *UndoManager + func (u *UndoManager) Clear() + func (u *UndoManager) GetDoc() *Doc + func (u *UndoManager) Redo() *StackItem + func (u *UndoManager) StopCapturing() + func (u *UndoManager) Undo() *StackItem + type UpdateDecoderV1 struct + RestDecoder *bytes.Buffer + func NewUpdateDecoderV1(buf []byte) *UpdateDecoderV1 + func (v1 *UpdateDecoderV1) ReadAny() (any, error) + func (v1 *UpdateDecoderV1) ReadBuf() ([]uint8, error) + func (v1 *UpdateDecoderV1) ReadClient() (Number, error) + func (v1 *UpdateDecoderV1) ReadDsClock() (Number, error) + func (v1 *UpdateDecoderV1) ReadDsLen() (Number, error) + func (v1 *UpdateDecoderV1) ReadID() (*ID, error) + func (v1 *UpdateDecoderV1) ReadInfo() (uint8, error) + func (v1 *UpdateDecoderV1) ReadJson() (interface{}, error) + func (v1 *UpdateDecoderV1) ReadKey() (string, error) + func (v1 *UpdateDecoderV1) ReadLeftID() (*ID, error) + func (v1 *UpdateDecoderV1) ReadLen() (Number, error) + func (v1 *UpdateDecoderV1) ReadParentInfo() (bool, error) + func (v1 *UpdateDecoderV1) ReadRightID() (*ID, error) + func (v1 *UpdateDecoderV1) ReadString() (string, error) + func (v1 *UpdateDecoderV1) ReadTypeRef() (uint8, error) + func (v1 *UpdateDecoderV1) ResetDsCurVal() + type UpdateEncoderV1 struct + func NewUpdateEncoderV1() *UpdateEncoderV1 + func WriteStateVector(encoder *UpdateEncoderV1, sv map[Number]Number) *UpdateEncoderV1 + func (v1 *UpdateEncoderV1) WriteAny(any any) + func (v1 *UpdateEncoderV1) WriteBuf(buf []uint8) + func (v1 *UpdateEncoderV1) WriteClient(client Number) + func (v1 *UpdateEncoderV1) WriteID(id *ID) + func (v1 *UpdateEncoderV1) WriteInfo(info uint8) + func (v1 *UpdateEncoderV1) WriteJson(embed interface{}) error + func (v1 *UpdateEncoderV1) WriteKey(key string) error + func (v1 *UpdateEncoderV1) WriteLeftID(id *ID) + func (v1 *UpdateEncoderV1) WriteLen(length Number) + func (v1 *UpdateEncoderV1) WriteParentInfo(isYKey bool) + func (v1 *UpdateEncoderV1) WriteRightID(id *ID) + func (v1 *UpdateEncoderV1) WriteString(str string) error + func (v1 *UpdateEncoderV1) WriteTypeRef(info uint8) + type UpdateEncoderV2 struct + func NewUpdateEncoderV2() *UpdateEncoderV2 + func (v2 *UpdateEncoderV2) ToUint8Array() []uint8 + type UpdateHandler func([]byte) + type WSSharedDoc struct + Awareness *Awareness + func NewWSSharedDoc(docID string, awarenessHandler UpdateHandler, docHandler UpdateHandler) *WSSharedDoc + type YArray struct + PrelimContent ArrayAny + SearchMaker []*ArraySearchMarker + func NewYArray() *YArray + func (y *YArray) CallObserver(trans *Transaction, parentSubs Set) + func (y *YArray) Clone() IAbstractType + func (y *YArray) Copy() IAbstractType + func (y *YArray) Delete(index, length Number) + func (y *YArray) ForEach(f func(interface{}, Number, IAbstractType)) + func (y *YArray) From(items ArrayAny) *YArray + func (y *YArray) Get(index Number) interface{} + func (y *YArray) GetLength() Number + func (y *YArray) Insert(index Number, content ArrayAny) + func (y *YArray) Integrate(doc *Doc, item *Item) + func (y *YArray) Map(f func(interface{}, Number, IAbstractType) interface{}) ArrayAny + func (y *YArray) Push(content ArrayAny) + func (y *YArray) Range(f func(item *Item)) + func (y *YArray) Splice(start, end Number) ArrayAny + func (y *YArray) ToArray() ArrayAny + func (y *YArray) ToJson() interface{} + func (y *YArray) Unshift(content ArrayAny) + func (y *YArray) Write(encoder *UpdateEncoderV1) + type YArrayEvent struct + YTrans *Transaction + func NewYArrayEvent(yarray *YArray, trans *Transaction) *YArrayEvent + type YEvent struct + Changes Object + CurrentTarget IAbstractType + Keys map[string]EventAction + Target IAbstractType + Trans *Transaction + func NewDefaultYEvent() *YEvent + func NewYEvent(target IAbstractType, trans *Transaction) *YEvent + func (y *YEvent) Adds(s IAbstractStruct) bool + func (y *YEvent) Deletes(s IAbstractStruct) bool + func (y *YEvent) GetChanges() Object + func (y *YEvent) GetCurrentTarget() IAbstractType + func (y *YEvent) GetDelta() []EventOperator + func (y *YEvent) GetKeys() map[string]EventAction + func (y *YEvent) GetTarget() IAbstractType + func (y *YEvent) Path() []interface{} + func (y *YEvent) SetCurrentTarget(t IAbstractType) + type YMap struct + PrelimContent map[string]interface{} + func NewYMap(entries map[string]interface{}) *YMap + func (y *YMap) CallObserver(trans *Transaction, parentSubs Set) + func (y *YMap) Clear() + func (y *YMap) Clone() IAbstractType + func (y *YMap) Copy() IAbstractType + func (y *YMap) Delete(key string) + func (y *YMap) Entries() map[string]interface{} + func (y *YMap) ForEach(f func(string, interface{}, *YMap)) Object + func (y *YMap) Get(key string) interface{} + func (y *YMap) GetSize() Number + func (y *YMap) Has(key string) bool + func (y *YMap) Integrate(doc *Doc, item *Item) + func (y *YMap) Keys() []string + func (y *YMap) Range(f func(key string, val interface{})) + func (y *YMap) Set(key string, value interface{}) interface{} + func (y *YMap) ToJson() interface{} + func (y *YMap) Values() []interface{} + func (y *YMap) Write(encoder *UpdateEncoderV1) + type YMapEvent struct + KeysChanged Set + func NewYMapEvent(ymap *YMap, trans *Transaction, subs Set) *YMapEvent + func (y *YMapEvent) GetChanges() Object + type YMapIter struct + Item *Item + Key string + type YString struct + Str string + func NewDefaultYString() *YString + func NewYString(str string) *YString + func (str *YString) CallObserver(trans *Transaction, parentSubs Set) + func (str *YString) Clone() IAbstractType + func (str *YString) Copy() IAbstractType + func (str *YString) First() *Item + func (str *YString) GetDoc() *Doc + func (str *YString) GetItem() *Item + func (str *YString) GetLength() Number + func (str *YString) GetMap() map[string]*Item + func (str *YString) Integrate(doc *Doc, item *Item) + func (str *YString) Observe(f func(interface{}, interface{})) + func (str *YString) ObserveDeep(f func(interface{}, interface{})) + func (str *YString) Parent() IAbstractType + func (str *YString) SetSearchMarker(mark []*ArraySearchMarker) + func (str *YString) SetStartItem(item *Item) + func (str *YString) StartItem() *Item + func (str *YString) ToJson() interface{} + func (str *YString) Unobserve(f func(interface{}, interface{})) + func (str *YString) UnobserveDeep(f func(interface{}, interface{})) + func (str *YString) UpdateLength(n Number) + func (str *YString) Write(encoder *UpdateEncoderV1) + type YText struct + Pending []func() + SearchMarker []ArraySearchMarker + func NewDefaultYText() *YText + func NewYText(text string) *YText + func (y *YText) ApplyDelta(delta []EventOperator, sanitize bool) + func (y *YText) CallObserver(trans *Transaction, parentSubs Set) + func (y *YText) Clone() IAbstractType + func (y *YText) Copy() IAbstractType + func (y *YText) Delete(index Number, length Number) + func (y *YText) Format(index Number, length Number, attributes Object) + func (y *YText) GetAttribute(attributeName string) interface{} + func (y *YText) GetAttributes(snapshot *Snapshot) Object + func (y *YText) Insert(index Number, text string, attributes Object) + func (y *YText) InsertEmbed(index Number, embed Object, attributes Object) + func (y *YText) Integrate(doc *Doc, item *Item) + func (y *YText) Length() Number + func (y *YText) RemoveAttribute(attributeName string) + func (y *YText) SetAttribute(attributeName string, attributeValue interface{}) + func (y *YText) ToDelta(snapshot *Snapshot, prevSnapshot *Snapshot, ...) []EventOperator + func (y *YText) ToJson() interface{} + func (y *YText) ToString() string + func (y *YText) Write(encoder *UpdateEncoderV1) + type YTextEvent struct + ChildListChanged bool + KeysChanged Set + func NewYTextEvent(ytext *YText, trans *Transaction, subs Set) *YTextEvent + func (y *YTextEvent) GetDelta() []EventOperator + type YXmlElement struct + NodeName string + PrelimAttrs map[string]interface{} + func NewYXmlElement(nodeName string) *YXmlElement + func (y *YXmlElement) Clone() IAbstractType + func (y *YXmlElement) Copy() IAbstractType + func (y *YXmlElement) GetAttribute(attributeName string) interface{} + func (y *YXmlElement) GetAttributes() Object + func (y *YXmlElement) GetNextSibling() IAbstractType + func (y *YXmlElement) GetPrevSibling() IAbstractType + func (y *YXmlElement) HasAttribute(attributeName string) bool + func (y *YXmlElement) Integrate(doc *Doc, item *Item) + func (y *YXmlElement) RemoveAttribute(attributeName string) + func (y *YXmlElement) SetAttribute(attributeName string, attributeValue interface{}) + func (y *YXmlElement) ToDOM() + func (y *YXmlElement) ToString() string + func (y *YXmlElement) Write(encoder *UpdateEncoderV1) + type YXmlEvent struct + AttributesChanged Set + ChildListChanged bool + func NewYXmlEvent(target IAbstractType, subs Set, trans *Transaction) *YXmlEvent + type YXmlFragment struct + PrelimContent ArrayAny + func NewYXmlFragment() *YXmlFragment + func (y *YXmlFragment) CallObserver(trans *Transaction, parentSubs Set) + func (y *YXmlFragment) Clone() IAbstractType + func (y *YXmlFragment) Copy() IAbstractType + func (y *YXmlFragment) CreateTreeWalker(filter func(abstractType IAbstractType) bool) *YXmlTreeWalker + func (y *YXmlFragment) Delete(index, length Number) + func (y *YXmlFragment) Get(index Number) interface{} + func (y *YXmlFragment) GetFirstChild() interface{} + func (y *YXmlFragment) GetLength() Number + func (y *YXmlFragment) Insert(index Number, content ArrayAny) + func (y *YXmlFragment) InsertAfter(ref interface{}, content ArrayAny) + func (y *YXmlFragment) Integrate(doc *Doc, item *Item) + func (y *YXmlFragment) Push(content ArrayAny) + func (y *YXmlFragment) QuerySelector(query interface{}) + func (y *YXmlFragment) QuerySelectorAll(query interface{}) + func (y *YXmlFragment) Slice(start, end Number) ArrayAny + func (y *YXmlFragment) ToArray() ArrayAny + func (y *YXmlFragment) ToDOM() + func (y *YXmlFragment) ToJson() interface{} + func (y *YXmlFragment) ToString() string + func (y *YXmlFragment) Unshift(content ArrayAny) + func (y *YXmlFragment) Write(encoder *UpdateEncoderV1) + type YXmlHook struct + HookName string + func NewYXmlHook(hookName string) *YXmlHook + func (y *YXmlHook) Clone() IAbstractType + func (y *YXmlHook) Copy() IAbstractType + func (y *YXmlHook) ToDOM() + func (y *YXmlHook) Write(encoder *UpdateEncoderV1) + type YXmlText struct + func NewYXmlText() *YXmlText + func (y *YXmlText) Clone() IAbstractType + func (y *YXmlText) Copy() IAbstractType + func (y *YXmlText) GetNextSibling() IAbstractType + func (y *YXmlText) GetPreSibling() IAbstractType + func (y *YXmlText) ToDOM() + func (y *YXmlText) ToJSON() string + func (y *YXmlText) ToString() string + func (y *YXmlText) Write(encoder *UpdateEncoderV1) + type YXmlTreeWalker struct + CurrentNode *Item + Filter func() bool + FirstCall bool + Root interface{} + func NewYXmlTreeWalker(root interface{}, f func(abstractType IAbstractType) bool) *YXmlTreeWalker