Documentation
¶
Index ¶
- Variables
- func CFromRustBuffer(b ExternalCRustBuffer) C.RustBuffer
- func Deref[T any](v **T) *T
- func GetAnyValue(v **ValueOrContainer) (any, bool)
- func GetBoolValue(v **ValueOrContainer) (bool, bool)
- func GetFloat64Value(v **ValueOrContainer) (float64, bool)
- func GetInt64Value(v **ValueOrContainer) (int64, bool)
- func GetListValueOfAny(v **ValueOrContainer) ([]any, bool)
- func GetMapValue(v **ValueOrContainer) (map[string]LoroValue, bool)
- func GetMapValueOfAny(v **ValueOrContainer) (map[string]any, bool)
- func GetStringValue(v **ValueOrContainer) (string, bool)
- func GetVersion() string
- func IsValueExplicitlyNil(v **ValueOrContainer) bool
- func LiftFromRustBuffer[GoType any](bufReader BufReader[GoType], rbuf RustBufferI) GoType
- func LowerIntoRustBuffer[GoType any](bufWriter BufWriter[GoType], value GoType) C.RustBuffer
- func LowerToExternalAwareness(value *Awareness) uint64
- func LowerToExternalChangeAncestorsTraveler(value ChangeAncestorsTraveler) uint64
- func LowerToExternalChangeModifier(value *ChangeModifier) uint64
- func LowerToExternalConfigure(value *Configure) uint64
- func LowerToExternalContainerIdLike(value ContainerIdLike) uint64
- func LowerToExternalCursor(value *Cursor) uint64
- func LowerToExternalDiffBatch(value *DiffBatch) uint64
- func LowerToExternalEphemeralStore(value *EphemeralStore) uint64
- func LowerToExternalEphemeralSubscriber(value EphemeralSubscriber) uint64
- func LowerToExternalFirstCommitFromPeerCallback(value FirstCommitFromPeerCallback) uint64
- func LowerToExternalFractionalIndex(value *FractionalIndex) uint64
- func LowerToExternalFrontiers(value *Frontiers) uint64
- func LowerToExternalJsonPathSubscriber(value JsonPathSubscriber) uint64
- func LowerToExternalLocalEphemeralListener(value LocalEphemeralListener) uint64
- func LowerToExternalLocalUpdateCallback(value LocalUpdateCallback) uint64
- func LowerToExternalLoroCounter(value *LoroCounter) uint64
- func LowerToExternalLoroDoc(value *LoroDoc) uint64
- func LowerToExternalLoroList(value *LoroList) uint64
- func LowerToExternalLoroMap(value *LoroMap) uint64
- func LowerToExternalLoroMovableList(value *LoroMovableList) uint64
- func LowerToExternalLoroText(value *LoroText) uint64
- func LowerToExternalLoroTree(value *LoroTree) uint64
- func LowerToExternalLoroUnknown(value *LoroUnknown) uint64
- func LowerToExternalLoroValueLike(value LoroValueLike) uint64
- func LowerToExternalOnPop(value OnPop) uint64
- func LowerToExternalOnPush(value OnPush) uint64
- func LowerToExternalPreCommitCallback(value PreCommitCallback) uint64
- func LowerToExternalStyleConfigMap(value *StyleConfigMap) uint64
- func LowerToExternalSubscriber(value Subscriber) uint64
- func LowerToExternalSubscription(value *Subscription) uint64
- func LowerToExternalUndoManager(value *UndoManager) uint64
- func LowerToExternalUnsubscriber(value Unsubscriber) uint64
- func LowerToExternalValueOrContainer(value *ValueOrContainer) uint64
- func LowerToExternalVersionRange(value *VersionRange) uint64
- func LowerToExternalVersionVector(value *VersionVector) uint64
- func ValueAsAny(value LoroValue) (any, bool)
- func ValueAsBinary(value LoroValue) ([]byte, bool)
- func ValueAsBool(value LoroValue) (bool, bool)
- func ValueAsFloat64(value LoroValue) (float64, bool)
- func ValueAsInt64(value LoroValue) (int64, bool)
- func ValueAsMap(value LoroValue) (map[string]LoroValue, bool)
- func ValueAsString(value LoroValue) (string, bool)
- func ValueIsNil(value LoroValue) bool
- type AbsolutePosition
- type Awareness
- func (_self *Awareness) Apply(encodedPeersInfo []byte) AwarenessPeerUpdate
- func (object *Awareness) Destroy()
- func (_self *Awareness) Encode(peers []uint64) []byte
- func (_self *Awareness) EncodeAll() []byte
- func (_self *Awareness) GetAllStates() map[uint64]PeerInfo
- func (_self *Awareness) GetLocalState() *LoroValue
- func (_self *Awareness) Peer() uint64
- func (_self *Awareness) RemoveOutdated() []uint64
- func (_self *Awareness) SetLocalState(value LoroValueLike)
- func (a *Awareness) SetLocalStateAny(v any) error
- type AwarenessInterface
- type AwarenessPeerUpdate
- type BufLifter
- type BufLowerer
- type BufReader
- type BufWriter
- type CannotFindRelativePosition
- type CannotFindRelativePositionContainerDeleted
- type CannotFindRelativePositionHistoryCleared
- type CannotFindRelativePositionIdNotFound
- type ChangeAncestorsTraveler
- type ChangeAncestorsTravelerFn
- type ChangeAncestorsTravelerImpl
- type ChangeMeta
- type ChangeModifier
- type ChangeModifierInterface
- type ChangeTravelError
- type ChangeTravelErrorTargetIdNotFound
- type ChangeTravelErrorTargetVersionNotIncluded
- type CommitOptions
- type Configure
- func (object *Configure) Destroy()
- func (_self *Configure) Fork() *Configure
- func (_self *Configure) MergeInterval() int64
- func (_self *Configure) RecordTimestamp() bool
- func (_self *Configure) SetMergeInterval(interval int64)
- func (_self *Configure) SetRecordTimestamp(record bool)
- func (_self *Configure) TextStyleConfig() *StyleConfigMap
- type ConfigureInterface
- type ContainerDiff
- type ContainerId
- type ContainerIdAndDiff
- type ContainerIdLike
- type ContainerIdLikeImpl
- type ContainerIdNormal
- type ContainerIdRoot
- type ContainerPath
- type ContainerType
- type ContainerTypeCounter
- type ContainerTypeList
- type ContainerTypeMap
- type ContainerTypeMovableList
- type ContainerTypeText
- type ContainerTypeTree
- type ContainerTypeUnknown
- type CounterSpan
- type Cursor
- type CursorInterface
- type CursorWithPos
- type Diff
- type DiffBatch
- type DiffBatchInterface
- type DiffCounter
- type DiffEvent
- type DiffList
- type DiffMap
- type DiffText
- type DiffTree
- type DiffUnknown
- type EphemeralEventTrigger
- type EphemeralStore
- func (_self *EphemeralStore) Apply(data []byte) error
- func (_self *EphemeralStore) Delete(key string)
- func (object *EphemeralStore) Destroy()
- func (_self *EphemeralStore) Encode(key string) []byte
- func (_self *EphemeralStore) EncodeAll() []byte
- func (_self *EphemeralStore) Get(key string) *LoroValue
- func (_self *EphemeralStore) GetAllStates() map[string]LoroValue
- func (_self *EphemeralStore) Keys() []string
- func (_self *EphemeralStore) RemoveOutdated()
- func (_self *EphemeralStore) Set(key string, value LoroValueLike)
- func (s *EphemeralStore) SetAny(key string, v any) error
- func (_self *EphemeralStore) Subscribe(listener EphemeralSubscriber) *Subscription
- func (s *EphemeralStore) SubscribeFn(fn func(event EphemeralStoreEvent)) *Subscription
- func (_self *EphemeralStore) SubscribeLocalUpdate(listener LocalEphemeralListener) *Subscription
- func (s *EphemeralStore) SubscribeLocalUpdateFn(fn func(update []byte)) *Subscription
- type EphemeralStoreEvent
- type EphemeralStoreInterface
- type EphemeralSubscriber
- type EphemeralSubscriberFn
- type EphemeralSubscriberImpl
- type EventTriggerKind
- type ExpandType
- type ExportMode
- type ExportModeShallowSnapshot
- type ExportModeSnapshot
- type ExportModeSnapshotAt
- type ExportModeStateOnly
- type ExportModeUpdates
- type ExportModeUpdatesInRange
- type ExternalCRustBuffer
- type FfiConverterAbsolutePosition
- func (c FfiConverterAbsolutePosition) Lift(rb RustBufferI) AbsolutePosition
- func (c FfiConverterAbsolutePosition) Lower(value AbsolutePosition) C.RustBuffer
- func (c FfiConverterAbsolutePosition) LowerExternal(value AbsolutePosition) ExternalCRustBuffer
- func (c FfiConverterAbsolutePosition) Read(reader io.Reader) AbsolutePosition
- func (c FfiConverterAbsolutePosition) Write(writer io.Writer, value AbsolutePosition)
- type FfiConverterAwareness
- type FfiConverterAwarenessPeerUpdate
- func (c FfiConverterAwarenessPeerUpdate) Lift(rb RustBufferI) AwarenessPeerUpdate
- func (c FfiConverterAwarenessPeerUpdate) Lower(value AwarenessPeerUpdate) C.RustBuffer
- func (c FfiConverterAwarenessPeerUpdate) LowerExternal(value AwarenessPeerUpdate) ExternalCRustBuffer
- func (c FfiConverterAwarenessPeerUpdate) Read(reader io.Reader) AwarenessPeerUpdate
- func (c FfiConverterAwarenessPeerUpdate) Write(writer io.Writer, value AwarenessPeerUpdate)
- type FfiConverterBool
- type FfiConverterBytes
- func (c FfiConverterBytes) Lift(rb RustBufferI) []byte
- func (c FfiConverterBytes) Lower(value []byte) C.RustBuffer
- func (c FfiConverterBytes) LowerExternal(value []byte) ExternalCRustBuffer
- func (c FfiConverterBytes) Read(reader io.Reader) []byte
- func (c FfiConverterBytes) Write(writer io.Writer, value []byte)
- type FfiConverterCannotFindRelativePosition
- func (c FfiConverterCannotFindRelativePosition) Lift(eb RustBufferI) *CannotFindRelativePosition
- func (c FfiConverterCannotFindRelativePosition) Lower(value *CannotFindRelativePosition) C.RustBuffer
- func (c FfiConverterCannotFindRelativePosition) LowerExternal(value *CannotFindRelativePosition) ExternalCRustBuffer
- func (c FfiConverterCannotFindRelativePosition) Read(reader io.Reader) *CannotFindRelativePosition
- func (c FfiConverterCannotFindRelativePosition) Write(writer io.Writer, value *CannotFindRelativePosition)
- type FfiConverterChangeAncestorsTraveler
- func (c FfiConverterChangeAncestorsTraveler) Lift(handle C.uint64_t) ChangeAncestorsTraveler
- func (c FfiConverterChangeAncestorsTraveler) Lower(value ChangeAncestorsTraveler) C.uint64_t
- func (c FfiConverterChangeAncestorsTraveler) Read(reader io.Reader) ChangeAncestorsTraveler
- func (c FfiConverterChangeAncestorsTraveler) Write(writer io.Writer, value ChangeAncestorsTraveler)
- type FfiConverterChangeMeta
- func (c FfiConverterChangeMeta) Lift(rb RustBufferI) ChangeMeta
- func (c FfiConverterChangeMeta) Lower(value ChangeMeta) C.RustBuffer
- func (c FfiConverterChangeMeta) LowerExternal(value ChangeMeta) ExternalCRustBuffer
- func (c FfiConverterChangeMeta) Read(reader io.Reader) ChangeMeta
- func (c FfiConverterChangeMeta) Write(writer io.Writer, value ChangeMeta)
- type FfiConverterChangeModifier
- func (c FfiConverterChangeModifier) Lift(handle C.uint64_t) *ChangeModifier
- func (c FfiConverterChangeModifier) Lower(value *ChangeModifier) C.uint64_t
- func (c FfiConverterChangeModifier) Read(reader io.Reader) *ChangeModifier
- func (c FfiConverterChangeModifier) Write(writer io.Writer, value *ChangeModifier)
- type FfiConverterChangeTravelError
- func (c FfiConverterChangeTravelError) Lift(eb RustBufferI) *ChangeTravelError
- func (c FfiConverterChangeTravelError) Lower(value *ChangeTravelError) C.RustBuffer
- func (c FfiConverterChangeTravelError) LowerExternal(value *ChangeTravelError) ExternalCRustBuffer
- func (c FfiConverterChangeTravelError) Read(reader io.Reader) *ChangeTravelError
- func (c FfiConverterChangeTravelError) Write(writer io.Writer, value *ChangeTravelError)
- type FfiConverterCommitOptions
- func (c FfiConverterCommitOptions) Lift(rb RustBufferI) CommitOptions
- func (c FfiConverterCommitOptions) Lower(value CommitOptions) C.RustBuffer
- func (c FfiConverterCommitOptions) LowerExternal(value CommitOptions) ExternalCRustBuffer
- func (c FfiConverterCommitOptions) Read(reader io.Reader) CommitOptions
- func (c FfiConverterCommitOptions) Write(writer io.Writer, value CommitOptions)
- type FfiConverterConfigure
- type FfiConverterContainerDiff
- func (c FfiConverterContainerDiff) Lift(rb RustBufferI) ContainerDiff
- func (c FfiConverterContainerDiff) Lower(value ContainerDiff) C.RustBuffer
- func (c FfiConverterContainerDiff) LowerExternal(value ContainerDiff) ExternalCRustBuffer
- func (c FfiConverterContainerDiff) Read(reader io.Reader) ContainerDiff
- func (c FfiConverterContainerDiff) Write(writer io.Writer, value ContainerDiff)
- type FfiConverterContainerId
- func (c FfiConverterContainerId) Lift(rb RustBufferI) ContainerId
- func (c FfiConverterContainerId) Lower(value ContainerId) C.RustBuffer
- func (c FfiConverterContainerId) LowerExternal(value ContainerId) ExternalCRustBuffer
- func (FfiConverterContainerId) Read(reader io.Reader) ContainerId
- func (FfiConverterContainerId) Write(writer io.Writer, value ContainerId)
- type FfiConverterContainerIdAndDiff
- func (c FfiConverterContainerIdAndDiff) Lift(rb RustBufferI) ContainerIdAndDiff
- func (c FfiConverterContainerIdAndDiff) Lower(value ContainerIdAndDiff) C.RustBuffer
- func (c FfiConverterContainerIdAndDiff) LowerExternal(value ContainerIdAndDiff) ExternalCRustBuffer
- func (c FfiConverterContainerIdAndDiff) Read(reader io.Reader) ContainerIdAndDiff
- func (c FfiConverterContainerIdAndDiff) Write(writer io.Writer, value ContainerIdAndDiff)
- type FfiConverterContainerIdLike
- func (c FfiConverterContainerIdLike) Lift(handle C.uint64_t) ContainerIdLike
- func (c FfiConverterContainerIdLike) Lower(value ContainerIdLike) C.uint64_t
- func (c FfiConverterContainerIdLike) Read(reader io.Reader) ContainerIdLike
- func (c FfiConverterContainerIdLike) Write(writer io.Writer, value ContainerIdLike)
- type FfiConverterContainerPath
- func (c FfiConverterContainerPath) Lift(rb RustBufferI) ContainerPath
- func (c FfiConverterContainerPath) Lower(value ContainerPath) C.RustBuffer
- func (c FfiConverterContainerPath) LowerExternal(value ContainerPath) ExternalCRustBuffer
- func (c FfiConverterContainerPath) Read(reader io.Reader) ContainerPath
- func (c FfiConverterContainerPath) Write(writer io.Writer, value ContainerPath)
- type FfiConverterContainerType
- func (c FfiConverterContainerType) Lift(rb RustBufferI) ContainerType
- func (c FfiConverterContainerType) Lower(value ContainerType) C.RustBuffer
- func (c FfiConverterContainerType) LowerExternal(value ContainerType) ExternalCRustBuffer
- func (FfiConverterContainerType) Read(reader io.Reader) ContainerType
- func (FfiConverterContainerType) Write(writer io.Writer, value ContainerType)
- type FfiConverterCounterSpan
- func (c FfiConverterCounterSpan) Lift(rb RustBufferI) CounterSpan
- func (c FfiConverterCounterSpan) Lower(value CounterSpan) C.RustBuffer
- func (c FfiConverterCounterSpan) LowerExternal(value CounterSpan) ExternalCRustBuffer
- func (c FfiConverterCounterSpan) Read(reader io.Reader) CounterSpan
- func (c FfiConverterCounterSpan) Write(writer io.Writer, value CounterSpan)
- type FfiConverterCursor
- type FfiConverterCursorWithPos
- func (c FfiConverterCursorWithPos) Lift(rb RustBufferI) CursorWithPos
- func (c FfiConverterCursorWithPos) Lower(value CursorWithPos) C.RustBuffer
- func (c FfiConverterCursorWithPos) LowerExternal(value CursorWithPos) ExternalCRustBuffer
- func (c FfiConverterCursorWithPos) Read(reader io.Reader) CursorWithPos
- func (c FfiConverterCursorWithPos) Write(writer io.Writer, value CursorWithPos)
- type FfiConverterDiff
- type FfiConverterDiffBatch
- type FfiConverterDiffEvent
- func (c FfiConverterDiffEvent) Lift(rb RustBufferI) DiffEvent
- func (c FfiConverterDiffEvent) Lower(value DiffEvent) C.RustBuffer
- func (c FfiConverterDiffEvent) LowerExternal(value DiffEvent) ExternalCRustBuffer
- func (c FfiConverterDiffEvent) Read(reader io.Reader) DiffEvent
- func (c FfiConverterDiffEvent) Write(writer io.Writer, value DiffEvent)
- type FfiConverterEphemeralEventTrigger
- func (c FfiConverterEphemeralEventTrigger) Lift(rb RustBufferI) EphemeralEventTrigger
- func (c FfiConverterEphemeralEventTrigger) Lower(value EphemeralEventTrigger) C.RustBuffer
- func (c FfiConverterEphemeralEventTrigger) LowerExternal(value EphemeralEventTrigger) ExternalCRustBuffer
- func (FfiConverterEphemeralEventTrigger) Read(reader io.Reader) EphemeralEventTrigger
- func (FfiConverterEphemeralEventTrigger) Write(writer io.Writer, value EphemeralEventTrigger)
- type FfiConverterEphemeralStore
- func (c FfiConverterEphemeralStore) Lift(handle C.uint64_t) *EphemeralStore
- func (c FfiConverterEphemeralStore) Lower(value *EphemeralStore) C.uint64_t
- func (c FfiConverterEphemeralStore) Read(reader io.Reader) *EphemeralStore
- func (c FfiConverterEphemeralStore) Write(writer io.Writer, value *EphemeralStore)
- type FfiConverterEphemeralStoreEvent
- func (c FfiConverterEphemeralStoreEvent) Lift(rb RustBufferI) EphemeralStoreEvent
- func (c FfiConverterEphemeralStoreEvent) Lower(value EphemeralStoreEvent) C.RustBuffer
- func (c FfiConverterEphemeralStoreEvent) LowerExternal(value EphemeralStoreEvent) ExternalCRustBuffer
- func (c FfiConverterEphemeralStoreEvent) Read(reader io.Reader) EphemeralStoreEvent
- func (c FfiConverterEphemeralStoreEvent) Write(writer io.Writer, value EphemeralStoreEvent)
- type FfiConverterEphemeralSubscriber
- func (c FfiConverterEphemeralSubscriber) Lift(handle C.uint64_t) EphemeralSubscriber
- func (c FfiConverterEphemeralSubscriber) Lower(value EphemeralSubscriber) C.uint64_t
- func (c FfiConverterEphemeralSubscriber) Read(reader io.Reader) EphemeralSubscriber
- func (c FfiConverterEphemeralSubscriber) Write(writer io.Writer, value EphemeralSubscriber)
- type FfiConverterEventTriggerKind
- func (c FfiConverterEventTriggerKind) Lift(rb RustBufferI) EventTriggerKind
- func (c FfiConverterEventTriggerKind) Lower(value EventTriggerKind) C.RustBuffer
- func (c FfiConverterEventTriggerKind) LowerExternal(value EventTriggerKind) ExternalCRustBuffer
- func (FfiConverterEventTriggerKind) Read(reader io.Reader) EventTriggerKind
- func (FfiConverterEventTriggerKind) Write(writer io.Writer, value EventTriggerKind)
- type FfiConverterExpandType
- func (c FfiConverterExpandType) Lift(rb RustBufferI) ExpandType
- func (c FfiConverterExpandType) Lower(value ExpandType) C.RustBuffer
- func (c FfiConverterExpandType) LowerExternal(value ExpandType) ExternalCRustBuffer
- func (FfiConverterExpandType) Read(reader io.Reader) ExpandType
- func (FfiConverterExpandType) Write(writer io.Writer, value ExpandType)
- type FfiConverterExportMode
- func (c FfiConverterExportMode) Lift(rb RustBufferI) ExportMode
- func (c FfiConverterExportMode) Lower(value ExportMode) C.RustBuffer
- func (c FfiConverterExportMode) LowerExternal(value ExportMode) ExternalCRustBuffer
- func (FfiConverterExportMode) Read(reader io.Reader) ExportMode
- func (FfiConverterExportMode) Write(writer io.Writer, value ExportMode)
- type FfiConverterFirstCommitFromPeerCallback
- func (c FfiConverterFirstCommitFromPeerCallback) Lift(handle C.uint64_t) FirstCommitFromPeerCallback
- func (c FfiConverterFirstCommitFromPeerCallback) Lower(value FirstCommitFromPeerCallback) C.uint64_t
- func (c FfiConverterFirstCommitFromPeerCallback) Read(reader io.Reader) FirstCommitFromPeerCallback
- func (c FfiConverterFirstCommitFromPeerCallback) Write(writer io.Writer, value FirstCommitFromPeerCallback)
- type FfiConverterFirstCommitFromPeerPayload
- func (c FfiConverterFirstCommitFromPeerPayload) Lift(rb RustBufferI) FirstCommitFromPeerPayload
- func (c FfiConverterFirstCommitFromPeerPayload) Lower(value FirstCommitFromPeerPayload) C.RustBuffer
- func (c FfiConverterFirstCommitFromPeerPayload) LowerExternal(value FirstCommitFromPeerPayload) ExternalCRustBuffer
- func (c FfiConverterFirstCommitFromPeerPayload) Read(reader io.Reader) FirstCommitFromPeerPayload
- func (c FfiConverterFirstCommitFromPeerPayload) Write(writer io.Writer, value FirstCommitFromPeerPayload)
- type FfiConverterFloat64
- type FfiConverterFractionalIndex
- func (c FfiConverterFractionalIndex) Lift(handle C.uint64_t) *FractionalIndex
- func (c FfiConverterFractionalIndex) Lower(value *FractionalIndex) C.uint64_t
- func (c FfiConverterFractionalIndex) Read(reader io.Reader) *FractionalIndex
- func (c FfiConverterFractionalIndex) Write(writer io.Writer, value *FractionalIndex)
- type FfiConverterFrontiers
- type FfiConverterFrontiersOrId
- func (c FfiConverterFrontiersOrId) Lift(rb RustBufferI) FrontiersOrId
- func (c FfiConverterFrontiersOrId) Lower(value FrontiersOrId) C.RustBuffer
- func (c FfiConverterFrontiersOrId) LowerExternal(value FrontiersOrId) ExternalCRustBuffer
- func (c FfiConverterFrontiersOrId) Read(reader io.Reader) FrontiersOrId
- func (c FfiConverterFrontiersOrId) Write(writer io.Writer, value FrontiersOrId)
- type FfiConverterId
- type FfiConverterIdLp
- type FfiConverterIdSpan
- func (c FfiConverterIdSpan) Lift(rb RustBufferI) IdSpan
- func (c FfiConverterIdSpan) Lower(value IdSpan) C.RustBuffer
- func (c FfiConverterIdSpan) LowerExternal(value IdSpan) ExternalCRustBuffer
- func (c FfiConverterIdSpan) Read(reader io.Reader) IdSpan
- func (c FfiConverterIdSpan) Write(writer io.Writer, value IdSpan)
- type FfiConverterImportBlobMetadata
- func (c FfiConverterImportBlobMetadata) Lift(rb RustBufferI) ImportBlobMetadata
- func (c FfiConverterImportBlobMetadata) Lower(value ImportBlobMetadata) C.RustBuffer
- func (c FfiConverterImportBlobMetadata) LowerExternal(value ImportBlobMetadata) ExternalCRustBuffer
- func (c FfiConverterImportBlobMetadata) Read(reader io.Reader) ImportBlobMetadata
- func (c FfiConverterImportBlobMetadata) Write(writer io.Writer, value ImportBlobMetadata)
- type FfiConverterImportStatus
- func (c FfiConverterImportStatus) Lift(rb RustBufferI) ImportStatus
- func (c FfiConverterImportStatus) Lower(value ImportStatus) C.RustBuffer
- func (c FfiConverterImportStatus) LowerExternal(value ImportStatus) ExternalCRustBuffer
- func (c FfiConverterImportStatus) Read(reader io.Reader) ImportStatus
- func (c FfiConverterImportStatus) Write(writer io.Writer, value ImportStatus)
- type FfiConverterIndex
- func (c FfiConverterIndex) Lift(rb RustBufferI) Index
- func (c FfiConverterIndex) Lower(value Index) C.RustBuffer
- func (c FfiConverterIndex) LowerExternal(value Index) ExternalCRustBuffer
- func (FfiConverterIndex) Read(reader io.Reader) Index
- func (FfiConverterIndex) Write(writer io.Writer, value Index)
- type FfiConverterInt32
- type FfiConverterInt64
- type FfiConverterJsonPathError
- func (c FfiConverterJsonPathError) Lift(eb RustBufferI) *JsonPathError
- func (c FfiConverterJsonPathError) Lower(value *JsonPathError) C.RustBuffer
- func (c FfiConverterJsonPathError) LowerExternal(value *JsonPathError) ExternalCRustBuffer
- func (c FfiConverterJsonPathError) Read(reader io.Reader) *JsonPathError
- func (c FfiConverterJsonPathError) Write(writer io.Writer, value *JsonPathError)
- type FfiConverterJsonPathSubscriber
- func (c FfiConverterJsonPathSubscriber) Lift(handle C.uint64_t) JsonPathSubscriber
- func (c FfiConverterJsonPathSubscriber) Lower(value JsonPathSubscriber) C.uint64_t
- func (c FfiConverterJsonPathSubscriber) Read(reader io.Reader) JsonPathSubscriber
- func (c FfiConverterJsonPathSubscriber) Write(writer io.Writer, value JsonPathSubscriber)
- type FfiConverterListDiffItem
- func (c FfiConverterListDiffItem) Lift(rb RustBufferI) ListDiffItem
- func (c FfiConverterListDiffItem) Lower(value ListDiffItem) C.RustBuffer
- func (c FfiConverterListDiffItem) LowerExternal(value ListDiffItem) ExternalCRustBuffer
- func (FfiConverterListDiffItem) Read(reader io.Reader) ListDiffItem
- func (FfiConverterListDiffItem) Write(writer io.Writer, value ListDiffItem)
- type FfiConverterLocalEphemeralListener
- func (c FfiConverterLocalEphemeralListener) Lift(handle C.uint64_t) LocalEphemeralListener
- func (c FfiConverterLocalEphemeralListener) Lower(value LocalEphemeralListener) C.uint64_t
- func (c FfiConverterLocalEphemeralListener) Read(reader io.Reader) LocalEphemeralListener
- func (c FfiConverterLocalEphemeralListener) Write(writer io.Writer, value LocalEphemeralListener)
- type FfiConverterLocalUpdateCallback
- func (c FfiConverterLocalUpdateCallback) Lift(handle C.uint64_t) LocalUpdateCallback
- func (c FfiConverterLocalUpdateCallback) Lower(value LocalUpdateCallback) C.uint64_t
- func (c FfiConverterLocalUpdateCallback) Read(reader io.Reader) LocalUpdateCallback
- func (c FfiConverterLocalUpdateCallback) Write(writer io.Writer, value LocalUpdateCallback)
- type FfiConverterLoroCounter
- type FfiConverterLoroDoc
- type FfiConverterLoroEncodeError
- func (c FfiConverterLoroEncodeError) Lift(eb RustBufferI) *LoroEncodeError
- func (c FfiConverterLoroEncodeError) Lower(value *LoroEncodeError) C.RustBuffer
- func (c FfiConverterLoroEncodeError) LowerExternal(value *LoroEncodeError) ExternalCRustBuffer
- func (c FfiConverterLoroEncodeError) Read(reader io.Reader) *LoroEncodeError
- func (c FfiConverterLoroEncodeError) Write(writer io.Writer, value *LoroEncodeError)
- type FfiConverterLoroError
- func (c FfiConverterLoroError) Lift(eb RustBufferI) *LoroError
- func (c FfiConverterLoroError) Lower(value *LoroError) C.RustBuffer
- func (c FfiConverterLoroError) LowerExternal(value *LoroError) ExternalCRustBuffer
- func (c FfiConverterLoroError) Read(reader io.Reader) *LoroError
- func (c FfiConverterLoroError) Write(writer io.Writer, value *LoroError)
- type FfiConverterLoroList
- type FfiConverterLoroMap
- type FfiConverterLoroMovableList
- func (c FfiConverterLoroMovableList) Lift(handle C.uint64_t) *LoroMovableList
- func (c FfiConverterLoroMovableList) Lower(value *LoroMovableList) C.uint64_t
- func (c FfiConverterLoroMovableList) Read(reader io.Reader) *LoroMovableList
- func (c FfiConverterLoroMovableList) Write(writer io.Writer, value *LoroMovableList)
- type FfiConverterLoroText
- type FfiConverterLoroTree
- type FfiConverterLoroUnknown
- type FfiConverterLoroValue
- func (c FfiConverterLoroValue) Lift(rb RustBufferI) LoroValue
- func (c FfiConverterLoroValue) Lower(value LoroValue) C.RustBuffer
- func (c FfiConverterLoroValue) LowerExternal(value LoroValue) ExternalCRustBuffer
- func (FfiConverterLoroValue) Read(reader io.Reader) LoroValue
- func (FfiConverterLoroValue) Write(writer io.Writer, value LoroValue)
- type FfiConverterLoroValueLike
- type FfiConverterMapDelta
- func (c FfiConverterMapDelta) Lift(rb RustBufferI) MapDelta
- func (c FfiConverterMapDelta) Lower(value MapDelta) C.RustBuffer
- func (c FfiConverterMapDelta) LowerExternal(value MapDelta) ExternalCRustBuffer
- func (c FfiConverterMapDelta) Read(reader io.Reader) MapDelta
- func (c FfiConverterMapDelta) Write(writer io.Writer, value MapDelta)
- type FfiConverterMapStringLoroValue
- func (c FfiConverterMapStringLoroValue) Lift(rb RustBufferI) map[string]LoroValue
- func (c FfiConverterMapStringLoroValue) Lower(value map[string]LoroValue) C.RustBuffer
- func (c FfiConverterMapStringLoroValue) LowerExternal(value map[string]LoroValue) ExternalCRustBuffer
- func (_ FfiConverterMapStringLoroValue) Read(reader io.Reader) map[string]LoroValue
- func (_ FfiConverterMapStringLoroValue) Write(writer io.Writer, mapValue map[string]LoroValue)
- type FfiConverterMapStringOptionalValueOrContainer
- func (c FfiConverterMapStringOptionalValueOrContainer) Lift(rb RustBufferI) map[string]**ValueOrContainer
- func (c FfiConverterMapStringOptionalValueOrContainer) Lower(value map[string]**ValueOrContainer) C.RustBuffer
- func (c FfiConverterMapStringOptionalValueOrContainer) LowerExternal(value map[string]**ValueOrContainer) ExternalCRustBuffer
- func (_ FfiConverterMapStringOptionalValueOrContainer) Read(reader io.Reader) map[string]**ValueOrContainer
- func (_ FfiConverterMapStringOptionalValueOrContainer) Write(writer io.Writer, mapValue map[string]**ValueOrContainer)
- type FfiConverterMapUint64CounterSpan
- func (c FfiConverterMapUint64CounterSpan) Lift(rb RustBufferI) map[uint64]CounterSpan
- func (c FfiConverterMapUint64CounterSpan) Lower(value map[uint64]CounterSpan) C.RustBuffer
- func (c FfiConverterMapUint64CounterSpan) LowerExternal(value map[uint64]CounterSpan) ExternalCRustBuffer
- func (_ FfiConverterMapUint64CounterSpan) Read(reader io.Reader) map[uint64]CounterSpan
- func (_ FfiConverterMapUint64CounterSpan) Write(writer io.Writer, mapValue map[uint64]CounterSpan)
- type FfiConverterMapUint64Int32
- func (c FfiConverterMapUint64Int32) Lift(rb RustBufferI) map[uint64]int32
- func (c FfiConverterMapUint64Int32) Lower(value map[uint64]int32) C.RustBuffer
- func (c FfiConverterMapUint64Int32) LowerExternal(value map[uint64]int32) ExternalCRustBuffer
- func (_ FfiConverterMapUint64Int32) Read(reader io.Reader) map[uint64]int32
- func (_ FfiConverterMapUint64Int32) Write(writer io.Writer, mapValue map[uint64]int32)
- type FfiConverterMapUint64PeerInfo
- func (c FfiConverterMapUint64PeerInfo) Lift(rb RustBufferI) map[uint64]PeerInfo
- func (c FfiConverterMapUint64PeerInfo) Lower(value map[uint64]PeerInfo) C.RustBuffer
- func (c FfiConverterMapUint64PeerInfo) LowerExternal(value map[uint64]PeerInfo) ExternalCRustBuffer
- func (_ FfiConverterMapUint64PeerInfo) Read(reader io.Reader) map[uint64]PeerInfo
- func (_ FfiConverterMapUint64PeerInfo) Write(writer io.Writer, mapValue map[uint64]PeerInfo)
- type FfiConverterOnPop
- type FfiConverterOnPush
- type FfiConverterOptionalChangeMeta
- func (c FfiConverterOptionalChangeMeta) Lift(rb RustBufferI) *ChangeMeta
- func (c FfiConverterOptionalChangeMeta) Lower(value *ChangeMeta) C.RustBuffer
- func (c FfiConverterOptionalChangeMeta) LowerExternal(value *ChangeMeta) ExternalCRustBuffer
- func (_ FfiConverterOptionalChangeMeta) Read(reader io.Reader) *ChangeMeta
- func (_ FfiConverterOptionalChangeMeta) Write(writer io.Writer, value *ChangeMeta)
- type FfiConverterOptionalContainerId
- func (c FfiConverterOptionalContainerId) Lift(rb RustBufferI) *ContainerId
- func (c FfiConverterOptionalContainerId) Lower(value *ContainerId) C.RustBuffer
- func (c FfiConverterOptionalContainerId) LowerExternal(value *ContainerId) ExternalCRustBuffer
- func (_ FfiConverterOptionalContainerId) Read(reader io.Reader) *ContainerId
- func (_ FfiConverterOptionalContainerId) Write(writer io.Writer, value *ContainerId)
- type FfiConverterOptionalContainerType
- func (c FfiConverterOptionalContainerType) Lift(rb RustBufferI) *ContainerType
- func (c FfiConverterOptionalContainerType) Lower(value *ContainerType) C.RustBuffer
- func (c FfiConverterOptionalContainerType) LowerExternal(value *ContainerType) ExternalCRustBuffer
- func (_ FfiConverterOptionalContainerType) Read(reader io.Reader) *ContainerType
- func (_ FfiConverterOptionalContainerType) Write(writer io.Writer, value *ContainerType)
- type FfiConverterOptionalCounterSpan
- func (c FfiConverterOptionalCounterSpan) Lift(rb RustBufferI) *CounterSpan
- func (c FfiConverterOptionalCounterSpan) Lower(value *CounterSpan) C.RustBuffer
- func (c FfiConverterOptionalCounterSpan) LowerExternal(value *CounterSpan) ExternalCRustBuffer
- func (_ FfiConverterOptionalCounterSpan) Read(reader io.Reader) *CounterSpan
- func (_ FfiConverterOptionalCounterSpan) Write(writer io.Writer, value *CounterSpan)
- type FfiConverterOptionalCursor
- func (c FfiConverterOptionalCursor) Lift(rb RustBufferI) **Cursor
- func (c FfiConverterOptionalCursor) Lower(value **Cursor) C.RustBuffer
- func (c FfiConverterOptionalCursor) LowerExternal(value **Cursor) ExternalCRustBuffer
- func (_ FfiConverterOptionalCursor) Read(reader io.Reader) **Cursor
- func (_ FfiConverterOptionalCursor) Write(writer io.Writer, value **Cursor)
- type FfiConverterOptionalDiff
- func (c FfiConverterOptionalDiff) Lift(rb RustBufferI) *Diff
- func (c FfiConverterOptionalDiff) Lower(value *Diff) C.RustBuffer
- func (c FfiConverterOptionalDiff) LowerExternal(value *Diff) ExternalCRustBuffer
- func (_ FfiConverterOptionalDiff) Read(reader io.Reader) *Diff
- func (_ FfiConverterOptionalDiff) Write(writer io.Writer, value *Diff)
- type FfiConverterOptionalDiffEvent
- func (c FfiConverterOptionalDiffEvent) Lift(rb RustBufferI) *DiffEvent
- func (c FfiConverterOptionalDiffEvent) Lower(value *DiffEvent) C.RustBuffer
- func (c FfiConverterOptionalDiffEvent) LowerExternal(value *DiffEvent) ExternalCRustBuffer
- func (_ FfiConverterOptionalDiffEvent) Read(reader io.Reader) *DiffEvent
- func (_ FfiConverterOptionalDiffEvent) Write(writer io.Writer, value *DiffEvent)
- type FfiConverterOptionalFloat64
- func (c FfiConverterOptionalFloat64) Lift(rb RustBufferI) *float64
- func (c FfiConverterOptionalFloat64) Lower(value *float64) C.RustBuffer
- func (c FfiConverterOptionalFloat64) LowerExternal(value *float64) ExternalCRustBuffer
- func (_ FfiConverterOptionalFloat64) Read(reader io.Reader) *float64
- func (_ FfiConverterOptionalFloat64) Write(writer io.Writer, value *float64)
- type FfiConverterOptionalFrontiers
- func (c FfiConverterOptionalFrontiers) Lift(rb RustBufferI) **Frontiers
- func (c FfiConverterOptionalFrontiers) Lower(value **Frontiers) C.RustBuffer
- func (c FfiConverterOptionalFrontiers) LowerExternal(value **Frontiers) ExternalCRustBuffer
- func (_ FfiConverterOptionalFrontiers) Read(reader io.Reader) **Frontiers
- func (_ FfiConverterOptionalFrontiers) Write(writer io.Writer, value **Frontiers)
- type FfiConverterOptionalId
- func (c FfiConverterOptionalId) Lift(rb RustBufferI) *Id
- func (c FfiConverterOptionalId) Lower(value *Id) C.RustBuffer
- func (c FfiConverterOptionalId) LowerExternal(value *Id) ExternalCRustBuffer
- func (_ FfiConverterOptionalId) Read(reader io.Reader) *Id
- func (_ FfiConverterOptionalId) Write(writer io.Writer, value *Id)
- type FfiConverterOptionalInt32
- func (c FfiConverterOptionalInt32) Lift(rb RustBufferI) *int32
- func (c FfiConverterOptionalInt32) Lower(value *int32) C.RustBuffer
- func (c FfiConverterOptionalInt32) LowerExternal(value *int32) ExternalCRustBuffer
- func (_ FfiConverterOptionalInt32) Read(reader io.Reader) *int32
- func (_ FfiConverterOptionalInt32) Write(writer io.Writer, value *int32)
- type FfiConverterOptionalInt64
- func (c FfiConverterOptionalInt64) Lift(rb RustBufferI) *int64
- func (c FfiConverterOptionalInt64) Lower(value *int64) C.RustBuffer
- func (c FfiConverterOptionalInt64) LowerExternal(value *int64) ExternalCRustBuffer
- func (_ FfiConverterOptionalInt64) Read(reader io.Reader) *int64
- func (_ FfiConverterOptionalInt64) Write(writer io.Writer, value *int64)
- type FfiConverterOptionalLoroCounter
- func (c FfiConverterOptionalLoroCounter) Lift(rb RustBufferI) **LoroCounter
- func (c FfiConverterOptionalLoroCounter) Lower(value **LoroCounter) C.RustBuffer
- func (c FfiConverterOptionalLoroCounter) LowerExternal(value **LoroCounter) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroCounter) Read(reader io.Reader) **LoroCounter
- func (_ FfiConverterOptionalLoroCounter) Write(writer io.Writer, value **LoroCounter)
- type FfiConverterOptionalLoroDoc
- func (c FfiConverterOptionalLoroDoc) Lift(rb RustBufferI) **LoroDoc
- func (c FfiConverterOptionalLoroDoc) Lower(value **LoroDoc) C.RustBuffer
- func (c FfiConverterOptionalLoroDoc) LowerExternal(value **LoroDoc) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroDoc) Read(reader io.Reader) **LoroDoc
- func (_ FfiConverterOptionalLoroDoc) Write(writer io.Writer, value **LoroDoc)
- type FfiConverterOptionalLoroList
- func (c FfiConverterOptionalLoroList) Lift(rb RustBufferI) **LoroList
- func (c FfiConverterOptionalLoroList) Lower(value **LoroList) C.RustBuffer
- func (c FfiConverterOptionalLoroList) LowerExternal(value **LoroList) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroList) Read(reader io.Reader) **LoroList
- func (_ FfiConverterOptionalLoroList) Write(writer io.Writer, value **LoroList)
- type FfiConverterOptionalLoroMap
- func (c FfiConverterOptionalLoroMap) Lift(rb RustBufferI) **LoroMap
- func (c FfiConverterOptionalLoroMap) Lower(value **LoroMap) C.RustBuffer
- func (c FfiConverterOptionalLoroMap) LowerExternal(value **LoroMap) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroMap) Read(reader io.Reader) **LoroMap
- func (_ FfiConverterOptionalLoroMap) Write(writer io.Writer, value **LoroMap)
- type FfiConverterOptionalLoroMovableList
- func (c FfiConverterOptionalLoroMovableList) Lift(rb RustBufferI) **LoroMovableList
- func (c FfiConverterOptionalLoroMovableList) Lower(value **LoroMovableList) C.RustBuffer
- func (c FfiConverterOptionalLoroMovableList) LowerExternal(value **LoroMovableList) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroMovableList) Read(reader io.Reader) **LoroMovableList
- func (_ FfiConverterOptionalLoroMovableList) Write(writer io.Writer, value **LoroMovableList)
- type FfiConverterOptionalLoroText
- func (c FfiConverterOptionalLoroText) Lift(rb RustBufferI) **LoroText
- func (c FfiConverterOptionalLoroText) Lower(value **LoroText) C.RustBuffer
- func (c FfiConverterOptionalLoroText) LowerExternal(value **LoroText) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroText) Read(reader io.Reader) **LoroText
- func (_ FfiConverterOptionalLoroText) Write(writer io.Writer, value **LoroText)
- type FfiConverterOptionalLoroTree
- func (c FfiConverterOptionalLoroTree) Lift(rb RustBufferI) **LoroTree
- func (c FfiConverterOptionalLoroTree) Lower(value **LoroTree) C.RustBuffer
- func (c FfiConverterOptionalLoroTree) LowerExternal(value **LoroTree) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroTree) Read(reader io.Reader) **LoroTree
- func (_ FfiConverterOptionalLoroTree) Write(writer io.Writer, value **LoroTree)
- type FfiConverterOptionalLoroUnknown
- func (c FfiConverterOptionalLoroUnknown) Lift(rb RustBufferI) **LoroUnknown
- func (c FfiConverterOptionalLoroUnknown) Lower(value **LoroUnknown) C.RustBuffer
- func (c FfiConverterOptionalLoroUnknown) LowerExternal(value **LoroUnknown) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroUnknown) Read(reader io.Reader) **LoroUnknown
- func (_ FfiConverterOptionalLoroUnknown) Write(writer io.Writer, value **LoroUnknown)
- type FfiConverterOptionalLoroValue
- func (c FfiConverterOptionalLoroValue) Lift(rb RustBufferI) *LoroValue
- func (c FfiConverterOptionalLoroValue) Lower(value *LoroValue) C.RustBuffer
- func (c FfiConverterOptionalLoroValue) LowerExternal(value *LoroValue) ExternalCRustBuffer
- func (_ FfiConverterOptionalLoroValue) Read(reader io.Reader) *LoroValue
- func (_ FfiConverterOptionalLoroValue) Write(writer io.Writer, value *LoroValue)
- type FfiConverterOptionalMapStringLoroValue
- func (c FfiConverterOptionalMapStringLoroValue) Lift(rb RustBufferI) *map[string]LoroValue
- func (c FfiConverterOptionalMapStringLoroValue) Lower(value *map[string]LoroValue) C.RustBuffer
- func (c FfiConverterOptionalMapStringLoroValue) LowerExternal(value *map[string]LoroValue) ExternalCRustBuffer
- func (_ FfiConverterOptionalMapStringLoroValue) Read(reader io.Reader) *map[string]LoroValue
- func (_ FfiConverterOptionalMapStringLoroValue) Write(writer io.Writer, value *map[string]LoroValue)
- type FfiConverterOptionalMapUint64CounterSpan
- func (c FfiConverterOptionalMapUint64CounterSpan) Lift(rb RustBufferI) *map[uint64]CounterSpan
- func (c FfiConverterOptionalMapUint64CounterSpan) Lower(value *map[uint64]CounterSpan) C.RustBuffer
- func (c FfiConverterOptionalMapUint64CounterSpan) LowerExternal(value *map[uint64]CounterSpan) ExternalCRustBuffer
- func (_ FfiConverterOptionalMapUint64CounterSpan) Read(reader io.Reader) *map[uint64]CounterSpan
- func (_ FfiConverterOptionalMapUint64CounterSpan) Write(writer io.Writer, value *map[uint64]CounterSpan)
- type FfiConverterOptionalOnPop
- func (c FfiConverterOptionalOnPop) Lift(rb RustBufferI) *OnPop
- func (c FfiConverterOptionalOnPop) Lower(value *OnPop) C.RustBuffer
- func (c FfiConverterOptionalOnPop) LowerExternal(value *OnPop) ExternalCRustBuffer
- func (_ FfiConverterOptionalOnPop) Read(reader io.Reader) *OnPop
- func (_ FfiConverterOptionalOnPop) Write(writer io.Writer, value *OnPop)
- type FfiConverterOptionalOnPush
- func (c FfiConverterOptionalOnPush) Lift(rb RustBufferI) *OnPush
- func (c FfiConverterOptionalOnPush) Lower(value *OnPush) C.RustBuffer
- func (c FfiConverterOptionalOnPush) LowerExternal(value *OnPush) ExternalCRustBuffer
- func (_ FfiConverterOptionalOnPush) Read(reader io.Reader) *OnPush
- func (_ FfiConverterOptionalOnPush) Write(writer io.Writer, value *OnPush)
- type FfiConverterOptionalOrdering
- func (c FfiConverterOptionalOrdering) Lift(rb RustBufferI) *Ordering
- func (c FfiConverterOptionalOrdering) Lower(value *Ordering) C.RustBuffer
- func (c FfiConverterOptionalOrdering) LowerExternal(value *Ordering) ExternalCRustBuffer
- func (_ FfiConverterOptionalOrdering) Read(reader io.Reader) *Ordering
- func (_ FfiConverterOptionalOrdering) Write(writer io.Writer, value *Ordering)
- type FfiConverterOptionalSequenceContainerPath
- func (c FfiConverterOptionalSequenceContainerPath) Lift(rb RustBufferI) *[]ContainerPath
- func (c FfiConverterOptionalSequenceContainerPath) Lower(value *[]ContainerPath) C.RustBuffer
- func (c FfiConverterOptionalSequenceContainerPath) LowerExternal(value *[]ContainerPath) ExternalCRustBuffer
- func (_ FfiConverterOptionalSequenceContainerPath) Read(reader io.Reader) *[]ContainerPath
- func (_ FfiConverterOptionalSequenceContainerPath) Write(writer io.Writer, value *[]ContainerPath)
- type FfiConverterOptionalSequenceTreeId
- func (c FfiConverterOptionalSequenceTreeId) Lift(rb RustBufferI) *[]TreeId
- func (c FfiConverterOptionalSequenceTreeId) Lower(value *[]TreeId) C.RustBuffer
- func (c FfiConverterOptionalSequenceTreeId) LowerExternal(value *[]TreeId) ExternalCRustBuffer
- func (_ FfiConverterOptionalSequenceTreeId) Read(reader io.Reader) *[]TreeId
- func (_ FfiConverterOptionalSequenceTreeId) Write(writer io.Writer, value *[]TreeId)
- type FfiConverterOptionalString
- func (c FfiConverterOptionalString) Lift(rb RustBufferI) *string
- func (c FfiConverterOptionalString) Lower(value *string) C.RustBuffer
- func (c FfiConverterOptionalString) LowerExternal(value *string) ExternalCRustBuffer
- func (_ FfiConverterOptionalString) Read(reader io.Reader) *string
- func (_ FfiConverterOptionalString) Write(writer io.Writer, value *string)
- type FfiConverterOptionalStyleConfig
- func (c FfiConverterOptionalStyleConfig) Lift(rb RustBufferI) *StyleConfig
- func (c FfiConverterOptionalStyleConfig) Lower(value *StyleConfig) C.RustBuffer
- func (c FfiConverterOptionalStyleConfig) LowerExternal(value *StyleConfig) ExternalCRustBuffer
- func (_ FfiConverterOptionalStyleConfig) Read(reader io.Reader) *StyleConfig
- func (_ FfiConverterOptionalStyleConfig) Write(writer io.Writer, value *StyleConfig)
- type FfiConverterOptionalSubscription
- func (c FfiConverterOptionalSubscription) Lift(rb RustBufferI) **Subscription
- func (c FfiConverterOptionalSubscription) Lower(value **Subscription) C.RustBuffer
- func (c FfiConverterOptionalSubscription) LowerExternal(value **Subscription) ExternalCRustBuffer
- func (_ FfiConverterOptionalSubscription) Read(reader io.Reader) **Subscription
- func (_ FfiConverterOptionalSubscription) Write(writer io.Writer, value **Subscription)
- type FfiConverterOptionalUint32
- func (c FfiConverterOptionalUint32) Lift(rb RustBufferI) *uint32
- func (c FfiConverterOptionalUint32) Lower(value *uint32) C.RustBuffer
- func (c FfiConverterOptionalUint32) LowerExternal(value *uint32) ExternalCRustBuffer
- func (_ FfiConverterOptionalUint32) Read(reader io.Reader) *uint32
- func (_ FfiConverterOptionalUint32) Write(writer io.Writer, value *uint32)
- type FfiConverterOptionalUint64
- func (c FfiConverterOptionalUint64) Lift(rb RustBufferI) *uint64
- func (c FfiConverterOptionalUint64) Lower(value *uint64) C.RustBuffer
- func (c FfiConverterOptionalUint64) LowerExternal(value *uint64) ExternalCRustBuffer
- func (_ FfiConverterOptionalUint64) Read(reader io.Reader) *uint64
- func (_ FfiConverterOptionalUint64) Write(writer io.Writer, value *uint64)
- type FfiConverterOptionalUndoItemMeta
- func (c FfiConverterOptionalUndoItemMeta) Lift(rb RustBufferI) *UndoItemMeta
- func (c FfiConverterOptionalUndoItemMeta) Lower(value *UndoItemMeta) C.RustBuffer
- func (c FfiConverterOptionalUndoItemMeta) LowerExternal(value *UndoItemMeta) ExternalCRustBuffer
- func (_ FfiConverterOptionalUndoItemMeta) Read(reader io.Reader) *UndoItemMeta
- func (_ FfiConverterOptionalUndoItemMeta) Write(writer io.Writer, value *UndoItemMeta)
- type FfiConverterOptionalValueOrContainer
- func (c FfiConverterOptionalValueOrContainer) Lift(rb RustBufferI) **ValueOrContainer
- func (c FfiConverterOptionalValueOrContainer) Lower(value **ValueOrContainer) C.RustBuffer
- func (c FfiConverterOptionalValueOrContainer) LowerExternal(value **ValueOrContainer) ExternalCRustBuffer
- func (_ FfiConverterOptionalValueOrContainer) Read(reader io.Reader) **ValueOrContainer
- func (_ FfiConverterOptionalValueOrContainer) Write(writer io.Writer, value **ValueOrContainer)
- type FfiConverterOptionalVersionVector
- func (c FfiConverterOptionalVersionVector) Lift(rb RustBufferI) **VersionVector
- func (c FfiConverterOptionalVersionVector) Lower(value **VersionVector) C.RustBuffer
- func (c FfiConverterOptionalVersionVector) LowerExternal(value **VersionVector) ExternalCRustBuffer
- func (_ FfiConverterOptionalVersionVector) Read(reader io.Reader) **VersionVector
- func (_ FfiConverterOptionalVersionVector) Write(writer io.Writer, value **VersionVector)
- type FfiConverterOrdering
- func (c FfiConverterOrdering) Lift(rb RustBufferI) Ordering
- func (c FfiConverterOrdering) Lower(value Ordering) C.RustBuffer
- func (c FfiConverterOrdering) LowerExternal(value Ordering) ExternalCRustBuffer
- func (FfiConverterOrdering) Read(reader io.Reader) Ordering
- func (FfiConverterOrdering) Write(writer io.Writer, value Ordering)
- type FfiConverterPathItem
- func (c FfiConverterPathItem) Lift(rb RustBufferI) PathItem
- func (c FfiConverterPathItem) Lower(value PathItem) C.RustBuffer
- func (c FfiConverterPathItem) LowerExternal(value PathItem) ExternalCRustBuffer
- func (c FfiConverterPathItem) Read(reader io.Reader) PathItem
- func (c FfiConverterPathItem) Write(writer io.Writer, value PathItem)
- type FfiConverterPeerInfo
- func (c FfiConverterPeerInfo) Lift(rb RustBufferI) PeerInfo
- func (c FfiConverterPeerInfo) Lower(value PeerInfo) C.RustBuffer
- func (c FfiConverterPeerInfo) LowerExternal(value PeerInfo) ExternalCRustBuffer
- func (c FfiConverterPeerInfo) Read(reader io.Reader) PeerInfo
- func (c FfiConverterPeerInfo) Write(writer io.Writer, value PeerInfo)
- type FfiConverterPosQueryResult
- func (c FfiConverterPosQueryResult) Lift(rb RustBufferI) PosQueryResult
- func (c FfiConverterPosQueryResult) Lower(value PosQueryResult) C.RustBuffer
- func (c FfiConverterPosQueryResult) LowerExternal(value PosQueryResult) ExternalCRustBuffer
- func (c FfiConverterPosQueryResult) Read(reader io.Reader) PosQueryResult
- func (c FfiConverterPosQueryResult) Write(writer io.Writer, value PosQueryResult)
- type FfiConverterPosType
- func (c FfiConverterPosType) Lift(rb RustBufferI) PosType
- func (c FfiConverterPosType) Lower(value PosType) C.RustBuffer
- func (c FfiConverterPosType) LowerExternal(value PosType) ExternalCRustBuffer
- func (FfiConverterPosType) Read(reader io.Reader) PosType
- func (FfiConverterPosType) Write(writer io.Writer, value PosType)
- type FfiConverterPreCommitCallback
- func (c FfiConverterPreCommitCallback) Lift(handle C.uint64_t) PreCommitCallback
- func (c FfiConverterPreCommitCallback) Lower(value PreCommitCallback) C.uint64_t
- func (c FfiConverterPreCommitCallback) Read(reader io.Reader) PreCommitCallback
- func (c FfiConverterPreCommitCallback) Write(writer io.Writer, value PreCommitCallback)
- type FfiConverterPreCommitCallbackPayload
- func (c FfiConverterPreCommitCallbackPayload) Lift(rb RustBufferI) PreCommitCallbackPayload
- func (c FfiConverterPreCommitCallbackPayload) Lower(value PreCommitCallbackPayload) C.RustBuffer
- func (c FfiConverterPreCommitCallbackPayload) LowerExternal(value PreCommitCallbackPayload) ExternalCRustBuffer
- func (c FfiConverterPreCommitCallbackPayload) Read(reader io.Reader) PreCommitCallbackPayload
- func (c FfiConverterPreCommitCallbackPayload) Write(writer io.Writer, value PreCommitCallbackPayload)
- type FfiConverterSequenceBytes
- func (c FfiConverterSequenceBytes) Lift(rb RustBufferI) [][]byte
- func (c FfiConverterSequenceBytes) Lower(value [][]byte) C.RustBuffer
- func (c FfiConverterSequenceBytes) LowerExternal(value [][]byte) ExternalCRustBuffer
- func (c FfiConverterSequenceBytes) Read(reader io.Reader) [][]byte
- func (c FfiConverterSequenceBytes) Write(writer io.Writer, value [][]byte)
- type FfiConverterSequenceContainerDiff
- func (c FfiConverterSequenceContainerDiff) Lift(rb RustBufferI) []ContainerDiff
- func (c FfiConverterSequenceContainerDiff) Lower(value []ContainerDiff) C.RustBuffer
- func (c FfiConverterSequenceContainerDiff) LowerExternal(value []ContainerDiff) ExternalCRustBuffer
- func (c FfiConverterSequenceContainerDiff) Read(reader io.Reader) []ContainerDiff
- func (c FfiConverterSequenceContainerDiff) Write(writer io.Writer, value []ContainerDiff)
- type FfiConverterSequenceContainerId
- func (c FfiConverterSequenceContainerId) Lift(rb RustBufferI) []ContainerId
- func (c FfiConverterSequenceContainerId) Lower(value []ContainerId) C.RustBuffer
- func (c FfiConverterSequenceContainerId) LowerExternal(value []ContainerId) ExternalCRustBuffer
- func (c FfiConverterSequenceContainerId) Read(reader io.Reader) []ContainerId
- func (c FfiConverterSequenceContainerId) Write(writer io.Writer, value []ContainerId)
- type FfiConverterSequenceContainerIdAndDiff
- func (c FfiConverterSequenceContainerIdAndDiff) Lift(rb RustBufferI) []ContainerIdAndDiff
- func (c FfiConverterSequenceContainerIdAndDiff) Lower(value []ContainerIdAndDiff) C.RustBuffer
- func (c FfiConverterSequenceContainerIdAndDiff) LowerExternal(value []ContainerIdAndDiff) ExternalCRustBuffer
- func (c FfiConverterSequenceContainerIdAndDiff) Read(reader io.Reader) []ContainerIdAndDiff
- func (c FfiConverterSequenceContainerIdAndDiff) Write(writer io.Writer, value []ContainerIdAndDiff)
- type FfiConverterSequenceContainerPath
- func (c FfiConverterSequenceContainerPath) Lift(rb RustBufferI) []ContainerPath
- func (c FfiConverterSequenceContainerPath) Lower(value []ContainerPath) C.RustBuffer
- func (c FfiConverterSequenceContainerPath) LowerExternal(value []ContainerPath) ExternalCRustBuffer
- func (c FfiConverterSequenceContainerPath) Read(reader io.Reader) []ContainerPath
- func (c FfiConverterSequenceContainerPath) Write(writer io.Writer, value []ContainerPath)
- type FfiConverterSequenceCursorWithPos
- func (c FfiConverterSequenceCursorWithPos) Lift(rb RustBufferI) []CursorWithPos
- func (c FfiConverterSequenceCursorWithPos) Lower(value []CursorWithPos) C.RustBuffer
- func (c FfiConverterSequenceCursorWithPos) LowerExternal(value []CursorWithPos) ExternalCRustBuffer
- func (c FfiConverterSequenceCursorWithPos) Read(reader io.Reader) []CursorWithPos
- func (c FfiConverterSequenceCursorWithPos) Write(writer io.Writer, value []CursorWithPos)
- type FfiConverterSequenceId
- func (c FfiConverterSequenceId) Lift(rb RustBufferI) []Id
- func (c FfiConverterSequenceId) Lower(value []Id) C.RustBuffer
- func (c FfiConverterSequenceId) LowerExternal(value []Id) ExternalCRustBuffer
- func (c FfiConverterSequenceId) Read(reader io.Reader) []Id
- func (c FfiConverterSequenceId) Write(writer io.Writer, value []Id)
- type FfiConverterSequenceIdSpan
- func (c FfiConverterSequenceIdSpan) Lift(rb RustBufferI) []IdSpan
- func (c FfiConverterSequenceIdSpan) Lower(value []IdSpan) C.RustBuffer
- func (c FfiConverterSequenceIdSpan) LowerExternal(value []IdSpan) ExternalCRustBuffer
- func (c FfiConverterSequenceIdSpan) Read(reader io.Reader) []IdSpan
- func (c FfiConverterSequenceIdSpan) Write(writer io.Writer, value []IdSpan)
- type FfiConverterSequenceIndex
- func (c FfiConverterSequenceIndex) Lift(rb RustBufferI) []Index
- func (c FfiConverterSequenceIndex) Lower(value []Index) C.RustBuffer
- func (c FfiConverterSequenceIndex) LowerExternal(value []Index) ExternalCRustBuffer
- func (c FfiConverterSequenceIndex) Read(reader io.Reader) []Index
- func (c FfiConverterSequenceIndex) Write(writer io.Writer, value []Index)
- type FfiConverterSequenceListDiffItem
- func (c FfiConverterSequenceListDiffItem) Lift(rb RustBufferI) []ListDiffItem
- func (c FfiConverterSequenceListDiffItem) Lower(value []ListDiffItem) C.RustBuffer
- func (c FfiConverterSequenceListDiffItem) LowerExternal(value []ListDiffItem) ExternalCRustBuffer
- func (c FfiConverterSequenceListDiffItem) Read(reader io.Reader) []ListDiffItem
- func (c FfiConverterSequenceListDiffItem) Write(writer io.Writer, value []ListDiffItem)
- type FfiConverterSequenceLoroValue
- func (c FfiConverterSequenceLoroValue) Lift(rb RustBufferI) []LoroValue
- func (c FfiConverterSequenceLoroValue) Lower(value []LoroValue) C.RustBuffer
- func (c FfiConverterSequenceLoroValue) LowerExternal(value []LoroValue) ExternalCRustBuffer
- func (c FfiConverterSequenceLoroValue) Read(reader io.Reader) []LoroValue
- func (c FfiConverterSequenceLoroValue) Write(writer io.Writer, value []LoroValue)
- type FfiConverterSequencePathItem
- func (c FfiConverterSequencePathItem) Lift(rb RustBufferI) []PathItem
- func (c FfiConverterSequencePathItem) Lower(value []PathItem) C.RustBuffer
- func (c FfiConverterSequencePathItem) LowerExternal(value []PathItem) ExternalCRustBuffer
- func (c FfiConverterSequencePathItem) Read(reader io.Reader) []PathItem
- func (c FfiConverterSequencePathItem) Write(writer io.Writer, value []PathItem)
- type FfiConverterSequenceString
- func (c FfiConverterSequenceString) Lift(rb RustBufferI) []string
- func (c FfiConverterSequenceString) Lower(value []string) C.RustBuffer
- func (c FfiConverterSequenceString) LowerExternal(value []string) ExternalCRustBuffer
- func (c FfiConverterSequenceString) Read(reader io.Reader) []string
- func (c FfiConverterSequenceString) Write(writer io.Writer, value []string)
- type FfiConverterSequenceTextDelta
- func (c FfiConverterSequenceTextDelta) Lift(rb RustBufferI) []TextDelta
- func (c FfiConverterSequenceTextDelta) Lower(value []TextDelta) C.RustBuffer
- func (c FfiConverterSequenceTextDelta) LowerExternal(value []TextDelta) ExternalCRustBuffer
- func (c FfiConverterSequenceTextDelta) Read(reader io.Reader) []TextDelta
- func (c FfiConverterSequenceTextDelta) Write(writer io.Writer, value []TextDelta)
- type FfiConverterSequenceTreeDiffItem
- func (c FfiConverterSequenceTreeDiffItem) Lift(rb RustBufferI) []TreeDiffItem
- func (c FfiConverterSequenceTreeDiffItem) Lower(value []TreeDiffItem) C.RustBuffer
- func (c FfiConverterSequenceTreeDiffItem) LowerExternal(value []TreeDiffItem) ExternalCRustBuffer
- func (c FfiConverterSequenceTreeDiffItem) Read(reader io.Reader) []TreeDiffItem
- func (c FfiConverterSequenceTreeDiffItem) Write(writer io.Writer, value []TreeDiffItem)
- type FfiConverterSequenceTreeId
- func (c FfiConverterSequenceTreeId) Lift(rb RustBufferI) []TreeId
- func (c FfiConverterSequenceTreeId) Lower(value []TreeId) C.RustBuffer
- func (c FfiConverterSequenceTreeId) LowerExternal(value []TreeId) ExternalCRustBuffer
- func (c FfiConverterSequenceTreeId) Read(reader io.Reader) []TreeId
- func (c FfiConverterSequenceTreeId) Write(writer io.Writer, value []TreeId)
- type FfiConverterSequenceUint64
- func (c FfiConverterSequenceUint64) Lift(rb RustBufferI) []uint64
- func (c FfiConverterSequenceUint64) Lower(value []uint64) C.RustBuffer
- func (c FfiConverterSequenceUint64) LowerExternal(value []uint64) ExternalCRustBuffer
- func (c FfiConverterSequenceUint64) Read(reader io.Reader) []uint64
- func (c FfiConverterSequenceUint64) Write(writer io.Writer, value []uint64)
- type FfiConverterSequenceValueOrContainer
- func (c FfiConverterSequenceValueOrContainer) Lift(rb RustBufferI) []*ValueOrContainer
- func (c FfiConverterSequenceValueOrContainer) Lower(value []*ValueOrContainer) C.RustBuffer
- func (c FfiConverterSequenceValueOrContainer) LowerExternal(value []*ValueOrContainer) ExternalCRustBuffer
- func (c FfiConverterSequenceValueOrContainer) Read(reader io.Reader) []*ValueOrContainer
- func (c FfiConverterSequenceValueOrContainer) Write(writer io.Writer, value []*ValueOrContainer)
- type FfiConverterSequenceVersionRangeItem
- func (c FfiConverterSequenceVersionRangeItem) Lift(rb RustBufferI) []VersionRangeItem
- func (c FfiConverterSequenceVersionRangeItem) Lower(value []VersionRangeItem) C.RustBuffer
- func (c FfiConverterSequenceVersionRangeItem) LowerExternal(value []VersionRangeItem) ExternalCRustBuffer
- func (c FfiConverterSequenceVersionRangeItem) Read(reader io.Reader) []VersionRangeItem
- func (c FfiConverterSequenceVersionRangeItem) Write(writer io.Writer, value []VersionRangeItem)
- type FfiConverterSide
- type FfiConverterString
- func (FfiConverterString) Lift(rb RustBufferI) string
- func (FfiConverterString) Lower(value string) C.RustBuffer
- func (c FfiConverterString) LowerExternal(value string) ExternalCRustBuffer
- func (FfiConverterString) Read(reader io.Reader) string
- func (FfiConverterString) Write(writer io.Writer, value string)
- type FfiConverterStyleConfig
- func (c FfiConverterStyleConfig) Lift(rb RustBufferI) StyleConfig
- func (c FfiConverterStyleConfig) Lower(value StyleConfig) C.RustBuffer
- func (c FfiConverterStyleConfig) LowerExternal(value StyleConfig) ExternalCRustBuffer
- func (c FfiConverterStyleConfig) Read(reader io.Reader) StyleConfig
- func (c FfiConverterStyleConfig) Write(writer io.Writer, value StyleConfig)
- type FfiConverterStyleConfigMap
- func (c FfiConverterStyleConfigMap) Lift(handle C.uint64_t) *StyleConfigMap
- func (c FfiConverterStyleConfigMap) Lower(value *StyleConfigMap) C.uint64_t
- func (c FfiConverterStyleConfigMap) Read(reader io.Reader) *StyleConfigMap
- func (c FfiConverterStyleConfigMap) Write(writer io.Writer, value *StyleConfigMap)
- type FfiConverterSubscriber
- type FfiConverterSubscription
- type FfiConverterTextDelta
- func (c FfiConverterTextDelta) Lift(rb RustBufferI) TextDelta
- func (c FfiConverterTextDelta) Lower(value TextDelta) C.RustBuffer
- func (c FfiConverterTextDelta) LowerExternal(value TextDelta) ExternalCRustBuffer
- func (FfiConverterTextDelta) Read(reader io.Reader) TextDelta
- func (FfiConverterTextDelta) Write(writer io.Writer, value TextDelta)
- type FfiConverterTreeDiff
- func (c FfiConverterTreeDiff) Lift(rb RustBufferI) TreeDiff
- func (c FfiConverterTreeDiff) Lower(value TreeDiff) C.RustBuffer
- func (c FfiConverterTreeDiff) LowerExternal(value TreeDiff) ExternalCRustBuffer
- func (c FfiConverterTreeDiff) Read(reader io.Reader) TreeDiff
- func (c FfiConverterTreeDiff) Write(writer io.Writer, value TreeDiff)
- type FfiConverterTreeDiffItem
- func (c FfiConverterTreeDiffItem) Lift(rb RustBufferI) TreeDiffItem
- func (c FfiConverterTreeDiffItem) Lower(value TreeDiffItem) C.RustBuffer
- func (c FfiConverterTreeDiffItem) LowerExternal(value TreeDiffItem) ExternalCRustBuffer
- func (c FfiConverterTreeDiffItem) Read(reader io.Reader) TreeDiffItem
- func (c FfiConverterTreeDiffItem) Write(writer io.Writer, value TreeDiffItem)
- type FfiConverterTreeExternalDiff
- func (c FfiConverterTreeExternalDiff) Lift(rb RustBufferI) TreeExternalDiff
- func (c FfiConverterTreeExternalDiff) Lower(value TreeExternalDiff) C.RustBuffer
- func (c FfiConverterTreeExternalDiff) LowerExternal(value TreeExternalDiff) ExternalCRustBuffer
- func (FfiConverterTreeExternalDiff) Read(reader io.Reader) TreeExternalDiff
- func (FfiConverterTreeExternalDiff) Write(writer io.Writer, value TreeExternalDiff)
- type FfiConverterTreeId
- func (c FfiConverterTreeId) Lift(rb RustBufferI) TreeId
- func (c FfiConverterTreeId) Lower(value TreeId) C.RustBuffer
- func (c FfiConverterTreeId) LowerExternal(value TreeId) ExternalCRustBuffer
- func (c FfiConverterTreeId) Read(reader io.Reader) TreeId
- func (c FfiConverterTreeId) Write(writer io.Writer, value TreeId)
- type FfiConverterTreeParentId
- func (c FfiConverterTreeParentId) Lift(rb RustBufferI) TreeParentId
- func (c FfiConverterTreeParentId) Lower(value TreeParentId) C.RustBuffer
- func (c FfiConverterTreeParentId) LowerExternal(value TreeParentId) ExternalCRustBuffer
- func (FfiConverterTreeParentId) Read(reader io.Reader) TreeParentId
- func (FfiConverterTreeParentId) Write(writer io.Writer, value TreeParentId)
- type FfiConverterUint8
- type FfiConverterUint32
- type FfiConverterUint64
- type FfiConverterUndoItemMeta
- func (c FfiConverterUndoItemMeta) Lift(rb RustBufferI) UndoItemMeta
- func (c FfiConverterUndoItemMeta) Lower(value UndoItemMeta) C.RustBuffer
- func (c FfiConverterUndoItemMeta) LowerExternal(value UndoItemMeta) ExternalCRustBuffer
- func (c FfiConverterUndoItemMeta) Read(reader io.Reader) UndoItemMeta
- func (c FfiConverterUndoItemMeta) Write(writer io.Writer, value UndoItemMeta)
- type FfiConverterUndoManager
- type FfiConverterUndoOrRedo
- func (c FfiConverterUndoOrRedo) Lift(rb RustBufferI) UndoOrRedo
- func (c FfiConverterUndoOrRedo) Lower(value UndoOrRedo) C.RustBuffer
- func (c FfiConverterUndoOrRedo) LowerExternal(value UndoOrRedo) ExternalCRustBuffer
- func (FfiConverterUndoOrRedo) Read(reader io.Reader) UndoOrRedo
- func (FfiConverterUndoOrRedo) Write(writer io.Writer, value UndoOrRedo)
- type FfiConverterUnsubscriber
- type FfiConverterUpdateOptions
- func (c FfiConverterUpdateOptions) Lift(rb RustBufferI) UpdateOptions
- func (c FfiConverterUpdateOptions) Lower(value UpdateOptions) C.RustBuffer
- func (c FfiConverterUpdateOptions) LowerExternal(value UpdateOptions) ExternalCRustBuffer
- func (c FfiConverterUpdateOptions) Read(reader io.Reader) UpdateOptions
- func (c FfiConverterUpdateOptions) Write(writer io.Writer, value UpdateOptions)
- type FfiConverterUpdateTimeoutError
- func (c FfiConverterUpdateTimeoutError) Lift(eb RustBufferI) *UpdateTimeoutError
- func (c FfiConverterUpdateTimeoutError) Lower(value *UpdateTimeoutError) C.RustBuffer
- func (c FfiConverterUpdateTimeoutError) LowerExternal(value *UpdateTimeoutError) ExternalCRustBuffer
- func (c FfiConverterUpdateTimeoutError) Read(reader io.Reader) *UpdateTimeoutError
- func (c FfiConverterUpdateTimeoutError) Write(writer io.Writer, value *UpdateTimeoutError)
- type FfiConverterValueOrContainer
- func (c FfiConverterValueOrContainer) Lift(handle C.uint64_t) *ValueOrContainer
- func (c FfiConverterValueOrContainer) Lower(value *ValueOrContainer) C.uint64_t
- func (c FfiConverterValueOrContainer) Read(reader io.Reader) *ValueOrContainer
- func (c FfiConverterValueOrContainer) Write(writer io.Writer, value *ValueOrContainer)
- type FfiConverterVersionRange
- type FfiConverterVersionRangeItem
- func (c FfiConverterVersionRangeItem) Lift(rb RustBufferI) VersionRangeItem
- func (c FfiConverterVersionRangeItem) Lower(value VersionRangeItem) C.RustBuffer
- func (c FfiConverterVersionRangeItem) LowerExternal(value VersionRangeItem) ExternalCRustBuffer
- func (c FfiConverterVersionRangeItem) Read(reader io.Reader) VersionRangeItem
- func (c FfiConverterVersionRangeItem) Write(writer io.Writer, value VersionRangeItem)
- type FfiConverterVersionVector
- func (c FfiConverterVersionVector) Lift(handle C.uint64_t) *VersionVector
- func (c FfiConverterVersionVector) Lower(value *VersionVector) C.uint64_t
- func (c FfiConverterVersionVector) Read(reader io.Reader) *VersionVector
- func (c FfiConverterVersionVector) Write(writer io.Writer, value *VersionVector)
- type FfiConverterVersionVectorDiff
- func (c FfiConverterVersionVectorDiff) Lift(rb RustBufferI) VersionVectorDiff
- func (c FfiConverterVersionVectorDiff) Lower(value VersionVectorDiff) C.RustBuffer
- func (c FfiConverterVersionVectorDiff) LowerExternal(value VersionVectorDiff) ExternalCRustBuffer
- func (c FfiConverterVersionVectorDiff) Read(reader io.Reader) VersionVectorDiff
- func (c FfiConverterVersionVectorDiff) Write(writer io.Writer, value VersionVectorDiff)
- type FfiDestroyerAbsolutePosition
- type FfiDestroyerAwareness
- type FfiDestroyerAwarenessPeerUpdate
- type FfiDestroyerBool
- type FfiDestroyerBytes
- type FfiDestroyerCannotFindRelativePosition
- type FfiDestroyerChangeAncestorsTraveler
- type FfiDestroyerChangeMeta
- type FfiDestroyerChangeModifier
- type FfiDestroyerChangeTravelError
- type FfiDestroyerCommitOptions
- type FfiDestroyerConfigure
- type FfiDestroyerContainerDiff
- type FfiDestroyerContainerId
- type FfiDestroyerContainerIdAndDiff
- type FfiDestroyerContainerIdLike
- type FfiDestroyerContainerPath
- type FfiDestroyerContainerType
- type FfiDestroyerCounterSpan
- type FfiDestroyerCursor
- type FfiDestroyerCursorWithPos
- type FfiDestroyerDiff
- type FfiDestroyerDiffBatch
- type FfiDestroyerDiffEvent
- type FfiDestroyerEphemeralEventTrigger
- type FfiDestroyerEphemeralStore
- type FfiDestroyerEphemeralStoreEvent
- type FfiDestroyerEphemeralSubscriber
- type FfiDestroyerEventTriggerKind
- type FfiDestroyerExpandType
- type FfiDestroyerExportMode
- type FfiDestroyerFirstCommitFromPeerCallback
- type FfiDestroyerFirstCommitFromPeerPayload
- type FfiDestroyerFloat64
- type FfiDestroyerFractionalIndex
- type FfiDestroyerFrontiers
- type FfiDestroyerFrontiersOrId
- type FfiDestroyerId
- type FfiDestroyerIdLp
- type FfiDestroyerIdSpan
- type FfiDestroyerImportBlobMetadata
- type FfiDestroyerImportStatus
- type FfiDestroyerIndex
- type FfiDestroyerInt32
- type FfiDestroyerInt64
- type FfiDestroyerJsonPathError
- type FfiDestroyerJsonPathSubscriber
- type FfiDestroyerListDiffItem
- type FfiDestroyerLocalEphemeralListener
- type FfiDestroyerLocalUpdateCallback
- type FfiDestroyerLoroCounter
- type FfiDestroyerLoroDoc
- type FfiDestroyerLoroEncodeError
- type FfiDestroyerLoroError
- type FfiDestroyerLoroList
- type FfiDestroyerLoroMap
- type FfiDestroyerLoroMovableList
- type FfiDestroyerLoroText
- type FfiDestroyerLoroTree
- type FfiDestroyerLoroUnknown
- type FfiDestroyerLoroValue
- type FfiDestroyerLoroValueLike
- type FfiDestroyerMapDelta
- type FfiDestroyerMapStringLoroValue
- type FfiDestroyerMapStringOptionalValueOrContainer
- type FfiDestroyerMapUint64CounterSpan
- type FfiDestroyerMapUint64Int32
- type FfiDestroyerMapUint64PeerInfo
- type FfiDestroyerOnPop
- type FfiDestroyerOnPush
- type FfiDestroyerOptionalChangeMeta
- type FfiDestroyerOptionalContainerId
- type FfiDestroyerOptionalContainerType
- type FfiDestroyerOptionalCounterSpan
- type FfiDestroyerOptionalCursor
- type FfiDestroyerOptionalDiff
- type FfiDestroyerOptionalDiffEvent
- type FfiDestroyerOptionalFloat64
- type FfiDestroyerOptionalFrontiers
- type FfiDestroyerOptionalId
- type FfiDestroyerOptionalInt32
- type FfiDestroyerOptionalInt64
- type FfiDestroyerOptionalLoroCounter
- type FfiDestroyerOptionalLoroDoc
- type FfiDestroyerOptionalLoroList
- type FfiDestroyerOptionalLoroMap
- type FfiDestroyerOptionalLoroMovableList
- type FfiDestroyerOptionalLoroText
- type FfiDestroyerOptionalLoroTree
- type FfiDestroyerOptionalLoroUnknown
- type FfiDestroyerOptionalLoroValue
- type FfiDestroyerOptionalMapStringLoroValue
- type FfiDestroyerOptionalMapUint64CounterSpan
- type FfiDestroyerOptionalOnPop
- type FfiDestroyerOptionalOnPush
- type FfiDestroyerOptionalOrdering
- type FfiDestroyerOptionalSequenceContainerPath
- type FfiDestroyerOptionalSequenceTreeId
- type FfiDestroyerOptionalString
- type FfiDestroyerOptionalStyleConfig
- type FfiDestroyerOptionalSubscription
- type FfiDestroyerOptionalUint32
- type FfiDestroyerOptionalUint64
- type FfiDestroyerOptionalUndoItemMeta
- type FfiDestroyerOptionalValueOrContainer
- type FfiDestroyerOptionalVersionVector
- type FfiDestroyerOrdering
- type FfiDestroyerPathItem
- type FfiDestroyerPeerInfo
- type FfiDestroyerPosQueryResult
- type FfiDestroyerPosType
- type FfiDestroyerPreCommitCallback
- type FfiDestroyerPreCommitCallbackPayload
- type FfiDestroyerSequenceBytes
- type FfiDestroyerSequenceContainerDiff
- type FfiDestroyerSequenceContainerId
- type FfiDestroyerSequenceContainerIdAndDiff
- type FfiDestroyerSequenceContainerPath
- type FfiDestroyerSequenceCursorWithPos
- type FfiDestroyerSequenceId
- type FfiDestroyerSequenceIdSpan
- type FfiDestroyerSequenceIndex
- type FfiDestroyerSequenceListDiffItem
- type FfiDestroyerSequenceLoroValue
- type FfiDestroyerSequencePathItem
- type FfiDestroyerSequenceString
- type FfiDestroyerSequenceTextDelta
- type FfiDestroyerSequenceTreeDiffItem
- type FfiDestroyerSequenceTreeId
- type FfiDestroyerSequenceUint64
- type FfiDestroyerSequenceValueOrContainer
- type FfiDestroyerSequenceVersionRangeItem
- type FfiDestroyerSide
- type FfiDestroyerString
- type FfiDestroyerStyleConfig
- type FfiDestroyerStyleConfigMap
- type FfiDestroyerSubscriber
- type FfiDestroyerSubscription
- type FfiDestroyerTextDelta
- type FfiDestroyerTreeDiff
- type FfiDestroyerTreeDiffItem
- type FfiDestroyerTreeExternalDiff
- type FfiDestroyerTreeId
- type FfiDestroyerTreeParentId
- type FfiDestroyerUint8
- type FfiDestroyerUint32
- type FfiDestroyerUint64
- type FfiDestroyerUndoItemMeta
- type FfiDestroyerUndoManager
- type FfiDestroyerUndoOrRedo
- type FfiDestroyerUnsubscriber
- type FfiDestroyerUpdateOptions
- type FfiDestroyerUpdateTimeoutError
- type FfiDestroyerValueOrContainer
- type FfiDestroyerVersionRange
- type FfiDestroyerVersionRangeItem
- type FfiDestroyerVersionVector
- type FfiDestroyerVersionVectorDiff
- type FfiObject
- type FirstCommitFromPeerCallback
- type FirstCommitFromPeerCallbackFn
- type FirstCommitFromPeerCallbackImpl
- type FirstCommitFromPeerPayload
- type FractionalIndex
- type FractionalIndexInterface
- type Frontiers
- type FrontiersInterface
- type FrontiersOrId
- type GoRustBuffer
- type Id
- type IdLp
- type IdSpan
- type ImportBlobMetadata
- type ImportStatus
- type Index
- type IndexKey
- type IndexNode
- type IndexSeq
- type JsonPathError
- type JsonPathErrorEvaluationError
- type JsonPathErrorInvalidJsonPath
- type JsonPathSubscriber
- type JsonPathSubscriberFn
- type JsonPathSubscriberImpl
- type ListDiffItem
- type ListDiffItemDelete
- type ListDiffItemInsert
- type ListDiffItemRetain
- type LocalEphemeralListener
- type LocalEphemeralListenerFn
- type LocalEphemeralListenerImpl
- type LocalUpdateCallback
- type LocalUpdateCallbackFn
- type LocalUpdateCallbackImpl
- type LoroCounter
- func (c *LoroCounter) Attached() *LoroCounter
- func (_self *LoroCounter) Decrement(value float64) error
- func (object *LoroCounter) Destroy()
- func (_self *LoroCounter) Doc() **LoroDoc
- func (_self *LoroCounter) GetAttached() **LoroCounter
- func (_self *LoroCounter) GetValue() float64
- func (_self *LoroCounter) Id() ContainerId
- func (_self *LoroCounter) Increment(value float64) error
- func (_self *LoroCounter) IsAttached() bool
- func (_self *LoroCounter) IsDeleted() bool
- func (c *LoroCounter) OwnerDoc() *LoroDoc
- func (_self *LoroCounter) Subscribe(subscriber Subscriber) **Subscription
- func (c *LoroCounter) SubscribeFn(fn func(diff DiffEvent)) *Subscription
- type LoroCounterInterface
- type LoroDoc
- func (_self *LoroDoc) ApplyDiff(diff *DiffBatch) error
- func (_self *LoroDoc) Attach()
- func (_self *LoroDoc) CheckStateCorrectnessSlow()
- func (_self *LoroDoc) Checkout(frontiers *Frontiers) error
- func (_self *LoroDoc) CheckoutToLatest()
- func (_self *LoroDoc) ClearNextCommitOptions()
- func (_self *LoroDoc) CmpWithFrontiers(other *Frontiers) Ordering
- func (_self *LoroDoc) Commit()
- func (_self *LoroDoc) CommitWith(options CommitOptions)
- func (_self *LoroDoc) CompactChangeStore()
- func (_self *LoroDoc) Config() *Configure
- func (_self *LoroDoc) ConfigDefaultTextStyle(textStyle *StyleConfig)
- func (_self *LoroDoc) ConfigTextStyle(textStyle *StyleConfigMap)
- func (_self *LoroDoc) DeleteRootContainer(cid ContainerId)
- func (object *LoroDoc) Destroy()
- func (_self *LoroDoc) Detach()
- func (_self *LoroDoc) Diff(a *Frontiers, b *Frontiers) (*DiffBatch, error)
- func (_self *LoroDoc) Export(mode ExportMode) ([]byte, error)
- func (_self *LoroDoc) ExportJsonInIdSpan(idSpan IdSpan) []string
- func (_self *LoroDoc) ExportJsonUpdates(startVv *VersionVector, endVv *VersionVector) string
- func (_self *LoroDoc) ExportJsonUpdatesWithoutPeerCompression(startVv *VersionVector, endVv *VersionVector) string
- func (_self *LoroDoc) ExportShallowSnapshot(frontiers *Frontiers) ([]byte, error)
- func (_self *LoroDoc) ExportSnapshot() ([]byte, error)
- func (_self *LoroDoc) ExportSnapshotAt(frontiers *Frontiers) ([]byte, error)
- func (_self *LoroDoc) ExportStateOnly(frontiers **Frontiers) ([]byte, error)
- func (_self *LoroDoc) ExportUpdates(vv *VersionVector) ([]byte, error)
- func (_self *LoroDoc) ExportUpdatesInRange(spans []IdSpan) ([]byte, error)
- func (d *LoroDoc) FindByPath(parts ...any) *ValueOrContainer
- func (d *LoroDoc) FindByStrPath(path string) *ValueOrContainer
- func (d *LoroDoc) FindContainer(id ContainerId) *ValueOrContainer
- func (d *LoroDoc) FindCounter(id ContainerIdLike) *LoroCounter
- func (_self *LoroDoc) FindIdSpansBetween(from *Frontiers, to *Frontiers) VersionVectorDiff
- func (d *LoroDoc) FindList(id ContainerIdLike) *LoroList
- func (d *LoroDoc) FindMap(id ContainerIdLike) *LoroMap
- func (d *LoroDoc) FindMovableList(id ContainerIdLike) *LoroMovableList
- func (d *LoroDoc) FindText(id ContainerIdLike) *LoroText
- func (d *LoroDoc) FindTree(id ContainerIdLike) *LoroTree
- func (_self *LoroDoc) Fork() *LoroDoc
- func (_self *LoroDoc) ForkAt(frontiers *Frontiers) (*LoroDoc, error)
- func (_self *LoroDoc) FreeDiffCalculator()
- func (_self *LoroDoc) FreeHistoryCache()
- func (_self *LoroDoc) FrontiersToVv(frontiers *Frontiers) **VersionVector
- func (_self *LoroDoc) GetByPath(path []Index) **ValueOrContainer
- func (_self *LoroDoc) GetByStrPath(path string) **ValueOrContainer
- func (_self *LoroDoc) GetChange(id Id) *ChangeMeta
- func (_self *LoroDoc) GetChangedContainersIn(id Id, len uint32) []ContainerId
- func (_self *LoroDoc) GetContainer(id ContainerId) **ValueOrContainer
- func (_self *LoroDoc) GetCounter(id ContainerIdLike) *LoroCounter
- func (_self *LoroDoc) GetCursorPos(cursor *Cursor) (PosQueryResult, error)
- func (_self *LoroDoc) GetDeepValue() LoroValue
- func (_self *LoroDoc) GetDeepValueWithId() LoroValue
- func (_self *LoroDoc) GetList(id ContainerIdLike) *LoroList
- func (_self *LoroDoc) GetMap(id ContainerIdLike) *LoroMap
- func (_self *LoroDoc) GetMovableList(id ContainerIdLike) *LoroMovableList
- func (_self *LoroDoc) GetPathToContainer(id ContainerId) *[]ContainerPath
- func (_self *LoroDoc) GetPendingTxnLen() uint32
- func (_self *LoroDoc) GetText(id ContainerIdLike) *LoroText
- func (_self *LoroDoc) GetTree(id ContainerIdLike) *LoroTree
- func (_self *LoroDoc) GetValue() LoroValue
- func (_self *LoroDoc) HasContainer(id ContainerId) bool
- func (_self *LoroDoc) HasHistoryCache() bool
- func (_self *LoroDoc) Import(bytes []byte) (ImportStatus, error)
- func (_self *LoroDoc) ImportBatch(bytes [][]byte) (ImportStatus, error)
- func (_self *LoroDoc) ImportJsonUpdates(json string) (ImportStatus, error)
- func (_self *LoroDoc) ImportWith(bytes []byte, origin string) (ImportStatus, error)
- func (_self *LoroDoc) IsDetached() bool
- func (_self *LoroDoc) IsShallow() bool
- func (_self *LoroDoc) Jsonpath(path string) ([]*ValueOrContainer, error)
- func (_self *LoroDoc) LenChanges() uint64
- func (_self *LoroDoc) LenOps() uint64
- func (_self *LoroDoc) MinimizeFrontiers(frontiers *Frontiers) FrontiersOrId
- func (_self *LoroDoc) OplogFrontiers() *Frontiers
- func (_self *LoroDoc) OplogVv() *VersionVector
- func (_self *LoroDoc) PeerId() uint64
- func (_self *LoroDoc) RedactJsonUpdates(json string, versionRange *VersionRange) (string, error)
- func (_self *LoroDoc) RevertTo(version *Frontiers) error
- func (_self *LoroDoc) SetChangeMergeInterval(interval int64)
- func (_self *LoroDoc) SetHideEmptyRootContainers(hide bool)
- func (_self *LoroDoc) SetNextCommitMessage(msg string)
- func (_self *LoroDoc) SetNextCommitOptions(options CommitOptions)
- func (_self *LoroDoc) SetNextCommitOrigin(origin string)
- func (_self *LoroDoc) SetNextCommitTimestamp(timestamp int64)
- func (_self *LoroDoc) SetPeerId(peer uint64) error
- func (_self *LoroDoc) SetRecordTimestamp(record bool)
- func (_self *LoroDoc) ShallowSinceVv() *VersionVector
- func (_self *LoroDoc) StateFrontiers() *Frontiers
- func (_self *LoroDoc) StateVv() *VersionVector
- func (_self *LoroDoc) Subscribe(containerId ContainerId, subscriber Subscriber) *Subscription
- func (_self *LoroDoc) SubscribeFirstCommitFromPeer(callback FirstCommitFromPeerCallback) *Subscription
- func (doc *LoroDoc) SubscribeFirstCommitFromPeerFn(fn func(payload FirstCommitFromPeerPayload)) *Subscription
- func (doc *LoroDoc) SubscribeFn(containerId ContainerId, fn func(diff DiffEvent)) *Subscription
- func (_self *LoroDoc) SubscribeJsonpath(path string, callback JsonPathSubscriber) (*Subscription, error)
- func (doc *LoroDoc) SubscribeJsonpathFn(path string, fn func()) (*Subscription, error)
- func (_self *LoroDoc) SubscribeLocalUpdate(callback LocalUpdateCallback) *Subscription
- func (doc *LoroDoc) SubscribeLocalUpdateFn(fn func(update []byte)) *Subscription
- func (_self *LoroDoc) SubscribePreCommit(callback PreCommitCallback) *Subscription
- func (doc *LoroDoc) SubscribePreCommitFn(fn func(payload PreCommitCallbackPayload)) *Subscription
- func (_self *LoroDoc) SubscribeRoot(subscriber Subscriber) *Subscription
- func (doc *LoroDoc) SubscribeRootFn(fn func(diff DiffEvent)) *Subscription
- func (_self *LoroDoc) TravelChangeAncestors(ids []Id, f ChangeAncestorsTraveler) error
- func (doc *LoroDoc) TravelChangeAncestorsFn(ids []Id, fn func(change ChangeMeta) bool) error
- func (_self *LoroDoc) TryGetCounter(id ContainerIdLike) **LoroCounter
- func (_self *LoroDoc) TryGetList(id ContainerIdLike) **LoroList
- func (_self *LoroDoc) TryGetMap(id ContainerIdLike) **LoroMap
- func (_self *LoroDoc) TryGetMovableList(id ContainerIdLike) **LoroMovableList
- func (_self *LoroDoc) TryGetText(id ContainerIdLike) **LoroText
- func (_self *LoroDoc) TryGetTree(id ContainerIdLike) **LoroTree
- func (_self *LoroDoc) VvToFrontiers(vv *VersionVector) *Frontiers
- type LoroDocInterface
- type LoroEncodeError
- type LoroEncodeErrorFrontiersNotFound
- type LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat
- type LoroEncodeErrorUnknownContainer
- type LoroError
- func NewLoroErrorArgErr() *LoroError
- func NewLoroErrorAutoCommitNotStarted() *LoroError
- func NewLoroErrorConcurrentOpsWithSamePeerId() *LoroError
- func NewLoroErrorContainerDeleted() *LoroError
- func NewLoroErrorContainersNotFound() *LoroError
- func NewLoroErrorDecodeChecksumMismatchError() *LoroError
- func NewLoroErrorDecodeDataCorruptionError() *LoroError
- func NewLoroErrorDecodeError() *LoroError
- func NewLoroErrorDecodeVersionVectorError() *LoroError
- func NewLoroErrorDuplicatedTransactionError() *LoroError
- func NewLoroErrorEditWhenDetached() *LoroError
- func NewLoroErrorEndIndexLessThanStartIndex() *LoroError
- func NewLoroErrorFrontiersNotFound() *LoroError
- func NewLoroErrorImportUnsupportedEncodingMode() *LoroError
- func NewLoroErrorImportUpdatesThatDependsOnOutdatedVersion() *LoroError
- func NewLoroErrorImportWhenInTxn() *LoroError
- func NewLoroErrorIncompatibleFutureEncodingError() *LoroError
- func NewLoroErrorInvalidJsonSchema() *LoroError
- func NewLoroErrorInvalidPeerId() *LoroError
- func NewLoroErrorInvalidRootContainerName() *LoroError
- func NewLoroErrorJsError() *LoroError
- func NewLoroErrorLockError() *LoroError
- func NewLoroErrorMisuseDetachedContainer() *LoroError
- func NewLoroErrorNotFoundError() *LoroError
- func NewLoroErrorNotImplemented() *LoroError
- func NewLoroErrorOutOfBound() *LoroError
- func NewLoroErrorReattachAttachedContainer() *LoroError
- func NewLoroErrorStyleConfigMissing() *LoroError
- func NewLoroErrorSwitchToVersionBeforeShallowRoot() *LoroError
- func NewLoroErrorTransactionError() *LoroError
- func NewLoroErrorTreeError() *LoroError
- func NewLoroErrorUndoGroupAlreadyStarted() *LoroError
- func NewLoroErrorUndoInvalidIdSpan() *LoroError
- func NewLoroErrorUndoWithDifferentPeerId() *LoroError
- func NewLoroErrorUnknown() *LoroError
- func NewLoroErrorUnmatchedContext() *LoroError
- func NewLoroErrorUsedOpId() *LoroError
- func NewLoroErrorUtf8InUnicodeCodePoint() *LoroError
- func NewLoroErrorUtf16InUnicodeCodePoint() *LoroError
- type LoroErrorArgErr
- type LoroErrorAutoCommitNotStarted
- type LoroErrorConcurrentOpsWithSamePeerId
- type LoroErrorContainerDeleted
- type LoroErrorContainersNotFound
- type LoroErrorDecodeChecksumMismatchError
- type LoroErrorDecodeDataCorruptionError
- type LoroErrorDecodeError
- type LoroErrorDecodeVersionVectorError
- type LoroErrorDuplicatedTransactionError
- type LoroErrorEditWhenDetached
- type LoroErrorEndIndexLessThanStartIndex
- type LoroErrorFrontiersNotFound
- type LoroErrorImportUnsupportedEncodingMode
- type LoroErrorImportUpdatesThatDependsOnOutdatedVersion
- type LoroErrorImportWhenInTxn
- type LoroErrorIncompatibleFutureEncodingError
- type LoroErrorInvalidJsonSchema
- type LoroErrorInvalidPeerId
- type LoroErrorInvalidRootContainerName
- type LoroErrorJsError
- type LoroErrorLockError
- type LoroErrorMisuseDetachedContainer
- type LoroErrorNotFoundError
- type LoroErrorNotImplemented
- type LoroErrorOutOfBound
- type LoroErrorReattachAttachedContainer
- type LoroErrorStyleConfigMissing
- type LoroErrorSwitchToVersionBeforeShallowRoot
- type LoroErrorTransactionError
- type LoroErrorTreeError
- type LoroErrorUndoGroupAlreadyStarted
- type LoroErrorUndoInvalidIdSpan
- type LoroErrorUndoWithDifferentPeerId
- type LoroErrorUnknown
- type LoroErrorUnmatchedContext
- type LoroErrorUsedOpId
- type LoroErrorUtf8InUnicodeCodePoint
- type LoroErrorUtf16InUnicodeCodePoint
- type LoroList
- func (l *LoroList) All() iter.Seq2[int, *ValueOrContainer]
- func (l *LoroList) At(index uint32) *ValueOrContainer
- func (l *LoroList) Attached() *LoroList
- func (_self *LoroList) Clear() error
- func (l *LoroList) Cursor(pos uint32, side Side) *Cursor
- func (_self *LoroList) Delete(pos uint32, len uint32) error
- func (object *LoroList) Destroy()
- func (_self *LoroList) Doc() **LoroDoc
- func (_self *LoroList) Get(index uint32) **ValueOrContainer
- func (l *LoroList) GetAny(index uint32) (any, bool)
- func (_self *LoroList) GetAttached() **LoroList
- func (l *LoroList) GetBool(index uint32) (bool, bool)
- func (_self *LoroList) GetCursor(pos uint32, side Side) **Cursor
- func (_self *LoroList) GetDeepValue() LoroValue
- func (l *LoroList) GetFloat64(index uint32) (float64, bool)
- func (_self *LoroList) GetIdAt(pos uint32) *Id
- func (l *LoroList) GetInt64(index uint32) (int64, bool)
- func (l *LoroList) GetList(index uint32) ([]LoroValue, bool)
- func (l *LoroList) GetListOfAny(index uint32) ([]any, bool)
- func (l *LoroList) GetLoroCounter(index uint32) (*LoroCounter, bool)
- func (l *LoroList) GetLoroList(index uint32) (*LoroList, bool)
- func (l *LoroList) GetLoroMap(index uint32) (*LoroMap, bool)
- func (l *LoroList) GetLoroMovableList(index uint32) (*LoroMovableList, bool)
- func (l *LoroList) GetLoroText(index uint32) (*LoroText, bool)
- func (l *LoroList) GetLoroTree(index uint32) (*LoroTree, bool)
- func (l *LoroList) GetMap(index uint32) (map[string]LoroValue, bool)
- func (l *LoroList) GetMapOfAny(index uint32) (map[string]any, bool)
- func (l *LoroList) GetString(index uint32) (string, bool)
- func (_self *LoroList) GetValue() LoroValue
- func (_self *LoroList) Id() ContainerId
- func (_self *LoroList) Insert(pos uint32, v LoroValueLike) error
- func (l *LoroList) InsertAny(pos uint32, v any) error
- func (_self *LoroList) InsertCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
- func (_self *LoroList) InsertListContainer(pos uint32, child *LoroList) (*LoroList, error)
- func (l *LoroList) InsertLoroCounter(pos uint32) (*LoroCounter, error)
- func (l *LoroList) InsertLoroList(pos uint32) (*LoroList, error)
- func (l *LoroList) InsertLoroMap(pos uint32) (*LoroMap, error)
- func (l *LoroList) InsertLoroMovableList(pos uint32) (*LoroMovableList, error)
- func (l *LoroList) InsertLoroText(pos uint32) (*LoroText, error)
- func (l *LoroList) InsertLoroTree(pos uint32) (*LoroTree, error)
- func (_self *LoroList) InsertMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
- func (_self *LoroList) InsertMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
- func (_self *LoroList) InsertTextContainer(pos uint32, child *LoroText) (*LoroText, error)
- func (_self *LoroList) InsertTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
- func (_self *LoroList) IsAttached() bool
- func (_self *LoroList) IsDeleted() bool
- func (_self *LoroList) IsEmpty() bool
- func (l *LoroList) IsExplicitlyNil(index uint32) bool
- func (_self *LoroList) Len() uint32
- func (l *LoroList) OwnerDoc() *LoroDoc
- func (_self *LoroList) Pop() (*LoroValue, error)
- func (_self *LoroList) Push(v LoroValueLike) error
- func (l *LoroList) PushAny(v any) error
- func (_self *LoroList) Subscribe(subscriber Subscriber) **Subscription
- func (l *LoroList) SubscribeFn(fn func(diff DiffEvent)) *Subscription
- func (_self *LoroList) ToVec() []LoroValue
- type LoroListInterface
- type LoroMap
- func (m *LoroMap) All() iter.Seq2[string, *ValueOrContainer]
- func (m *LoroMap) Attached() *LoroMap
- func (_self *LoroMap) Clear() error
- func (_self *LoroMap) Delete(key string) error
- func (object *LoroMap) Destroy()
- func (_self *LoroMap) Doc() **LoroDoc
- func (_self *LoroMap) Get(key string) **ValueOrContainer
- func (m *LoroMap) GetAny(key string) (any, bool)
- func (_self *LoroMap) GetAttached() **LoroMap
- func (m *LoroMap) GetBool(key string) (bool, bool)
- func (_self *LoroMap) GetDeepValue() LoroValue
- func (m *LoroMap) GetFloat64(key string) (float64, bool)
- func (m *LoroMap) GetInt64(key string) (int64, bool)
- func (_self *LoroMap) GetLastEditor(key string) *uint64
- func (m *LoroMap) GetList(key string) ([]LoroValue, bool)
- func (m *LoroMap) GetListOfAny(key string) ([]any, bool)
- func (m *LoroMap) GetLoroCounter(key string) (*LoroCounter, bool)
- func (m *LoroMap) GetLoroList(key string) (*LoroList, bool)
- func (m *LoroMap) GetLoroMap(key string) (*LoroMap, bool)
- func (m *LoroMap) GetLoroMovableList(key string) (*LoroMovableList, bool)
- func (m *LoroMap) GetLoroText(key string) (*LoroText, bool)
- func (m *LoroMap) GetLoroTree(key string) (*LoroTree, bool)
- func (m *LoroMap) GetMap(key string) (map[string]LoroValue, bool)
- func (m *LoroMap) GetMapOfAny(key string) (map[string]any, bool)
- func (_self *LoroMap) GetOrCreateCounterContainer(key string, child *LoroCounter) (*LoroCounter, error)
- func (_self *LoroMap) GetOrCreateListContainer(key string, child *LoroList) (*LoroList, error)
- func (m *LoroMap) GetOrCreateLoroCounter(key string) (*LoroCounter, error)
- func (m *LoroMap) GetOrCreateLoroList(key string) (*LoroList, error)
- func (m *LoroMap) GetOrCreateLoroMap(key string) (*LoroMap, error)
- func (m *LoroMap) GetOrCreateLoroMovableList(key string) (*LoroMovableList, error)
- func (m *LoroMap) GetOrCreateLoroText(key string) (*LoroText, error)
- func (m *LoroMap) GetOrCreateLoroTree(key string) (*LoroTree, error)
- func (_self *LoroMap) GetOrCreateMapContainer(key string, child *LoroMap) (*LoroMap, error)
- func (_self *LoroMap) GetOrCreateMovableListContainer(key string, child *LoroMovableList) (*LoroMovableList, error)
- func (_self *LoroMap) GetOrCreateTextContainer(key string, child *LoroText) (*LoroText, error)
- func (_self *LoroMap) GetOrCreateTreeContainer(key string, child *LoroTree) (*LoroTree, error)
- func (m *LoroMap) GetString(key string) (string, bool)
- func (_self *LoroMap) GetValue() LoroValue
- func (_self *LoroMap) Id() ContainerId
- func (_self *LoroMap) Insert(key string, v LoroValueLike) error
- func (m *LoroMap) InsertAny(key string, v any) error
- func (_self *LoroMap) InsertCounterContainer(key string, child *LoroCounter) (*LoroCounter, error)
- func (_self *LoroMap) InsertListContainer(key string, child *LoroList) (*LoroList, error)
- func (_self *LoroMap) InsertMapContainer(key string, child *LoroMap) (*LoroMap, error)
- func (_self *LoroMap) InsertMovableListContainer(key string, child *LoroMovableList) (*LoroMovableList, error)
- func (_self *LoroMap) InsertTextContainer(key string, child *LoroText) (*LoroText, error)
- func (_self *LoroMap) InsertTreeContainer(key string, child *LoroTree) (*LoroTree, error)
- func (_self *LoroMap) IsAttached() bool
- func (_self *LoroMap) IsDeleted() bool
- func (_self *LoroMap) IsEmpty() bool
- func (m *LoroMap) IsExplicitlyNil(key string) bool
- func (_self *LoroMap) Keys() []string
- func (_self *LoroMap) Len() uint32
- func (m *LoroMap) Lookup(key string) *ValueOrContainer
- func (m *LoroMap) OwnerDoc() *LoroDoc
- func (_self *LoroMap) Subscribe(subscriber Subscriber) **Subscription
- func (m *LoroMap) SubscribeFn(fn func(diff DiffEvent)) *Subscription
- func (_self *LoroMap) Values() []*ValueOrContainer
- type LoroMapInterface
- type LoroMovableList
- func (ml *LoroMovableList) All() iter.Seq2[int, *ValueOrContainer]
- func (ml *LoroMovableList) At(index uint32) *ValueOrContainer
- func (ml *LoroMovableList) Attached() *LoroMovableList
- func (_self *LoroMovableList) Clear() error
- func (ml *LoroMovableList) Cursor(pos uint32, side Side) *Cursor
- func (_self *LoroMovableList) Delete(pos uint32, len uint32) error
- func (object *LoroMovableList) Destroy()
- func (_self *LoroMovableList) Doc() **LoroDoc
- func (_self *LoroMovableList) Get(index uint32) **ValueOrContainer
- func (ml *LoroMovableList) GetAny(index uint32) (any, bool)
- func (_self *LoroMovableList) GetAttached() **LoroMovableList
- func (ml *LoroMovableList) GetBool(index uint32) (bool, bool)
- func (_self *LoroMovableList) GetCreatorAt(pos uint32) *uint64
- func (_self *LoroMovableList) GetCursor(pos uint32, side Side) **Cursor
- func (_self *LoroMovableList) GetDeepValue() LoroValue
- func (ml *LoroMovableList) GetFloat64(index uint32) (float64, bool)
- func (ml *LoroMovableList) GetInt64(index uint32) (int64, bool)
- func (_self *LoroMovableList) GetLastEditorAt(pos uint32) *uint64
- func (_self *LoroMovableList) GetLastMoverAt(pos uint32) *uint64
- func (ml *LoroMovableList) GetList(index uint32) ([]LoroValue, bool)
- func (ml *LoroMovableList) GetListOfAny(index uint32) ([]any, bool)
- func (ml *LoroMovableList) GetLoroCounter(index uint32) (*LoroCounter, bool)
- func (ml *LoroMovableList) GetLoroList(index uint32) (*LoroList, bool)
- func (ml *LoroMovableList) GetLoroMap(index uint32) (*LoroMap, bool)
- func (ml *LoroMovableList) GetLoroMovableList(index uint32) (*LoroMovableList, bool)
- func (ml *LoroMovableList) GetLoroText(index uint32) (*LoroText, bool)
- func (ml *LoroMovableList) GetLoroTree(index uint32) (*LoroTree, bool)
- func (ml *LoroMovableList) GetMap(index uint32) (map[string]LoroValue, bool)
- func (ml *LoroMovableList) GetMapOfAny(index uint32) (map[string]any, bool)
- func (ml *LoroMovableList) GetString(index uint32) (string, bool)
- func (_self *LoroMovableList) GetValue() LoroValue
- func (_self *LoroMovableList) Id() ContainerId
- func (_self *LoroMovableList) Insert(pos uint32, v LoroValueLike) error
- func (ml *LoroMovableList) InsertAny(pos uint32, v any) error
- func (_self *LoroMovableList) InsertCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
- func (_self *LoroMovableList) InsertListContainer(pos uint32, child *LoroList) (*LoroList, error)
- func (ml *LoroMovableList) InsertLoroCounter(pos uint32) (*LoroCounter, error)
- func (ml *LoroMovableList) InsertLoroList(pos uint32) (*LoroList, error)
- func (ml *LoroMovableList) InsertLoroMap(pos uint32) (*LoroMap, error)
- func (ml *LoroMovableList) InsertLoroMovableList(pos uint32) (*LoroMovableList, error)
- func (ml *LoroMovableList) InsertLoroText(pos uint32) (*LoroText, error)
- func (ml *LoroMovableList) InsertLoroTree(pos uint32) (*LoroTree, error)
- func (_self *LoroMovableList) InsertMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
- func (_self *LoroMovableList) InsertMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
- func (_self *LoroMovableList) InsertTextContainer(pos uint32, child *LoroText) (*LoroText, error)
- func (_self *LoroMovableList) InsertTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
- func (_self *LoroMovableList) IsAttached() bool
- func (_self *LoroMovableList) IsDeleted() bool
- func (_self *LoroMovableList) IsEmpty() bool
- func (ml *LoroMovableList) IsExplicitlyNil(index uint32) bool
- func (_self *LoroMovableList) Len() uint32
- func (_self *LoroMovableList) Mov(from uint32, to uint32) error
- func (ml *LoroMovableList) OwnerDoc() *LoroDoc
- func (_self *LoroMovableList) Pop() (**ValueOrContainer, error)
- func (_self *LoroMovableList) Push(v LoroValueLike) error
- func (ml *LoroMovableList) PushAny(v any) error
- func (_self *LoroMovableList) Set(pos uint32, value LoroValueLike) error
- func (ml *LoroMovableList) SetAny(pos uint32, v any) error
- func (_self *LoroMovableList) SetCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
- func (_self *LoroMovableList) SetListContainer(pos uint32, child *LoroList) (*LoroList, error)
- func (_self *LoroMovableList) SetMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
- func (_self *LoroMovableList) SetMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
- func (_self *LoroMovableList) SetTextContainer(pos uint32, child *LoroText) (*LoroText, error)
- func (_self *LoroMovableList) SetTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
- func (_self *LoroMovableList) Subscribe(subscriber Subscriber) **Subscription
- func (ml *LoroMovableList) SubscribeFn(fn func(diff DiffEvent)) *Subscription
- func (_self *LoroMovableList) ToVec() []LoroValue
- type LoroMovableListInterface
- type LoroText
- func (_self *LoroText) ApplyDelta(delta []TextDelta) error
- func (t *LoroText) Attached() *LoroText
- func (_self *LoroText) CharAt(pos uint32) (string, error)
- func (_self *LoroText) ConvertPos(index uint32, from PosType, to PosType) *uint32
- func (t *LoroText) Cursor(pos uint32, side Side) *Cursor
- func (_self *LoroText) Delete(pos uint32, len uint32) error
- func (_self *LoroText) DeleteUtf8(pos uint32, len uint32) error
- func (_self *LoroText) DeleteUtf16(pos uint32, len uint32) error
- func (object *LoroText) Destroy()
- func (_self *LoroText) Doc() **LoroDoc
- func (_self *LoroText) GetAttached() **LoroText
- func (_self *LoroText) GetCursor(pos uint32, side Side) **Cursor
- func (_self *LoroText) GetEditorAtUnicodePos(pos uint32) *uint64
- func (_self *LoroText) GetRichtextValue() LoroValue
- func (_self *LoroText) Id() ContainerId
- func (_self *LoroText) Insert(pos uint32, s string) error
- func (_self *LoroText) InsertUtf8(pos uint32, s string) error
- func (_self *LoroText) InsertUtf16(pos uint32, s string) error
- func (_self *LoroText) IsAttached() bool
- func (_self *LoroText) IsDeleted() bool
- func (_self *LoroText) IsEmpty() bool
- func (_self *LoroText) LenUnicode() uint32
- func (_self *LoroText) LenUtf8() uint32
- func (_self *LoroText) LenUtf16() uint32
- func (_self *LoroText) Mark(from uint32, to uint32, key string, value LoroValueLike) error
- func (t *LoroText) MarkAny(from uint32, to uint32, key string, v any) error
- func (_self *LoroText) MarkUtf8(from uint32, to uint32, key string, value LoroValueLike) error
- func (t *LoroText) MarkUtf8Any(from uint32, to uint32, key string, v any) error
- func (_self *LoroText) MarkUtf16(from uint32, to uint32, key string, value LoroValueLike) error
- func (t *LoroText) MarkUtf16Any(from uint32, to uint32, key string, v any) error
- func (t *LoroText) OwnerDoc() *LoroDoc
- func (_self *LoroText) PushStr(s string) error
- func (_self *LoroText) Slice(startIndex uint32, endIndex uint32) (string, error)
- func (_self *LoroText) SliceDelta(startIndex uint32, endIndex uint32, posType PosType) ([]TextDelta, error)
- func (_self *LoroText) SliceUtf16(startIndex uint32, endIndex uint32) (string, error)
- func (_self *LoroText) Splice(pos uint32, len uint32, s string) (string, error)
- func (_self *LoroText) SpliceUtf16(pos uint32, len uint32, s string) error
- func (_self *LoroText) String() string
- func (_self *LoroText) Subscribe(subscriber Subscriber) **Subscription
- func (t *LoroText) SubscribeFn(fn func(diff DiffEvent)) *Subscription
- func (_self *LoroText) ToDelta() []TextDelta
- func (_self *LoroText) Unmark(from uint32, to uint32, key string) error
- func (_self *LoroText) UnmarkUtf16(from uint32, to uint32, key string) error
- func (_self *LoroText) Update(s string, options UpdateOptions) error
- func (_self *LoroText) UpdateByLine(s string, options UpdateOptions) error
- type LoroTextInterface
- type LoroTree
- func (t *LoroTree) AllChildren(parent TreeParentId) iter.Seq[TreeId]
- func (t *LoroTree) AllNodes() iter.Seq[TreeId]
- func (t *LoroTree) AllRoots() iter.Seq[TreeId]
- func (tr *LoroTree) Attached() *LoroTree
- func (_self *LoroTree) Children(parent TreeParentId) *[]TreeId
- func (_self *LoroTree) ChildrenNum(parent TreeParentId) *uint32
- func (_self *LoroTree) Contains(target TreeId) bool
- func (_self *LoroTree) Create(parent TreeParentId) (TreeId, error)
- func (_self *LoroTree) CreateAt(parent TreeParentId, index uint32) (TreeId, error)
- func (_self *LoroTree) Delete(target TreeId) error
- func (object *LoroTree) Destroy()
- func (_self *LoroTree) DisableFractionalIndex()
- func (_self *LoroTree) Doc() **LoroDoc
- func (_self *LoroTree) EnableFractionalIndex(jitter uint8)
- func (_self *LoroTree) FractionalIndex(target TreeId) *string
- func (_self *LoroTree) GetAttached() **LoroTree
- func (_self *LoroTree) GetLastMoveId(target TreeId) *Id
- func (_self *LoroTree) GetMeta(target TreeId) (*LoroMap, error)
- func (_self *LoroTree) GetValue() LoroValue
- func (_self *LoroTree) GetValueWithMeta() LoroValue
- func (_self *LoroTree) Id() ContainerId
- func (_self *LoroTree) IsAttached() bool
- func (_self *LoroTree) IsDeleted() bool
- func (_self *LoroTree) IsFractionalIndexEnabled() bool
- func (_self *LoroTree) IsNodeDeleted(target TreeId) (bool, error)
- func (_self *LoroTree) Mov(target TreeId, parent TreeParentId) error
- func (_self *LoroTree) MovAfter(target TreeId, after TreeId) error
- func (_self *LoroTree) MovBefore(target TreeId, before TreeId) error
- func (_self *LoroTree) MovTo(target TreeId, parent TreeParentId, to uint32) error
- func (_self *LoroTree) Nodes() []TreeId
- func (tr *LoroTree) OwnerDoc() *LoroDoc
- func (_self *LoroTree) Parent(target TreeId) (TreeParentId, error)
- func (_self *LoroTree) Roots() []TreeId
- func (_self *LoroTree) Subscribe(subscriber Subscriber) **Subscription
- func (tr *LoroTree) SubscribeFn(fn func(diff DiffEvent)) *Subscription
- type LoroTreeInterface
- type LoroUnknown
- type LoroUnknownInterface
- type LoroValue
- type LoroValueBinary
- type LoroValueBool
- type LoroValueContainer
- type LoroValueDouble
- type LoroValueI64
- type LoroValueLike
- func AsBinaryValue(v []byte) LoroValueLike
- func AsBoolValue(v bool) LoroValueLike
- func AsFloat64Value(v float64) LoroValueLike
- func AsInt64Value(v int64) LoroValueLike
- func AsListValue(v []LoroValueLike) LoroValueLike
- func AsListValueFromAny(v []any) (LoroValueLike, error)
- func AsListValueFromValue(v []LoroValue) LoroValueLike
- func AsMapValue(v map[string]LoroValueLike) LoroValueLike
- func AsMapValueFromAny(v map[string]any) (LoroValueLike, error)
- func AsMapValueFromValue(v map[string]LoroValue) LoroValueLike
- func AsNilValue() LoroValueLike
- func AsStringValue(v string) LoroValueLike
- func AsValue(v any) (LoroValueLike, error)
- func LiftFromExternalLoroValueLike(handle uint64) LoroValueLike
- type LoroValueLikeImpl
- type LoroValueList
- type LoroValueMap
- type LoroValueNull
- type LoroValueString
- type MapDelta
- type NativeError
- type OnPop
- type OnPopFn
- type OnPopImpl
- type OnPush
- type OnPushFn
- type OnPushImpl
- type Ordering
- type PathItem
- type PeerInfo
- type PosQueryResult
- type PosType
- type PreCommitCallback
- type PreCommitCallbackFn
- type PreCommitCallbackImpl
- type PreCommitCallbackPayload
- type RustBufferI
- type Side
- type StringContainerId
- type StyleConfig
- type StyleConfigMap
- type StyleConfigMapInterface
- type Subscriber
- type SubscriberFn
- type SubscriberImpl
- type Subscription
- type SubscriptionInterface
- type TextDelta
- type TextDeltaDelete
- type TextDeltaInsert
- type TextDeltaRetain
- type TreeDiff
- type TreeDiffItem
- type TreeExternalDiff
- type TreeExternalDiffCreate
- type TreeExternalDiffDelete
- type TreeExternalDiffMove
- type TreeId
- type TreeParentId
- type TreeParentIdDeleted
- type TreeParentIdNode
- type TreeParentIdRoot
- type TreeParentIdUnexist
- type UndoItemMeta
- type UndoManager
- func (_self *UndoManager) AddExcludeOriginPrefix(prefix string)
- func (_self *UndoManager) CanRedo() bool
- func (_self *UndoManager) CanUndo() bool
- func (object *UndoManager) Destroy()
- func (_self *UndoManager) GroupEnd()
- func (_self *UndoManager) GroupStart() error
- func (_self *UndoManager) Peer() uint64
- func (_self *UndoManager) RecordNewCheckpoint() error
- func (_self *UndoManager) Redo() (bool, error)
- func (_self *UndoManager) RedoCount() uint32
- func (_self *UndoManager) SetMaxUndoSteps(size uint32)
- func (_self *UndoManager) SetMergeInterval(interval int64)
- func (_self *UndoManager) SetOnPop(onPop *OnPop)
- func (um *UndoManager) SetOnPopFn(fn func(undoOrRedo UndoOrRedo, span CounterSpan, undoMeta UndoItemMeta))
- func (_self *UndoManager) SetOnPush(onPush *OnPush)
- func (um *UndoManager) SetOnPushFn(...)
- func (_self *UndoManager) TopRedoMeta() *UndoItemMeta
- func (_self *UndoManager) TopRedoValue() *LoroValue
- func (_self *UndoManager) TopUndoMeta() *UndoItemMeta
- func (_self *UndoManager) TopUndoValue() *LoroValue
- func (_self *UndoManager) Undo() (bool, error)
- func (_self *UndoManager) UndoCount() uint32
- type UndoManagerInterface
- type UndoOrRedo
- type Unsubscriber
- type UnsubscriberImpl
- type UpdateOptions
- type UpdateTimeoutError
- type UpdateTimeoutErrorTimeout
- type ValueOrContainer
- func (_self *ValueOrContainer) AsContainer() *ContainerId
- func (_self *ValueOrContainer) AsLoroCounter() **LoroCounter
- func (_self *ValueOrContainer) AsLoroList() **LoroList
- func (_self *ValueOrContainer) AsLoroMap() **LoroMap
- func (_self *ValueOrContainer) AsLoroMovableList() **LoroMovableList
- func (_self *ValueOrContainer) AsLoroText() **LoroText
- func (_self *ValueOrContainer) AsLoroTree() **LoroTree
- func (_self *ValueOrContainer) AsLoroUnknown() **LoroUnknown
- func (_self *ValueOrContainer) AsValue() *LoroValue
- func (_self *ValueOrContainer) ContainerType() *ContainerType
- func (object *ValueOrContainer) Destroy()
- func (_self *ValueOrContainer) IsContainer() bool
- func (_self *ValueOrContainer) IsValue() bool
- type ValueOrContainerInterface
- type VersionRange
- func (_self *VersionRange) Clear()
- func (_self *VersionRange) ContainsId(id Id) bool
- func (_self *VersionRange) ContainsIdSpan(span IdSpan) bool
- func (_self *VersionRange) ContainsOpsBetween(vvA *VersionVector, vvB *VersionVector) bool
- func (object *VersionRange) Destroy()
- func (_self *VersionRange) ExtendsToIncludeIdSpan(span IdSpan)
- func (_self *VersionRange) Get(peer uint64) *CounterSpan
- func (_self *VersionRange) GetAllRanges() []VersionRangeItem
- func (_self *VersionRange) GetPeers() []uint64
- func (_self *VersionRange) HasOverlapWith(span IdSpan) bool
- func (_self *VersionRange) Insert(peer uint64, start int32, end int32)
- func (_self *VersionRange) IsEmpty() bool
- type VersionRangeInterface
- type VersionRangeItem
- type VersionVector
- func (object *VersionVector) Destroy()
- func (_self *VersionVector) Diff(rhs *VersionVector) VersionVectorDiff
- func (_self *VersionVector) Encode() []byte
- func (_self *VersionVector) Eq(other *VersionVector) bool
- func (_self *VersionVector) ExtendToIncludeVv(other *VersionVector)
- func (_self *VersionVector) GetLast(peer uint64) *int32
- func (_self *VersionVector) GetMissingSpan(target *VersionVector) []IdSpan
- func (_self *VersionVector) IncludesId(id Id) bool
- func (_self *VersionVector) IncludesVv(other *VersionVector) bool
- func (_self *VersionVector) IntersectSpan(target IdSpan) *CounterSpan
- func (_self *VersionVector) Merge(other *VersionVector)
- func (_self *VersionVector) PartialCmp(other *VersionVector) *Ordering
- func (_self *VersionVector) SetEnd(id Id)
- func (_self *VersionVector) SetLast(id Id)
- func (v *VersionVector) String() string
- func (_self *VersionVector) ToHashmap() map[uint64]int32
- func (_self *VersionVector) TryUpdateLast(id Id) bool
- type VersionVectorDiff
- type VersionVectorInterface
Constants ¶
This section is empty.
Variables ¶
var ErrCannotFindRelativePositionContainerDeleted = fmt.Errorf("CannotFindRelativePositionContainerDeleted")
Err* are used for checking error type with `errors.Is`
var ErrCannotFindRelativePositionHistoryCleared = fmt.Errorf("CannotFindRelativePositionHistoryCleared")
var ErrCannotFindRelativePositionIdNotFound = fmt.Errorf("CannotFindRelativePositionIdNotFound")
var ErrChangeTravelErrorTargetIdNotFound = fmt.Errorf("ChangeTravelErrorTargetIdNotFound")
Err* are used for checking error type with `errors.Is`
var ErrChangeTravelErrorTargetVersionNotIncluded = fmt.Errorf("ChangeTravelErrorTargetVersionNotIncluded")
var ErrJsonPathErrorEvaluationError = fmt.Errorf("JsonPathErrorEvaluationError")
var ErrJsonPathErrorInvalidJsonPath = fmt.Errorf("JsonPathErrorInvalidJsonPath")
Err* are used for checking error type with `errors.Is`
var ErrLoroEncodeErrorFrontiersNotFound = fmt.Errorf("LoroEncodeErrorFrontiersNotFound")
Err* are used for checking error type with `errors.Is`
var ErrLoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat = fmt.Errorf("LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat")
var ErrLoroEncodeErrorUnknownContainer = fmt.Errorf("LoroEncodeErrorUnknownContainer")
var ErrLoroErrorArgErr = fmt.Errorf("LoroErrorArgErr")
var ErrLoroErrorAutoCommitNotStarted = fmt.Errorf("LoroErrorAutoCommitNotStarted")
var ErrLoroErrorConcurrentOpsWithSamePeerId = fmt.Errorf("LoroErrorConcurrentOpsWithSamePeerId")
var ErrLoroErrorContainerDeleted = fmt.Errorf("LoroErrorContainerDeleted")
var ErrLoroErrorContainersNotFound = fmt.Errorf("LoroErrorContainersNotFound")
var ErrLoroErrorDecodeChecksumMismatchError = fmt.Errorf("LoroErrorDecodeChecksumMismatchError")
var ErrLoroErrorDecodeDataCorruptionError = fmt.Errorf("LoroErrorDecodeDataCorruptionError")
var ErrLoroErrorDecodeError = fmt.Errorf("LoroErrorDecodeError")
var ErrLoroErrorDecodeVersionVectorError = fmt.Errorf("LoroErrorDecodeVersionVectorError")
var ErrLoroErrorDuplicatedTransactionError = fmt.Errorf("LoroErrorDuplicatedTransactionError")
var ErrLoroErrorEditWhenDetached = fmt.Errorf("LoroErrorEditWhenDetached")
var ErrLoroErrorEndIndexLessThanStartIndex = fmt.Errorf("LoroErrorEndIndexLessThanStartIndex")
var ErrLoroErrorFrontiersNotFound = fmt.Errorf("LoroErrorFrontiersNotFound")
var ErrLoroErrorImportUnsupportedEncodingMode = fmt.Errorf("LoroErrorImportUnsupportedEncodingMode")
var ErrLoroErrorImportUpdatesThatDependsOnOutdatedVersion = fmt.Errorf("LoroErrorImportUpdatesThatDependsOnOutdatedVersion")
var ErrLoroErrorImportWhenInTxn = fmt.Errorf("LoroErrorImportWhenInTxn")
var ErrLoroErrorIncompatibleFutureEncodingError = fmt.Errorf("LoroErrorIncompatibleFutureEncodingError")
var ErrLoroErrorInvalidJsonSchema = fmt.Errorf("LoroErrorInvalidJsonSchema")
var ErrLoroErrorInvalidPeerId = fmt.Errorf("LoroErrorInvalidPeerId")
var ErrLoroErrorInvalidRootContainerName = fmt.Errorf("LoroErrorInvalidRootContainerName")
var ErrLoroErrorJsError = fmt.Errorf("LoroErrorJsError")
var ErrLoroErrorLockError = fmt.Errorf("LoroErrorLockError")
var ErrLoroErrorMisuseDetachedContainer = fmt.Errorf("LoroErrorMisuseDetachedContainer")
var ErrLoroErrorNotFoundError = fmt.Errorf("LoroErrorNotFoundError")
var ErrLoroErrorNotImplemented = fmt.Errorf("LoroErrorNotImplemented")
var ErrLoroErrorOutOfBound = fmt.Errorf("LoroErrorOutOfBound")
var ErrLoroErrorReattachAttachedContainer = fmt.Errorf("LoroErrorReattachAttachedContainer")
var ErrLoroErrorStyleConfigMissing = fmt.Errorf("LoroErrorStyleConfigMissing")
var ErrLoroErrorSwitchToVersionBeforeShallowRoot = fmt.Errorf("LoroErrorSwitchToVersionBeforeShallowRoot")
var ErrLoroErrorTransactionError = fmt.Errorf("LoroErrorTransactionError")
var ErrLoroErrorTreeError = fmt.Errorf("LoroErrorTreeError")
var ErrLoroErrorUndoGroupAlreadyStarted = fmt.Errorf("LoroErrorUndoGroupAlreadyStarted")
var ErrLoroErrorUndoInvalidIdSpan = fmt.Errorf("LoroErrorUndoInvalidIdSpan")
var ErrLoroErrorUndoWithDifferentPeerId = fmt.Errorf("LoroErrorUndoWithDifferentPeerId")
var ErrLoroErrorUnknown = fmt.Errorf("LoroErrorUnknown")
var ErrLoroErrorUnmatchedContext = fmt.Errorf("LoroErrorUnmatchedContext")
Err* are used for checking error type with `errors.Is`
var ErrLoroErrorUsedOpId = fmt.Errorf("LoroErrorUsedOpId")
var ErrLoroErrorUtf16InUnicodeCodePoint = fmt.Errorf("LoroErrorUtf16InUnicodeCodePoint")
var ErrLoroErrorUtf8InUnicodeCodePoint = fmt.Errorf("LoroErrorUtf8InUnicodeCodePoint")
var ErrUpdateTimeoutErrorTimeout = fmt.Errorf("UpdateTimeoutErrorTimeout")
Err* are used for checking error type with `errors.Is`
var FfiConverterAbsolutePositionINSTANCE = FfiConverterAbsolutePosition{}
var FfiConverterAwarenessINSTANCE = FfiConverterAwareness{}
var FfiConverterAwarenessPeerUpdateINSTANCE = FfiConverterAwarenessPeerUpdate{}
var FfiConverterBoolINSTANCE = FfiConverterBool{}
var FfiConverterBytesINSTANCE = FfiConverterBytes{}
var FfiConverterCannotFindRelativePositionINSTANCE = FfiConverterCannotFindRelativePosition{}
var FfiConverterChangeAncestorsTravelerINSTANCE = FfiConverterChangeAncestorsTraveler{ // contains filtered or unexported fields }
var FfiConverterChangeMetaINSTANCE = FfiConverterChangeMeta{}
var FfiConverterChangeModifierINSTANCE = FfiConverterChangeModifier{}
var FfiConverterChangeTravelErrorINSTANCE = FfiConverterChangeTravelError{}
var FfiConverterCommitOptionsINSTANCE = FfiConverterCommitOptions{}
var FfiConverterConfigureINSTANCE = FfiConverterConfigure{}
var FfiConverterContainerDiffINSTANCE = FfiConverterContainerDiff{}
var FfiConverterContainerIdAndDiffINSTANCE = FfiConverterContainerIdAndDiff{}
var FfiConverterContainerIdINSTANCE = FfiConverterContainerId{}
var FfiConverterContainerIdLikeINSTANCE = FfiConverterContainerIdLike{ // contains filtered or unexported fields }
var FfiConverterContainerPathINSTANCE = FfiConverterContainerPath{}
var FfiConverterContainerTypeINSTANCE = FfiConverterContainerType{}
var FfiConverterCounterSpanINSTANCE = FfiConverterCounterSpan{}
var FfiConverterCursorINSTANCE = FfiConverterCursor{}
var FfiConverterCursorWithPosINSTANCE = FfiConverterCursorWithPos{}
var FfiConverterDiffBatchINSTANCE = FfiConverterDiffBatch{}
var FfiConverterDiffEventINSTANCE = FfiConverterDiffEvent{}
var FfiConverterDiffINSTANCE = FfiConverterDiff{}
var FfiConverterEphemeralEventTriggerINSTANCE = FfiConverterEphemeralEventTrigger{}
var FfiConverterEphemeralStoreEventINSTANCE = FfiConverterEphemeralStoreEvent{}
var FfiConverterEphemeralStoreINSTANCE = FfiConverterEphemeralStore{}
var FfiConverterEphemeralSubscriberINSTANCE = FfiConverterEphemeralSubscriber{ // contains filtered or unexported fields }
var FfiConverterEventTriggerKindINSTANCE = FfiConverterEventTriggerKind{}
var FfiConverterExpandTypeINSTANCE = FfiConverterExpandType{}
var FfiConverterExportModeINSTANCE = FfiConverterExportMode{}
var FfiConverterFirstCommitFromPeerCallbackINSTANCE = FfiConverterFirstCommitFromPeerCallback{ // contains filtered or unexported fields }
var FfiConverterFirstCommitFromPeerPayloadINSTANCE = FfiConverterFirstCommitFromPeerPayload{}
var FfiConverterFloat64INSTANCE = FfiConverterFloat64{}
var FfiConverterFractionalIndexINSTANCE = FfiConverterFractionalIndex{}
var FfiConverterFrontiersINSTANCE = FfiConverterFrontiers{}
var FfiConverterFrontiersOrIdINSTANCE = FfiConverterFrontiersOrId{}
var FfiConverterIdINSTANCE = FfiConverterId{}
var FfiConverterIdLpINSTANCE = FfiConverterIdLp{}
var FfiConverterIdSpanINSTANCE = FfiConverterIdSpan{}
var FfiConverterImportBlobMetadataINSTANCE = FfiConverterImportBlobMetadata{}
var FfiConverterImportStatusINSTANCE = FfiConverterImportStatus{}
var FfiConverterIndexINSTANCE = FfiConverterIndex{}
var FfiConverterInt32INSTANCE = FfiConverterInt32{}
var FfiConverterInt64INSTANCE = FfiConverterInt64{}
var FfiConverterJsonPathErrorINSTANCE = FfiConverterJsonPathError{}
var FfiConverterJsonPathSubscriberINSTANCE = FfiConverterJsonPathSubscriber{ // contains filtered or unexported fields }
var FfiConverterListDiffItemINSTANCE = FfiConverterListDiffItem{}
var FfiConverterLocalEphemeralListenerINSTANCE = FfiConverterLocalEphemeralListener{ // contains filtered or unexported fields }
var FfiConverterLocalUpdateCallbackINSTANCE = FfiConverterLocalUpdateCallback{ // contains filtered or unexported fields }
var FfiConverterLoroCounterINSTANCE = FfiConverterLoroCounter{}
var FfiConverterLoroDocINSTANCE = FfiConverterLoroDoc{}
var FfiConverterLoroEncodeErrorINSTANCE = FfiConverterLoroEncodeError{}
var FfiConverterLoroErrorINSTANCE = FfiConverterLoroError{}
var FfiConverterLoroListINSTANCE = FfiConverterLoroList{}
var FfiConverterLoroMapINSTANCE = FfiConverterLoroMap{}
var FfiConverterLoroMovableListINSTANCE = FfiConverterLoroMovableList{}
var FfiConverterLoroTextINSTANCE = FfiConverterLoroText{}
var FfiConverterLoroTreeINSTANCE = FfiConverterLoroTree{}
var FfiConverterLoroUnknownINSTANCE = FfiConverterLoroUnknown{}
var FfiConverterLoroValueINSTANCE = FfiConverterLoroValue{}
var FfiConverterLoroValueLikeINSTANCE = FfiConverterLoroValueLike{ // contains filtered or unexported fields }
var FfiConverterMapDeltaINSTANCE = FfiConverterMapDelta{}
var FfiConverterMapStringLoroValueINSTANCE = FfiConverterMapStringLoroValue{}
var FfiConverterMapStringOptionalValueOrContainerINSTANCE = FfiConverterMapStringOptionalValueOrContainer{}
var FfiConverterMapUint64CounterSpanINSTANCE = FfiConverterMapUint64CounterSpan{}
var FfiConverterMapUint64Int32INSTANCE = FfiConverterMapUint64Int32{}
var FfiConverterMapUint64PeerInfoINSTANCE = FfiConverterMapUint64PeerInfo{}
var FfiConverterOnPopINSTANCE = FfiConverterOnPop{ // contains filtered or unexported fields }
var FfiConverterOnPushINSTANCE = FfiConverterOnPush{ // contains filtered or unexported fields }
var FfiConverterOptionalChangeMetaINSTANCE = FfiConverterOptionalChangeMeta{}
var FfiConverterOptionalContainerIdINSTANCE = FfiConverterOptionalContainerId{}
var FfiConverterOptionalContainerTypeINSTANCE = FfiConverterOptionalContainerType{}
var FfiConverterOptionalCounterSpanINSTANCE = FfiConverterOptionalCounterSpan{}
var FfiConverterOptionalCursorINSTANCE = FfiConverterOptionalCursor{}
var FfiConverterOptionalDiffEventINSTANCE = FfiConverterOptionalDiffEvent{}
var FfiConverterOptionalDiffINSTANCE = FfiConverterOptionalDiff{}
var FfiConverterOptionalFloat64INSTANCE = FfiConverterOptionalFloat64{}
var FfiConverterOptionalFrontiersINSTANCE = FfiConverterOptionalFrontiers{}
var FfiConverterOptionalIdINSTANCE = FfiConverterOptionalId{}
var FfiConverterOptionalInt32INSTANCE = FfiConverterOptionalInt32{}
var FfiConverterOptionalInt64INSTANCE = FfiConverterOptionalInt64{}
var FfiConverterOptionalLoroCounterINSTANCE = FfiConverterOptionalLoroCounter{}
var FfiConverterOptionalLoroDocINSTANCE = FfiConverterOptionalLoroDoc{}
var FfiConverterOptionalLoroListINSTANCE = FfiConverterOptionalLoroList{}
var FfiConverterOptionalLoroMapINSTANCE = FfiConverterOptionalLoroMap{}
var FfiConverterOptionalLoroMovableListINSTANCE = FfiConverterOptionalLoroMovableList{}
var FfiConverterOptionalLoroTextINSTANCE = FfiConverterOptionalLoroText{}
var FfiConverterOptionalLoroTreeINSTANCE = FfiConverterOptionalLoroTree{}
var FfiConverterOptionalLoroUnknownINSTANCE = FfiConverterOptionalLoroUnknown{}
var FfiConverterOptionalLoroValueINSTANCE = FfiConverterOptionalLoroValue{}
var FfiConverterOptionalMapStringLoroValueINSTANCE = FfiConverterOptionalMapStringLoroValue{}
var FfiConverterOptionalMapUint64CounterSpanINSTANCE = FfiConverterOptionalMapUint64CounterSpan{}
var FfiConverterOptionalOnPopINSTANCE = FfiConverterOptionalOnPop{}
var FfiConverterOptionalOnPushINSTANCE = FfiConverterOptionalOnPush{}
var FfiConverterOptionalOrderingINSTANCE = FfiConverterOptionalOrdering{}
var FfiConverterOptionalSequenceContainerPathINSTANCE = FfiConverterOptionalSequenceContainerPath{}
var FfiConverterOptionalSequenceTreeIdINSTANCE = FfiConverterOptionalSequenceTreeId{}
var FfiConverterOptionalStringINSTANCE = FfiConverterOptionalString{}
var FfiConverterOptionalStyleConfigINSTANCE = FfiConverterOptionalStyleConfig{}
var FfiConverterOptionalSubscriptionINSTANCE = FfiConverterOptionalSubscription{}
var FfiConverterOptionalUint32INSTANCE = FfiConverterOptionalUint32{}
var FfiConverterOptionalUint64INSTANCE = FfiConverterOptionalUint64{}
var FfiConverterOptionalUndoItemMetaINSTANCE = FfiConverterOptionalUndoItemMeta{}
var FfiConverterOptionalValueOrContainerINSTANCE = FfiConverterOptionalValueOrContainer{}
var FfiConverterOptionalVersionVectorINSTANCE = FfiConverterOptionalVersionVector{}
var FfiConverterOrderingINSTANCE = FfiConverterOrdering{}
var FfiConverterPathItemINSTANCE = FfiConverterPathItem{}
var FfiConverterPeerInfoINSTANCE = FfiConverterPeerInfo{}
var FfiConverterPosQueryResultINSTANCE = FfiConverterPosQueryResult{}
var FfiConverterPosTypeINSTANCE = FfiConverterPosType{}
var FfiConverterPreCommitCallbackINSTANCE = FfiConverterPreCommitCallback{ // contains filtered or unexported fields }
var FfiConverterPreCommitCallbackPayloadINSTANCE = FfiConverterPreCommitCallbackPayload{}
var FfiConverterSequenceBytesINSTANCE = FfiConverterSequenceBytes{}
var FfiConverterSequenceContainerDiffINSTANCE = FfiConverterSequenceContainerDiff{}
var FfiConverterSequenceContainerIdAndDiffINSTANCE = FfiConverterSequenceContainerIdAndDiff{}
var FfiConverterSequenceContainerIdINSTANCE = FfiConverterSequenceContainerId{}
var FfiConverterSequenceContainerPathINSTANCE = FfiConverterSequenceContainerPath{}
var FfiConverterSequenceCursorWithPosINSTANCE = FfiConverterSequenceCursorWithPos{}
var FfiConverterSequenceIdINSTANCE = FfiConverterSequenceId{}
var FfiConverterSequenceIdSpanINSTANCE = FfiConverterSequenceIdSpan{}
var FfiConverterSequenceIndexINSTANCE = FfiConverterSequenceIndex{}
var FfiConverterSequenceListDiffItemINSTANCE = FfiConverterSequenceListDiffItem{}
var FfiConverterSequenceLoroValueINSTANCE = FfiConverterSequenceLoroValue{}
var FfiConverterSequencePathItemINSTANCE = FfiConverterSequencePathItem{}
var FfiConverterSequenceStringINSTANCE = FfiConverterSequenceString{}
var FfiConverterSequenceTextDeltaINSTANCE = FfiConverterSequenceTextDelta{}
var FfiConverterSequenceTreeDiffItemINSTANCE = FfiConverterSequenceTreeDiffItem{}
var FfiConverterSequenceTreeIdINSTANCE = FfiConverterSequenceTreeId{}
var FfiConverterSequenceUint64INSTANCE = FfiConverterSequenceUint64{}
var FfiConverterSequenceValueOrContainerINSTANCE = FfiConverterSequenceValueOrContainer{}
var FfiConverterSequenceVersionRangeItemINSTANCE = FfiConverterSequenceVersionRangeItem{}
var FfiConverterSideINSTANCE = FfiConverterSide{}
var FfiConverterStringINSTANCE = FfiConverterString{}
var FfiConverterStyleConfigINSTANCE = FfiConverterStyleConfig{}
var FfiConverterStyleConfigMapINSTANCE = FfiConverterStyleConfigMap{}
var FfiConverterSubscriberINSTANCE = FfiConverterSubscriber{ // contains filtered or unexported fields }
var FfiConverterSubscriptionINSTANCE = FfiConverterSubscription{}
var FfiConverterTextDeltaINSTANCE = FfiConverterTextDelta{}
var FfiConverterTreeDiffINSTANCE = FfiConverterTreeDiff{}
var FfiConverterTreeDiffItemINSTANCE = FfiConverterTreeDiffItem{}
var FfiConverterTreeExternalDiffINSTANCE = FfiConverterTreeExternalDiff{}
var FfiConverterTreeIdINSTANCE = FfiConverterTreeId{}
var FfiConverterTreeParentIdINSTANCE = FfiConverterTreeParentId{}
var FfiConverterUint32INSTANCE = FfiConverterUint32{}
var FfiConverterUint64INSTANCE = FfiConverterUint64{}
var FfiConverterUint8INSTANCE = FfiConverterUint8{}
var FfiConverterUndoItemMetaINSTANCE = FfiConverterUndoItemMeta{}
var FfiConverterUndoManagerINSTANCE = FfiConverterUndoManager{}
var FfiConverterUndoOrRedoINSTANCE = FfiConverterUndoOrRedo{}
var FfiConverterUnsubscriberINSTANCE = FfiConverterUnsubscriber{ // contains filtered or unexported fields }
var FfiConverterUpdateOptionsINSTANCE = FfiConverterUpdateOptions{}
var FfiConverterUpdateTimeoutErrorINSTANCE = FfiConverterUpdateTimeoutError{}
var FfiConverterValueOrContainerINSTANCE = FfiConverterValueOrContainer{}
var FfiConverterVersionRangeINSTANCE = FfiConverterVersionRange{}
var FfiConverterVersionRangeItemINSTANCE = FfiConverterVersionRangeItem{}
var FfiConverterVersionVectorDiffINSTANCE = FfiConverterVersionVectorDiff{}
var FfiConverterVersionVectorINSTANCE = FfiConverterVersionVector{}
var UniffiVTableCallbackInterfaceChangeAncestorsTravelerINSTANCE = C.UniffiVTableCallbackInterfaceChangeAncestorsTraveler{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceContainerIdLikeINSTANCE = C.UniffiVTableCallbackInterfaceContainerIdLike{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceEphemeralSubscriberINSTANCE = C.UniffiVTableCallbackInterfaceEphemeralSubscriber{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceFirstCommitFromPeerCallbackINSTANCE = C.UniffiVTableCallbackInterfaceFirstCommitFromPeerCallback{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceJsonPathSubscriberINSTANCE = C.UniffiVTableCallbackInterfaceJsonPathSubscriber{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceLocalEphemeralListenerINSTANCE = C.UniffiVTableCallbackInterfaceLocalEphemeralListener{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceLocalUpdateCallbackINSTANCE = C.UniffiVTableCallbackInterfaceLocalUpdateCallback{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceLoroValueLikeINSTANCE = C.UniffiVTableCallbackInterfaceLoroValueLike{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceOnPopINSTANCE = C.UniffiVTableCallbackInterfaceOnPop{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceOnPushINSTANCE = C.UniffiVTableCallbackInterfaceOnPush{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfacePreCommitCallbackINSTANCE = C.UniffiVTableCallbackInterfacePreCommitCallback{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceSubscriberINSTANCE = C.UniffiVTableCallbackInterfaceSubscriber{ // contains filtered or unexported fields }
var UniffiVTableCallbackInterfaceUnsubscriberINSTANCE = C.UniffiVTableCallbackInterfaceUnsubscriber{ // contains filtered or unexported fields }
Functions ¶
func CFromRustBuffer ¶ added in v0.3.0
func CFromRustBuffer(b ExternalCRustBuffer) C.RustBuffer
func Deref ¶ added in v0.4.0
func Deref[T any](v **T) *T
Deref unwraps a double pointer returned by some generated bindings methods. Returns nil if v is nil or *v is nil; otherwise returns *v.
Useful as an escape hatch for the few `**T` returns not covered by typed wrapper methods (e.g. LoroDoc.FrontiersToVv).
func GetAnyValue ¶
func GetAnyValue(v **ValueOrContainer) (any, bool)
GetAnyValue takes a pointer to a ValueOrContainer and returns the value as an any.
func GetBoolValue ¶
func GetBoolValue(v **ValueOrContainer) (bool, bool)
GetBoolValue takes a pointer to a ValueOrContainer and returns the bool value if it is a bool.
func GetFloat64Value ¶
func GetFloat64Value(v **ValueOrContainer) (float64, bool)
GetFloat64Value takes a pointer to a ValueOrContainer and returns the float64 value if it is a float64.
func GetInt64Value ¶
func GetInt64Value(v **ValueOrContainer) (int64, bool)
GetInt64Value takes a pointer to a ValueOrContainer and returns the int64 value if it is an int64.
func GetListValueOfAny ¶
func GetListValueOfAny(v **ValueOrContainer) ([]any, bool)
GetListValueOfAny takes a pointer to a ValueOrContainer and returns a slice of any if it is a list.
func GetMapValue ¶
func GetMapValue(v **ValueOrContainer) (map[string]LoroValue, bool)
GetMapValue takes a pointer to a ValueOrContainer and returns the map value if it is a map.
func GetMapValueOfAny ¶
func GetMapValueOfAny(v **ValueOrContainer) (map[string]any, bool)
GetMapValueOfAny takes a pointer to a ValueOrContainer and returns a map of string to any if it is a map.
func GetStringValue ¶
func GetStringValue(v **ValueOrContainer) (string, bool)
GetStringValue takes a pointer to a ValueOrContainer and returns the string value if it is a string.
func GetVersion ¶
func GetVersion() string
func IsValueExplicitlyNil ¶
func IsValueExplicitlyNil(v **ValueOrContainer) bool
IsValueExplicitlyNil checks if a pointer to a ValueOrContainer is explicitly nil, meaning it has a LoroValueNull value.
func LiftFromRustBuffer ¶
func LiftFromRustBuffer[GoType any](bufReader BufReader[GoType], rbuf RustBufferI) GoType
func LowerIntoRustBuffer ¶
func LowerIntoRustBuffer[GoType any](bufWriter BufWriter[GoType], value GoType) C.RustBuffer
func LowerToExternalAwareness ¶ added in v0.3.0
func LowerToExternalChangeAncestorsTraveler ¶ added in v0.3.0
func LowerToExternalChangeAncestorsTraveler(value ChangeAncestorsTraveler) uint64
func LowerToExternalChangeModifier ¶ added in v0.3.0
func LowerToExternalChangeModifier(value *ChangeModifier) uint64
func LowerToExternalConfigure ¶ added in v0.3.0
func LowerToExternalContainerIdLike ¶ added in v0.3.0
func LowerToExternalContainerIdLike(value ContainerIdLike) uint64
func LowerToExternalCursor ¶ added in v0.3.0
func LowerToExternalDiffBatch ¶ added in v0.3.0
func LowerToExternalEphemeralStore ¶ added in v0.3.0
func LowerToExternalEphemeralStore(value *EphemeralStore) uint64
func LowerToExternalEphemeralSubscriber ¶ added in v0.3.0
func LowerToExternalEphemeralSubscriber(value EphemeralSubscriber) uint64
func LowerToExternalFirstCommitFromPeerCallback ¶ added in v0.3.0
func LowerToExternalFirstCommitFromPeerCallback(value FirstCommitFromPeerCallback) uint64
func LowerToExternalFractionalIndex ¶ added in v0.3.0
func LowerToExternalFractionalIndex(value *FractionalIndex) uint64
func LowerToExternalFrontiers ¶ added in v0.3.0
func LowerToExternalJsonPathSubscriber ¶ added in v0.3.0
func LowerToExternalJsonPathSubscriber(value JsonPathSubscriber) uint64
func LowerToExternalLocalEphemeralListener ¶ added in v0.3.0
func LowerToExternalLocalEphemeralListener(value LocalEphemeralListener) uint64
func LowerToExternalLocalUpdateCallback ¶ added in v0.3.0
func LowerToExternalLocalUpdateCallback(value LocalUpdateCallback) uint64
func LowerToExternalLoroCounter ¶ added in v0.3.0
func LowerToExternalLoroCounter(value *LoroCounter) uint64
func LowerToExternalLoroDoc ¶ added in v0.3.0
func LowerToExternalLoroList ¶ added in v0.3.0
func LowerToExternalLoroMap ¶ added in v0.3.0
func LowerToExternalLoroMovableList ¶ added in v0.3.0
func LowerToExternalLoroMovableList(value *LoroMovableList) uint64
func LowerToExternalLoroText ¶ added in v0.3.0
func LowerToExternalLoroTree ¶ added in v0.3.0
func LowerToExternalLoroUnknown ¶ added in v0.3.0
func LowerToExternalLoroUnknown(value *LoroUnknown) uint64
func LowerToExternalLoroValueLike ¶ added in v0.3.0
func LowerToExternalLoroValueLike(value LoroValueLike) uint64
func LowerToExternalOnPop ¶ added in v0.3.0
func LowerToExternalOnPush ¶ added in v0.3.0
func LowerToExternalPreCommitCallback ¶ added in v0.3.0
func LowerToExternalPreCommitCallback(value PreCommitCallback) uint64
func LowerToExternalStyleConfigMap ¶ added in v0.3.0
func LowerToExternalStyleConfigMap(value *StyleConfigMap) uint64
func LowerToExternalSubscriber ¶ added in v0.3.0
func LowerToExternalSubscriber(value Subscriber) uint64
func LowerToExternalSubscription ¶ added in v0.3.0
func LowerToExternalSubscription(value *Subscription) uint64
func LowerToExternalUndoManager ¶ added in v0.3.0
func LowerToExternalUndoManager(value *UndoManager) uint64
func LowerToExternalUnsubscriber ¶ added in v0.3.0
func LowerToExternalUnsubscriber(value Unsubscriber) uint64
func LowerToExternalValueOrContainer ¶ added in v0.3.0
func LowerToExternalValueOrContainer(value *ValueOrContainer) uint64
func LowerToExternalVersionRange ¶ added in v0.3.0
func LowerToExternalVersionRange(value *VersionRange) uint64
func LowerToExternalVersionVector ¶ added in v0.3.0
func LowerToExternalVersionVector(value *VersionVector) uint64
func ValueAsAny ¶ added in v0.4.0
ValueAsAny converts a LoroValue to its idiomatic Go representation, recursing into lists and maps. Returns false if the value is of an unsupported variant.
func ValueAsBinary ¶ added in v0.4.0
ValueAsBinary returns the byte slice contents of a LoroValue if it holds binary data.
func ValueAsBool ¶ added in v0.4.0
ValueAsBool returns the bool contents of a LoroValue if it holds a bool.
func ValueAsFloat64 ¶ added in v0.4.0
ValueAsFloat64 returns the float64 contents of a LoroValue if it holds a float. No implicit conversion from int is performed.
func ValueAsInt64 ¶ added in v0.4.0
ValueAsInt64 returns the int64 contents of a LoroValue if it holds an int64. No implicit conversion from float is performed.
func ValueAsMap ¶ added in v0.4.0
ValueAsMap returns the map contents of a LoroValue if it holds a map.
func ValueAsString ¶ added in v0.4.0
ValueAsString returns the string contents of a LoroValue if it holds a string.
func ValueIsNil ¶ added in v0.4.0
ValueIsNil reports whether the LoroValue is an explicit null.
Types ¶
type AbsolutePosition ¶
func (*AbsolutePosition) Destroy ¶
func (r *AbsolutePosition) Destroy()
type Awareness ¶
type Awareness struct {
// contains filtered or unexported fields
}
Deprecated, use `EphemeralStore` instead.
func LiftFromExternalAwareness ¶ added in v0.3.0
func NewAwareness ¶
func (*Awareness) Apply ¶
func (_self *Awareness) Apply(encodedPeersInfo []byte) AwarenessPeerUpdate
func (*Awareness) GetAllStates ¶
func (*Awareness) GetLocalState ¶
func (*Awareness) RemoveOutdated ¶
func (*Awareness) SetLocalState ¶
func (_self *Awareness) SetLocalState(value LoroValueLike)
func (*Awareness) SetLocalStateAny ¶ added in v0.4.0
SetLocalStateAny sets the local awareness state to a plain Go value. The value is converted via AsValue; passing an unsupported type returns an error without modifying the awareness state.
type AwarenessInterface ¶
type AwarenessInterface interface {
Apply(encodedPeersInfo []byte) AwarenessPeerUpdate
Encode(peers []uint64) []byte
EncodeAll() []byte
GetAllStates() map[uint64]PeerInfo
GetLocalState() *LoroValue
Peer() uint64
RemoveOutdated() []uint64
SetLocalState(value LoroValueLike)
}
Deprecated, use `EphemeralStore` instead.
type AwarenessPeerUpdate ¶
func (*AwarenessPeerUpdate) Destroy ¶
func (r *AwarenessPeerUpdate) Destroy()
type BufLifter ¶
type BufLifter[GoType any] interface { Lift(value RustBufferI) GoType }
type BufLowerer ¶
type BufLowerer[GoType any] interface { Lower(value GoType) C.RustBuffer }
type CannotFindRelativePosition ¶
type CannotFindRelativePosition struct {
// contains filtered or unexported fields
}
func NewCannotFindRelativePositionContainerDeleted ¶
func NewCannotFindRelativePositionContainerDeleted() *CannotFindRelativePosition
func NewCannotFindRelativePositionHistoryCleared ¶
func NewCannotFindRelativePositionHistoryCleared() *CannotFindRelativePosition
func NewCannotFindRelativePositionIdNotFound ¶
func NewCannotFindRelativePositionIdNotFound() *CannotFindRelativePosition
func (*CannotFindRelativePosition) AsError ¶
func (err *CannotFindRelativePosition) AsError() error
Convenience method to turn *CannotFindRelativePosition into error Avoiding treating nil pointer as non nil error interface
func (CannotFindRelativePosition) Error ¶
func (err CannotFindRelativePosition) Error() string
func (CannotFindRelativePosition) Unwrap ¶
func (err CannotFindRelativePosition) Unwrap() error
type CannotFindRelativePositionContainerDeleted ¶
type CannotFindRelativePositionContainerDeleted struct {
// contains filtered or unexported fields
}
Variant structs
func (CannotFindRelativePositionContainerDeleted) Error ¶
func (err CannotFindRelativePositionContainerDeleted) Error() string
func (CannotFindRelativePositionContainerDeleted) Is ¶
func (self CannotFindRelativePositionContainerDeleted) Is(target error) bool
type CannotFindRelativePositionHistoryCleared ¶
type CannotFindRelativePositionHistoryCleared struct {
// contains filtered or unexported fields
}
func (CannotFindRelativePositionHistoryCleared) Error ¶
func (err CannotFindRelativePositionHistoryCleared) Error() string
func (CannotFindRelativePositionHistoryCleared) Is ¶
func (self CannotFindRelativePositionHistoryCleared) Is(target error) bool
type CannotFindRelativePositionIdNotFound ¶
type CannotFindRelativePositionIdNotFound struct {
// contains filtered or unexported fields
}
func (CannotFindRelativePositionIdNotFound) Error ¶
func (err CannotFindRelativePositionIdNotFound) Error() string
func (CannotFindRelativePositionIdNotFound) Is ¶
func (self CannotFindRelativePositionIdNotFound) Is(target error) bool
type ChangeAncestorsTraveler ¶
type ChangeAncestorsTraveler interface {
Travel(change ChangeMeta) bool
}
func AsChangeAncestorCallback ¶
func AsChangeAncestorCallback(fn ChangeAncestorsTravelerFn) ChangeAncestorsTraveler
AsChangeAncestorCallback adapts a function to the ChangeAncestorsTraveler interface.
func LiftFromExternalChangeAncestorsTraveler ¶ added in v0.3.0
func LiftFromExternalChangeAncestorsTraveler(handle uint64) ChangeAncestorsTraveler
type ChangeAncestorsTravelerFn ¶
type ChangeAncestorsTravelerFn func(payload ChangeMeta) bool
ChangeAncestorsTravelerFn adapts a function to the ChangeAncestorsTraveler interface.
Use with LoroDoc.TravelChangeAncestors to walk the causal history of one or more changes. Return true to continue traversal, or false to stop early.
doc.TravelChangeAncestors(ids, loro.ChangeAncestorsTravelerFn(
func(change loro.ChangeMeta) bool {
fmt.Println("visiting change from peer:", change.Id.Peer)
return true // continue traversal
},
))
func (ChangeAncestorsTravelerFn) Travel ¶
func (fn ChangeAncestorsTravelerFn) Travel(payload ChangeMeta) bool
type ChangeAncestorsTravelerImpl ¶
type ChangeAncestorsTravelerImpl struct {
// contains filtered or unexported fields
}
func (*ChangeAncestorsTravelerImpl) Destroy ¶
func (object *ChangeAncestorsTravelerImpl) Destroy()
func (*ChangeAncestorsTravelerImpl) Travel ¶
func (_self *ChangeAncestorsTravelerImpl) Travel(change ChangeMeta) bool
type ChangeMeta ¶
type ChangeMeta struct {
// Lamport timestamp of the Change
Lamport uint32
// The first Op id of the Change
Id Id
// [Unix time](https://en.wikipedia.org/wiki/Unix_time)
// It is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970.
Timestamp int64
// The commit message of the change
Message *string
// The dependencies of the first op of the change
Deps *Frontiers
// The total op num inside this change
Len uint32
}
func (*ChangeMeta) Destroy ¶
func (r *ChangeMeta) Destroy()
type ChangeModifier ¶
type ChangeModifier struct {
// contains filtered or unexported fields
}
func LiftFromExternalChangeModifier ¶ added in v0.3.0
func LiftFromExternalChangeModifier(handle uint64) *ChangeModifier
func (*ChangeModifier) Destroy ¶
func (object *ChangeModifier) Destroy()
func (*ChangeModifier) SetMessage ¶
func (_self *ChangeModifier) SetMessage(msg string)
func (*ChangeModifier) SetTimestamp ¶
func (_self *ChangeModifier) SetTimestamp(timestamp int64)
type ChangeModifierInterface ¶
type ChangeTravelError ¶
type ChangeTravelError struct {
// contains filtered or unexported fields
}
func NewChangeTravelErrorTargetIdNotFound ¶
func NewChangeTravelErrorTargetIdNotFound() *ChangeTravelError
func NewChangeTravelErrorTargetVersionNotIncluded ¶
func NewChangeTravelErrorTargetVersionNotIncluded() *ChangeTravelError
func (*ChangeTravelError) AsError ¶
func (err *ChangeTravelError) AsError() error
Convenience method to turn *ChangeTravelError into error Avoiding treating nil pointer as non nil error interface
func (ChangeTravelError) Error ¶
func (err ChangeTravelError) Error() string
func (ChangeTravelError) Unwrap ¶
func (err ChangeTravelError) Unwrap() error
type ChangeTravelErrorTargetIdNotFound ¶
type ChangeTravelErrorTargetIdNotFound struct {
// contains filtered or unexported fields
}
Variant structs
func (ChangeTravelErrorTargetIdNotFound) Error ¶
func (err ChangeTravelErrorTargetIdNotFound) Error() string
func (ChangeTravelErrorTargetIdNotFound) Is ¶
func (self ChangeTravelErrorTargetIdNotFound) Is(target error) bool
type ChangeTravelErrorTargetVersionNotIncluded ¶
type ChangeTravelErrorTargetVersionNotIncluded struct {
// contains filtered or unexported fields
}
func (ChangeTravelErrorTargetVersionNotIncluded) Error ¶
func (err ChangeTravelErrorTargetVersionNotIncluded) Error() string
func (ChangeTravelErrorTargetVersionNotIncluded) Is ¶
func (self ChangeTravelErrorTargetVersionNotIncluded) Is(target error) bool
type CommitOptions ¶
func (*CommitOptions) Destroy ¶
func (r *CommitOptions) Destroy()
type Configure ¶
type Configure struct {
// contains filtered or unexported fields
}
func LiftFromExternalConfigure ¶ added in v0.3.0
func (*Configure) MergeInterval ¶
func (*Configure) RecordTimestamp ¶
func (*Configure) SetMergeInterval ¶
func (*Configure) SetRecordTimestamp ¶
func (*Configure) TextStyleConfig ¶
func (_self *Configure) TextStyleConfig() *StyleConfigMap
type ConfigureInterface ¶
type ContainerDiff ¶
type ContainerDiff struct {
// The target container id of the diff.
Target ContainerId
// The path of the diff.
Path []PathItem
// Whether the diff is from unknown container.
IsUnknown bool
// The diff
Diff Diff
}
A diff of a container.
func (*ContainerDiff) Destroy ¶
func (r *ContainerDiff) Destroy()
type ContainerId ¶
type ContainerId interface {
Destroy()
}
func CounterRoot ¶ added in v0.4.0
func CounterRoot(name string) ContainerId
CounterRoot returns the root ContainerId for a counter with the given name. Useful for APIs that take a ContainerId directly, such as HasContainer, DeleteRootContainer, and GetPathToContainer.
func ListRoot ¶ added in v0.4.0
func ListRoot(name string) ContainerId
ListRoot returns the root ContainerId for a list with the given name. Useful for APIs that take a ContainerId directly, such as HasContainer, DeleteRootContainer, and GetPathToContainer.
func MapRoot ¶ added in v0.4.0
func MapRoot(name string) ContainerId
MapRoot returns the root ContainerId for a map with the given name. Useful for APIs that take a ContainerId directly, such as HasContainer, DeleteRootContainer, and GetPathToContainer.
func MovableListRoot ¶ added in v0.4.0
func MovableListRoot(name string) ContainerId
MovableListRoot returns the root ContainerId for a movable list with the given name. Useful for APIs that take a ContainerId directly, such as HasContainer, DeleteRootContainer, and GetPathToContainer.
func TextRoot ¶ added in v0.4.0
func TextRoot(name string) ContainerId
TextRoot returns the root ContainerId for a text container with the given name. Useful for APIs that take a ContainerId directly, such as HasContainer, DeleteRootContainer, and GetPathToContainer.
func TreeRoot ¶ added in v0.4.0
func TreeRoot(name string) ContainerId
TreeRoot returns the root ContainerId for a tree with the given name. Useful for APIs that take a ContainerId directly, such as HasContainer, DeleteRootContainer, and GetPathToContainer.
type ContainerIdAndDiff ¶
type ContainerIdAndDiff struct {
Cid ContainerId
Diff Diff
}
func (*ContainerIdAndDiff) Destroy ¶
func (r *ContainerIdAndDiff) Destroy()
type ContainerIdLike ¶
type ContainerIdLike interface {
AsContainerId(ty ContainerType) ContainerId
}
func LiftFromExternalContainerIdLike ¶ added in v0.3.0
func LiftFromExternalContainerIdLike(handle uint64) ContainerIdLike
type ContainerIdLikeImpl ¶
type ContainerIdLikeImpl struct {
// contains filtered or unexported fields
}
func (*ContainerIdLikeImpl) AsContainerId ¶
func (_self *ContainerIdLikeImpl) AsContainerId(ty ContainerType) ContainerId
func (*ContainerIdLikeImpl) Destroy ¶
func (object *ContainerIdLikeImpl) Destroy()
type ContainerIdNormal ¶
type ContainerIdNormal struct {
Peer uint64
Counter int32
ContainerType ContainerType
}
func (ContainerIdNormal) Destroy ¶
func (e ContainerIdNormal) Destroy()
func (ContainerIdNormal) String ¶ added in v0.4.0
func (e ContainerIdNormal) String() string
type ContainerIdRoot ¶
type ContainerIdRoot struct {
Name string
ContainerType ContainerType
}
func (ContainerIdRoot) Destroy ¶
func (e ContainerIdRoot) Destroy()
func (ContainerIdRoot) String ¶ added in v0.4.0
func (e ContainerIdRoot) String() string
type ContainerPath ¶
type ContainerPath struct {
Id ContainerId
Path Index
}
func (*ContainerPath) Destroy ¶
func (r *ContainerPath) Destroy()
type ContainerType ¶
type ContainerType interface {
Destroy()
}
var ( MapType ContainerType = ContainerTypeMap{} ListType ContainerType = ContainerTypeList{} TextType ContainerType = ContainerTypeText{} TreeType ContainerType = ContainerTypeTree{} MovableListType ContainerType = ContainerTypeMovableList{} CounterType ContainerType = ContainerTypeCounter{} )
ContainerType singletons. Use these instead of the zero-value struct literals (e.g. ContainerTypeMap{}) when building ContainerIdRoot or calling any API that takes a ContainerType.
doc.GetContainer(loro.ContainerIdRoot{Name: "data", ContainerType: loro.MapType})
type ContainerTypeCounter ¶
type ContainerTypeCounter struct {
}
func (ContainerTypeCounter) Destroy ¶
func (e ContainerTypeCounter) Destroy()
func (ContainerTypeCounter) String ¶ added in v0.4.0
func (ContainerTypeCounter) String() string
type ContainerTypeList ¶
type ContainerTypeList struct {
}
func (ContainerTypeList) Destroy ¶
func (e ContainerTypeList) Destroy()
func (ContainerTypeList) String ¶ added in v0.4.0
func (ContainerTypeList) String() string
type ContainerTypeMap ¶
type ContainerTypeMap struct {
}
func (ContainerTypeMap) Destroy ¶
func (e ContainerTypeMap) Destroy()
func (ContainerTypeMap) String ¶ added in v0.4.0
func (ContainerTypeMap) String() string
type ContainerTypeMovableList ¶
type ContainerTypeMovableList struct {
}
func (ContainerTypeMovableList) Destroy ¶
func (e ContainerTypeMovableList) Destroy()
func (ContainerTypeMovableList) String ¶ added in v0.4.0
func (ContainerTypeMovableList) String() string
type ContainerTypeText ¶
type ContainerTypeText struct {
}
func (ContainerTypeText) Destroy ¶
func (e ContainerTypeText) Destroy()
func (ContainerTypeText) String ¶ added in v0.4.0
func (ContainerTypeText) String() string
type ContainerTypeTree ¶
type ContainerTypeTree struct {
}
func (ContainerTypeTree) Destroy ¶
func (e ContainerTypeTree) Destroy()
func (ContainerTypeTree) String ¶ added in v0.4.0
func (ContainerTypeTree) String() string
type ContainerTypeUnknown ¶
type ContainerTypeUnknown struct {
Kind uint8
}
func (ContainerTypeUnknown) Destroy ¶
func (e ContainerTypeUnknown) Destroy()
func (ContainerTypeUnknown) String ¶ added in v0.4.0
func (e ContainerTypeUnknown) String() string
type CounterSpan ¶
func (*CounterSpan) Destroy ¶
func (r *CounterSpan) Destroy()
func (CounterSpan) String ¶ added in v0.4.0
func (s CounterSpan) String() string
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
func CursorDecode ¶
func LiftFromExternalCursor ¶ added in v0.3.0
type CursorInterface ¶
type CursorInterface interface {
Encode() []byte
}
type CursorWithPos ¶
type CursorWithPos struct {
Cursor *Cursor
Pos AbsolutePosition
}
func (*CursorWithPos) Destroy ¶
func (r *CursorWithPos) Destroy()
type DiffBatch ¶
type DiffBatch struct {
// contains filtered or unexported fields
}
func LiftFromExternalDiffBatch ¶ added in v0.3.0
func NewDiffBatch ¶
func NewDiffBatch() *DiffBatch
func (*DiffBatch) GetDiff ¶
func (_self *DiffBatch) GetDiff() []ContainerIdAndDiff
Returns an iterator over the diffs in this batch, in the order they were added.
The iterator yields tuples of `(&ContainerID, &Diff)` where: - `ContainerID` is the ID of the container that was modified - `Diff` contains the actual changes made to that container
The order of the diffs is preserved from when they were originally added to the batch.
type DiffBatchInterface ¶
type DiffBatchInterface interface {
// Returns an iterator over the diffs in this batch, in the order they were added.
//
// The iterator yields tuples of `(&ContainerID, &Diff)` where:
// - `ContainerID` is the ID of the container that was modified
// - `Diff` contains the actual changes made to that container
//
// The order of the diffs is preserved from when they were originally added to the batch.
GetDiff() []ContainerIdAndDiff
// Push a new event to the batch.
//
// If the cid already exists in the batch, return Err
Push(cid ContainerId, diff Diff) *Diff
}
type DiffCounter ¶
type DiffCounter struct {
Diff float64
}
func (DiffCounter) Destroy ¶
func (e DiffCounter) Destroy()
type DiffEvent ¶
type DiffEvent struct {
// How the event is triggered.
TriggeredBy EventTriggerKind
// The origin of the event.
Origin string
// The current receiver of the event.
CurrentTarget *ContainerId
// The diffs of the event.
Events []ContainerDiff
}
type DiffList ¶
type DiffList struct {
Diff []ListDiffItem
}
type DiffUnknown ¶
type DiffUnknown struct {
}
func (DiffUnknown) Destroy ¶
func (e DiffUnknown) Destroy()
type EphemeralEventTrigger ¶
type EphemeralEventTrigger uint
const ( EphemeralEventTriggerLocal EphemeralEventTrigger = 1 EphemeralEventTriggerImport EphemeralEventTrigger = 2 EphemeralEventTriggerTimeout EphemeralEventTrigger = 3 )
type EphemeralStore ¶
type EphemeralStore struct {
// contains filtered or unexported fields
}
func LiftFromExternalEphemeralStore ¶ added in v0.3.0
func LiftFromExternalEphemeralStore(handle uint64) *EphemeralStore
func NewEphemeralStore ¶
func NewEphemeralStore(timeout int64) *EphemeralStore
func (*EphemeralStore) Apply ¶
func (_self *EphemeralStore) Apply(data []byte) error
func (*EphemeralStore) Delete ¶
func (_self *EphemeralStore) Delete(key string)
func (*EphemeralStore) Destroy ¶
func (object *EphemeralStore) Destroy()
func (*EphemeralStore) Encode ¶
func (_self *EphemeralStore) Encode(key string) []byte
func (*EphemeralStore) EncodeAll ¶
func (_self *EphemeralStore) EncodeAll() []byte
func (*EphemeralStore) Get ¶
func (_self *EphemeralStore) Get(key string) *LoroValue
func (*EphemeralStore) GetAllStates ¶
func (_self *EphemeralStore) GetAllStates() map[string]LoroValue
func (*EphemeralStore) Keys ¶
func (_self *EphemeralStore) Keys() []string
func (*EphemeralStore) RemoveOutdated ¶
func (_self *EphemeralStore) RemoveOutdated()
func (*EphemeralStore) Set ¶
func (_self *EphemeralStore) Set(key string, value LoroValueLike)
func (*EphemeralStore) SetAny ¶ added in v0.4.0
func (s *EphemeralStore) SetAny(key string, v any) error
SetAny sets the ephemeral key to a plain Go value. The value is converted via AsValue; passing an unsupported type returns an error without modifying the store.
func (*EphemeralStore) Subscribe ¶
func (_self *EphemeralStore) Subscribe(listener EphemeralSubscriber) *Subscription
func (*EphemeralStore) SubscribeFn ¶ added in v0.4.0
func (s *EphemeralStore) SubscribeFn(fn func(event EphemeralStoreEvent)) *Subscription
SubscribeFn is a convenience wrapper around EphemeralStore.Subscribe that accepts a plain function instead of an EphemeralSubscriber interface.
sub := store.SubscribeFn(func(event loro.EphemeralStoreEvent) {
fmt.Println("ephemeral keys updated:", event.Updated)
})
defer sub.Unsubscribe()
func (*EphemeralStore) SubscribeLocalUpdate ¶
func (_self *EphemeralStore) SubscribeLocalUpdate(listener LocalEphemeralListener) *Subscription
func (*EphemeralStore) SubscribeLocalUpdateFn ¶ added in v0.4.0
func (s *EphemeralStore) SubscribeLocalUpdateFn(fn func(update []byte)) *Subscription
SubscribeLocalUpdateFn is a convenience wrapper around EphemeralStore.SubscribeLocalUpdate that accepts a plain function instead of a LocalEphemeralListener interface.
sub := store.SubscribeLocalUpdateFn(func(update []byte) {
_ = conn.Send(update) // broadcast ephemeral update
})
defer sub.Unsubscribe()
type EphemeralStoreEvent ¶
type EphemeralStoreEvent struct {
By EphemeralEventTrigger
Added []string
Removed []string
Updated []string
}
func (*EphemeralStoreEvent) Destroy ¶
func (r *EphemeralStoreEvent) Destroy()
type EphemeralStoreInterface ¶
type EphemeralStoreInterface interface {
Apply(data []byte) error
Delete(key string)
Encode(key string) []byte
EncodeAll() []byte
Get(key string) *LoroValue
GetAllStates() map[string]LoroValue
Keys() []string
RemoveOutdated()
Set(key string, value LoroValueLike)
Subscribe(listener EphemeralSubscriber) *Subscription
SubscribeLocalUpdate(listener LocalEphemeralListener) *Subscription
}
type EphemeralSubscriber ¶
type EphemeralSubscriber interface {
OnEphemeralEvent(event EphemeralStoreEvent)
}
func AsEphemeralSubscriber ¶
func AsEphemeralSubscriber(fn EphemeralSubscriberFn) EphemeralSubscriber
AsEphemeralSubscriber adapts a function to the EphemeralSubscriber interface.
func LiftFromExternalEphemeralSubscriber ¶ added in v0.3.0
func LiftFromExternalEphemeralSubscriber(handle uint64) EphemeralSubscriber
type EphemeralSubscriberFn ¶
type EphemeralSubscriberFn func(event EphemeralStoreEvent)
EphemeralSubscriberFn adapts a function to the EphemeralSubscriber interface.
Use with EphemeralStore.Subscribe to observe changes to the ephemeral store, such as awareness/presence updates from peers.
sub := store.Subscribe(loro.EphemeralSubscriberFn(func(event loro.EphemeralStoreEvent) {
for _, key := range event.Updated {
fmt.Println("peer updated:", key)
}
}))
defer sub.Unsubscribe()
func (EphemeralSubscriberFn) OnEphemeralEvent ¶
func (fn EphemeralSubscriberFn) OnEphemeralEvent(event EphemeralStoreEvent)
type EphemeralSubscriberImpl ¶
type EphemeralSubscriberImpl struct {
// contains filtered or unexported fields
}
func (*EphemeralSubscriberImpl) Destroy ¶
func (object *EphemeralSubscriberImpl) Destroy()
func (*EphemeralSubscriberImpl) OnEphemeralEvent ¶
func (_self *EphemeralSubscriberImpl) OnEphemeralEvent(event EphemeralStoreEvent)
type EventTriggerKind ¶
type EventTriggerKind uint
The kind of the event trigger.
const ( // The event is triggered by a local transaction. EventTriggerKindLocal EventTriggerKind = 1 // The event is triggered by importing EventTriggerKindImport EventTriggerKind = 2 // The event is triggered by checkout EventTriggerKindCheckout EventTriggerKind = 3 )
func (EventTriggerKind) String ¶ added in v0.4.0
func (k EventTriggerKind) String() string
type ExpandType ¶
type ExpandType uint
const ( ExpandTypeBefore ExpandType = 1 ExpandTypeAfter ExpandType = 2 ExpandTypeBoth ExpandType = 3 ExpandTypeNone ExpandType = 4 )
func (ExpandType) String ¶ added in v0.4.0
func (e ExpandType) String() string
type ExportMode ¶ added in v0.3.0
type ExportMode interface {
Destroy()
}
func ShallowSnapshotMode ¶ added in v0.4.0
func ShallowSnapshotMode(frontiers *Frontiers) ExportMode
ShallowSnapshotMode returns an ExportMode that exports a snapshot trimmed at the given frontiers, discarding earlier history.
func SnapshotAtMode ¶ added in v0.4.0
func SnapshotAtMode(frontiers *Frontiers) ExportMode
SnapshotAtMode returns an ExportMode that exports a snapshot of the document as it existed at the given frontiers.
func SnapshotMode ¶ added in v0.4.0
func SnapshotMode() ExportMode
SnapshotMode returns an ExportMode that exports a full snapshot of the document, including its complete history.
bytes, err := doc.Export(loro.SnapshotMode())
func StateOnlyMode ¶ added in v0.4.0
func StateOnlyMode(frontiers *Frontiers) ExportMode
StateOnlyMode returns an ExportMode that exports only the state at the given frontiers, without history. Pass nil to export the current state.
func UpdatesInRangeMode ¶ added in v0.4.0
func UpdatesInRangeMode(spans []IdSpan) ExportMode
UpdatesInRangeMode returns an ExportMode that exports the updates within the given id spans.
func UpdatesMode ¶ added in v0.4.0
func UpdatesMode(from *VersionVector) ExportMode
UpdatesMode returns an ExportMode that exports updates not present in the given version vector. Pass the remote peer's VersionVector to produce a delta suitable for incremental sync.
bytes, err := doc.Export(loro.UpdatesMode(remoteVV))
type ExportModeShallowSnapshot ¶ added in v0.3.0
type ExportModeShallowSnapshot struct {
Frontiers *Frontiers
}
func (ExportModeShallowSnapshot) Destroy ¶ added in v0.3.0
func (e ExportModeShallowSnapshot) Destroy()
type ExportModeSnapshot ¶ added in v0.3.0
type ExportModeSnapshot struct {
}
func (ExportModeSnapshot) Destroy ¶ added in v0.3.0
func (e ExportModeSnapshot) Destroy()
type ExportModeSnapshotAt ¶ added in v0.3.0
type ExportModeSnapshotAt struct {
Frontiers *Frontiers
}
func (ExportModeSnapshotAt) Destroy ¶ added in v0.3.0
func (e ExportModeSnapshotAt) Destroy()
type ExportModeStateOnly ¶ added in v0.3.0
type ExportModeStateOnly struct {
Frontiers **Frontiers
}
func (ExportModeStateOnly) Destroy ¶ added in v0.3.0
func (e ExportModeStateOnly) Destroy()
type ExportModeUpdates ¶ added in v0.3.0
type ExportModeUpdates struct {
From *VersionVector
}
func (ExportModeUpdates) Destroy ¶ added in v0.3.0
func (e ExportModeUpdates) Destroy()
type ExportModeUpdatesInRange ¶ added in v0.3.0
type ExportModeUpdatesInRange struct {
Spans []IdSpan
}
func (ExportModeUpdatesInRange) Destroy ¶ added in v0.3.0
func (e ExportModeUpdatesInRange) Destroy()
type ExternalCRustBuffer ¶ added in v0.3.0
C.RustBuffer fields exposed as an interface so they can be accessed in different Go packages. See https://github.com/golang/go/issues/13467
func RustBufferFromC ¶ added in v0.3.0
func RustBufferFromC(b C.RustBuffer) ExternalCRustBuffer
type FfiConverterAbsolutePosition ¶
type FfiConverterAbsolutePosition struct{}
func (FfiConverterAbsolutePosition) Lift ¶
func (c FfiConverterAbsolutePosition) Lift(rb RustBufferI) AbsolutePosition
func (FfiConverterAbsolutePosition) Lower ¶
func (c FfiConverterAbsolutePosition) Lower(value AbsolutePosition) C.RustBuffer
func (FfiConverterAbsolutePosition) LowerExternal ¶ added in v0.3.0
func (c FfiConverterAbsolutePosition) LowerExternal(value AbsolutePosition) ExternalCRustBuffer
func (FfiConverterAbsolutePosition) Read ¶
func (c FfiConverterAbsolutePosition) Read(reader io.Reader) AbsolutePosition
func (FfiConverterAbsolutePosition) Write ¶
func (c FfiConverterAbsolutePosition) Write(writer io.Writer, value AbsolutePosition)
type FfiConverterAwareness ¶
type FfiConverterAwareness struct{}
func (FfiConverterAwareness) Lift ¶
func (c FfiConverterAwareness) Lift(handle C.uint64_t) *Awareness
func (FfiConverterAwareness) Lower ¶
func (c FfiConverterAwareness) Lower(value *Awareness) C.uint64_t
type FfiConverterAwarenessPeerUpdate ¶
type FfiConverterAwarenessPeerUpdate struct{}
func (FfiConverterAwarenessPeerUpdate) Lift ¶
func (c FfiConverterAwarenessPeerUpdate) Lift(rb RustBufferI) AwarenessPeerUpdate
func (FfiConverterAwarenessPeerUpdate) Lower ¶
func (c FfiConverterAwarenessPeerUpdate) Lower(value AwarenessPeerUpdate) C.RustBuffer
func (FfiConverterAwarenessPeerUpdate) LowerExternal ¶ added in v0.3.0
func (c FfiConverterAwarenessPeerUpdate) LowerExternal(value AwarenessPeerUpdate) ExternalCRustBuffer
func (FfiConverterAwarenessPeerUpdate) Read ¶
func (c FfiConverterAwarenessPeerUpdate) Read(reader io.Reader) AwarenessPeerUpdate
func (FfiConverterAwarenessPeerUpdate) Write ¶
func (c FfiConverterAwarenessPeerUpdate) Write(writer io.Writer, value AwarenessPeerUpdate)
type FfiConverterBool ¶
type FfiConverterBool struct{}
type FfiConverterBytes ¶
type FfiConverterBytes struct{}
func (FfiConverterBytes) Lift ¶
func (c FfiConverterBytes) Lift(rb RustBufferI) []byte
func (FfiConverterBytes) Lower ¶
func (c FfiConverterBytes) Lower(value []byte) C.RustBuffer
func (FfiConverterBytes) LowerExternal ¶ added in v0.3.0
func (c FfiConverterBytes) LowerExternal(value []byte) ExternalCRustBuffer
type FfiConverterCannotFindRelativePosition ¶
type FfiConverterCannotFindRelativePosition struct{}
func (FfiConverterCannotFindRelativePosition) Lift ¶
func (c FfiConverterCannotFindRelativePosition) Lift(eb RustBufferI) *CannotFindRelativePosition
func (FfiConverterCannotFindRelativePosition) Lower ¶
func (c FfiConverterCannotFindRelativePosition) Lower(value *CannotFindRelativePosition) C.RustBuffer
func (FfiConverterCannotFindRelativePosition) LowerExternal ¶ added in v0.3.0
func (c FfiConverterCannotFindRelativePosition) LowerExternal(value *CannotFindRelativePosition) ExternalCRustBuffer
func (FfiConverterCannotFindRelativePosition) Read ¶
func (c FfiConverterCannotFindRelativePosition) Read(reader io.Reader) *CannotFindRelativePosition
func (FfiConverterCannotFindRelativePosition) Write ¶
func (c FfiConverterCannotFindRelativePosition) Write(writer io.Writer, value *CannotFindRelativePosition)
type FfiConverterChangeAncestorsTraveler ¶
type FfiConverterChangeAncestorsTraveler struct {
// contains filtered or unexported fields
}
func (FfiConverterChangeAncestorsTraveler) Lift ¶
func (c FfiConverterChangeAncestorsTraveler) Lift(handle C.uint64_t) ChangeAncestorsTraveler
func (FfiConverterChangeAncestorsTraveler) Lower ¶
func (c FfiConverterChangeAncestorsTraveler) Lower(value ChangeAncestorsTraveler) C.uint64_t
func (FfiConverterChangeAncestorsTraveler) Read ¶
func (c FfiConverterChangeAncestorsTraveler) Read(reader io.Reader) ChangeAncestorsTraveler
func (FfiConverterChangeAncestorsTraveler) Write ¶
func (c FfiConverterChangeAncestorsTraveler) Write(writer io.Writer, value ChangeAncestorsTraveler)
type FfiConverterChangeMeta ¶
type FfiConverterChangeMeta struct{}
func (FfiConverterChangeMeta) Lift ¶
func (c FfiConverterChangeMeta) Lift(rb RustBufferI) ChangeMeta
func (FfiConverterChangeMeta) Lower ¶
func (c FfiConverterChangeMeta) Lower(value ChangeMeta) C.RustBuffer
func (FfiConverterChangeMeta) LowerExternal ¶ added in v0.3.0
func (c FfiConverterChangeMeta) LowerExternal(value ChangeMeta) ExternalCRustBuffer
func (FfiConverterChangeMeta) Read ¶
func (c FfiConverterChangeMeta) Read(reader io.Reader) ChangeMeta
func (FfiConverterChangeMeta) Write ¶
func (c FfiConverterChangeMeta) Write(writer io.Writer, value ChangeMeta)
type FfiConverterChangeModifier ¶
type FfiConverterChangeModifier struct{}
func (FfiConverterChangeModifier) Lift ¶
func (c FfiConverterChangeModifier) Lift(handle C.uint64_t) *ChangeModifier
func (FfiConverterChangeModifier) Lower ¶
func (c FfiConverterChangeModifier) Lower(value *ChangeModifier) C.uint64_t
func (FfiConverterChangeModifier) Read ¶
func (c FfiConverterChangeModifier) Read(reader io.Reader) *ChangeModifier
func (FfiConverterChangeModifier) Write ¶
func (c FfiConverterChangeModifier) Write(writer io.Writer, value *ChangeModifier)
type FfiConverterChangeTravelError ¶
type FfiConverterChangeTravelError struct{}
func (FfiConverterChangeTravelError) Lift ¶
func (c FfiConverterChangeTravelError) Lift(eb RustBufferI) *ChangeTravelError
func (FfiConverterChangeTravelError) Lower ¶
func (c FfiConverterChangeTravelError) Lower(value *ChangeTravelError) C.RustBuffer
func (FfiConverterChangeTravelError) LowerExternal ¶ added in v0.3.0
func (c FfiConverterChangeTravelError) LowerExternal(value *ChangeTravelError) ExternalCRustBuffer
func (FfiConverterChangeTravelError) Read ¶
func (c FfiConverterChangeTravelError) Read(reader io.Reader) *ChangeTravelError
func (FfiConverterChangeTravelError) Write ¶
func (c FfiConverterChangeTravelError) Write(writer io.Writer, value *ChangeTravelError)
type FfiConverterCommitOptions ¶
type FfiConverterCommitOptions struct{}
func (FfiConverterCommitOptions) Lift ¶
func (c FfiConverterCommitOptions) Lift(rb RustBufferI) CommitOptions
func (FfiConverterCommitOptions) Lower ¶
func (c FfiConverterCommitOptions) Lower(value CommitOptions) C.RustBuffer
func (FfiConverterCommitOptions) LowerExternal ¶ added in v0.3.0
func (c FfiConverterCommitOptions) LowerExternal(value CommitOptions) ExternalCRustBuffer
func (FfiConverterCommitOptions) Read ¶
func (c FfiConverterCommitOptions) Read(reader io.Reader) CommitOptions
func (FfiConverterCommitOptions) Write ¶
func (c FfiConverterCommitOptions) Write(writer io.Writer, value CommitOptions)
type FfiConverterConfigure ¶
type FfiConverterConfigure struct{}
func (FfiConverterConfigure) Lift ¶
func (c FfiConverterConfigure) Lift(handle C.uint64_t) *Configure
func (FfiConverterConfigure) Lower ¶
func (c FfiConverterConfigure) Lower(value *Configure) C.uint64_t
type FfiConverterContainerDiff ¶
type FfiConverterContainerDiff struct{}
func (FfiConverterContainerDiff) Lift ¶
func (c FfiConverterContainerDiff) Lift(rb RustBufferI) ContainerDiff
func (FfiConverterContainerDiff) Lower ¶
func (c FfiConverterContainerDiff) Lower(value ContainerDiff) C.RustBuffer
func (FfiConverterContainerDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterContainerDiff) LowerExternal(value ContainerDiff) ExternalCRustBuffer
func (FfiConverterContainerDiff) Read ¶
func (c FfiConverterContainerDiff) Read(reader io.Reader) ContainerDiff
func (FfiConverterContainerDiff) Write ¶
func (c FfiConverterContainerDiff) Write(writer io.Writer, value ContainerDiff)
type FfiConverterContainerId ¶
type FfiConverterContainerId struct{}
func (FfiConverterContainerId) Lift ¶
func (c FfiConverterContainerId) Lift(rb RustBufferI) ContainerId
func (FfiConverterContainerId) Lower ¶
func (c FfiConverterContainerId) Lower(value ContainerId) C.RustBuffer
func (FfiConverterContainerId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterContainerId) LowerExternal(value ContainerId) ExternalCRustBuffer
func (FfiConverterContainerId) Read ¶
func (FfiConverterContainerId) Read(reader io.Reader) ContainerId
func (FfiConverterContainerId) Write ¶
func (FfiConverterContainerId) Write(writer io.Writer, value ContainerId)
type FfiConverterContainerIdAndDiff ¶
type FfiConverterContainerIdAndDiff struct{}
func (FfiConverterContainerIdAndDiff) Lift ¶
func (c FfiConverterContainerIdAndDiff) Lift(rb RustBufferI) ContainerIdAndDiff
func (FfiConverterContainerIdAndDiff) Lower ¶
func (c FfiConverterContainerIdAndDiff) Lower(value ContainerIdAndDiff) C.RustBuffer
func (FfiConverterContainerIdAndDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterContainerIdAndDiff) LowerExternal(value ContainerIdAndDiff) ExternalCRustBuffer
func (FfiConverterContainerIdAndDiff) Read ¶
func (c FfiConverterContainerIdAndDiff) Read(reader io.Reader) ContainerIdAndDiff
func (FfiConverterContainerIdAndDiff) Write ¶
func (c FfiConverterContainerIdAndDiff) Write(writer io.Writer, value ContainerIdAndDiff)
type FfiConverterContainerIdLike ¶
type FfiConverterContainerIdLike struct {
// contains filtered or unexported fields
}
func (FfiConverterContainerIdLike) Lift ¶
func (c FfiConverterContainerIdLike) Lift(handle C.uint64_t) ContainerIdLike
func (FfiConverterContainerIdLike) Lower ¶
func (c FfiConverterContainerIdLike) Lower(value ContainerIdLike) C.uint64_t
func (FfiConverterContainerIdLike) Read ¶
func (c FfiConverterContainerIdLike) Read(reader io.Reader) ContainerIdLike
func (FfiConverterContainerIdLike) Write ¶
func (c FfiConverterContainerIdLike) Write(writer io.Writer, value ContainerIdLike)
type FfiConverterContainerPath ¶
type FfiConverterContainerPath struct{}
func (FfiConverterContainerPath) Lift ¶
func (c FfiConverterContainerPath) Lift(rb RustBufferI) ContainerPath
func (FfiConverterContainerPath) Lower ¶
func (c FfiConverterContainerPath) Lower(value ContainerPath) C.RustBuffer
func (FfiConverterContainerPath) LowerExternal ¶ added in v0.3.0
func (c FfiConverterContainerPath) LowerExternal(value ContainerPath) ExternalCRustBuffer
func (FfiConverterContainerPath) Read ¶
func (c FfiConverterContainerPath) Read(reader io.Reader) ContainerPath
func (FfiConverterContainerPath) Write ¶
func (c FfiConverterContainerPath) Write(writer io.Writer, value ContainerPath)
type FfiConverterContainerType ¶
type FfiConverterContainerType struct{}
func (FfiConverterContainerType) Lift ¶
func (c FfiConverterContainerType) Lift(rb RustBufferI) ContainerType
func (FfiConverterContainerType) Lower ¶
func (c FfiConverterContainerType) Lower(value ContainerType) C.RustBuffer
func (FfiConverterContainerType) LowerExternal ¶ added in v0.3.0
func (c FfiConverterContainerType) LowerExternal(value ContainerType) ExternalCRustBuffer
func (FfiConverterContainerType) Read ¶
func (FfiConverterContainerType) Read(reader io.Reader) ContainerType
func (FfiConverterContainerType) Write ¶
func (FfiConverterContainerType) Write(writer io.Writer, value ContainerType)
type FfiConverterCounterSpan ¶
type FfiConverterCounterSpan struct{}
func (FfiConverterCounterSpan) Lift ¶
func (c FfiConverterCounterSpan) Lift(rb RustBufferI) CounterSpan
func (FfiConverterCounterSpan) Lower ¶
func (c FfiConverterCounterSpan) Lower(value CounterSpan) C.RustBuffer
func (FfiConverterCounterSpan) LowerExternal ¶ added in v0.3.0
func (c FfiConverterCounterSpan) LowerExternal(value CounterSpan) ExternalCRustBuffer
func (FfiConverterCounterSpan) Read ¶
func (c FfiConverterCounterSpan) Read(reader io.Reader) CounterSpan
func (FfiConverterCounterSpan) Write ¶
func (c FfiConverterCounterSpan) Write(writer io.Writer, value CounterSpan)
type FfiConverterCursor ¶
type FfiConverterCursor struct{}
type FfiConverterCursorWithPos ¶
type FfiConverterCursorWithPos struct{}
func (FfiConverterCursorWithPos) Lift ¶
func (c FfiConverterCursorWithPos) Lift(rb RustBufferI) CursorWithPos
func (FfiConverterCursorWithPos) Lower ¶
func (c FfiConverterCursorWithPos) Lower(value CursorWithPos) C.RustBuffer
func (FfiConverterCursorWithPos) LowerExternal ¶ added in v0.3.0
func (c FfiConverterCursorWithPos) LowerExternal(value CursorWithPos) ExternalCRustBuffer
func (FfiConverterCursorWithPos) Read ¶
func (c FfiConverterCursorWithPos) Read(reader io.Reader) CursorWithPos
func (FfiConverterCursorWithPos) Write ¶
func (c FfiConverterCursorWithPos) Write(writer io.Writer, value CursorWithPos)
type FfiConverterDiff ¶
type FfiConverterDiff struct{}
func (FfiConverterDiff) Lift ¶
func (c FfiConverterDiff) Lift(rb RustBufferI) Diff
func (FfiConverterDiff) Lower ¶
func (c FfiConverterDiff) Lower(value Diff) C.RustBuffer
func (FfiConverterDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterDiff) LowerExternal(value Diff) ExternalCRustBuffer
type FfiConverterDiffBatch ¶
type FfiConverterDiffBatch struct{}
func (FfiConverterDiffBatch) Lift ¶
func (c FfiConverterDiffBatch) Lift(handle C.uint64_t) *DiffBatch
func (FfiConverterDiffBatch) Lower ¶
func (c FfiConverterDiffBatch) Lower(value *DiffBatch) C.uint64_t
type FfiConverterDiffEvent ¶
type FfiConverterDiffEvent struct{}
func (FfiConverterDiffEvent) Lift ¶
func (c FfiConverterDiffEvent) Lift(rb RustBufferI) DiffEvent
func (FfiConverterDiffEvent) Lower ¶
func (c FfiConverterDiffEvent) Lower(value DiffEvent) C.RustBuffer
func (FfiConverterDiffEvent) LowerExternal ¶ added in v0.3.0
func (c FfiConverterDiffEvent) LowerExternal(value DiffEvent) ExternalCRustBuffer
type FfiConverterEphemeralEventTrigger ¶
type FfiConverterEphemeralEventTrigger struct{}
func (FfiConverterEphemeralEventTrigger) Lift ¶
func (c FfiConverterEphemeralEventTrigger) Lift(rb RustBufferI) EphemeralEventTrigger
func (FfiConverterEphemeralEventTrigger) Lower ¶
func (c FfiConverterEphemeralEventTrigger) Lower(value EphemeralEventTrigger) C.RustBuffer
func (FfiConverterEphemeralEventTrigger) LowerExternal ¶ added in v0.3.0
func (c FfiConverterEphemeralEventTrigger) LowerExternal(value EphemeralEventTrigger) ExternalCRustBuffer
func (FfiConverterEphemeralEventTrigger) Read ¶
func (FfiConverterEphemeralEventTrigger) Read(reader io.Reader) EphemeralEventTrigger
func (FfiConverterEphemeralEventTrigger) Write ¶
func (FfiConverterEphemeralEventTrigger) Write(writer io.Writer, value EphemeralEventTrigger)
type FfiConverterEphemeralStore ¶
type FfiConverterEphemeralStore struct{}
func (FfiConverterEphemeralStore) Lift ¶
func (c FfiConverterEphemeralStore) Lift(handle C.uint64_t) *EphemeralStore
func (FfiConverterEphemeralStore) Lower ¶
func (c FfiConverterEphemeralStore) Lower(value *EphemeralStore) C.uint64_t
func (FfiConverterEphemeralStore) Read ¶
func (c FfiConverterEphemeralStore) Read(reader io.Reader) *EphemeralStore
func (FfiConverterEphemeralStore) Write ¶
func (c FfiConverterEphemeralStore) Write(writer io.Writer, value *EphemeralStore)
type FfiConverterEphemeralStoreEvent ¶
type FfiConverterEphemeralStoreEvent struct{}
func (FfiConverterEphemeralStoreEvent) Lift ¶
func (c FfiConverterEphemeralStoreEvent) Lift(rb RustBufferI) EphemeralStoreEvent
func (FfiConverterEphemeralStoreEvent) Lower ¶
func (c FfiConverterEphemeralStoreEvent) Lower(value EphemeralStoreEvent) C.RustBuffer
func (FfiConverterEphemeralStoreEvent) LowerExternal ¶ added in v0.3.0
func (c FfiConverterEphemeralStoreEvent) LowerExternal(value EphemeralStoreEvent) ExternalCRustBuffer
func (FfiConverterEphemeralStoreEvent) Read ¶
func (c FfiConverterEphemeralStoreEvent) Read(reader io.Reader) EphemeralStoreEvent
func (FfiConverterEphemeralStoreEvent) Write ¶
func (c FfiConverterEphemeralStoreEvent) Write(writer io.Writer, value EphemeralStoreEvent)
type FfiConverterEphemeralSubscriber ¶
type FfiConverterEphemeralSubscriber struct {
// contains filtered or unexported fields
}
func (FfiConverterEphemeralSubscriber) Lift ¶
func (c FfiConverterEphemeralSubscriber) Lift(handle C.uint64_t) EphemeralSubscriber
func (FfiConverterEphemeralSubscriber) Lower ¶
func (c FfiConverterEphemeralSubscriber) Lower(value EphemeralSubscriber) C.uint64_t
func (FfiConverterEphemeralSubscriber) Read ¶
func (c FfiConverterEphemeralSubscriber) Read(reader io.Reader) EphemeralSubscriber
func (FfiConverterEphemeralSubscriber) Write ¶
func (c FfiConverterEphemeralSubscriber) Write(writer io.Writer, value EphemeralSubscriber)
type FfiConverterEventTriggerKind ¶
type FfiConverterEventTriggerKind struct{}
func (FfiConverterEventTriggerKind) Lift ¶
func (c FfiConverterEventTriggerKind) Lift(rb RustBufferI) EventTriggerKind
func (FfiConverterEventTriggerKind) Lower ¶
func (c FfiConverterEventTriggerKind) Lower(value EventTriggerKind) C.RustBuffer
func (FfiConverterEventTriggerKind) LowerExternal ¶ added in v0.3.0
func (c FfiConverterEventTriggerKind) LowerExternal(value EventTriggerKind) ExternalCRustBuffer
func (FfiConverterEventTriggerKind) Read ¶
func (FfiConverterEventTriggerKind) Read(reader io.Reader) EventTriggerKind
func (FfiConverterEventTriggerKind) Write ¶
func (FfiConverterEventTriggerKind) Write(writer io.Writer, value EventTriggerKind)
type FfiConverterExpandType ¶
type FfiConverterExpandType struct{}
func (FfiConverterExpandType) Lift ¶
func (c FfiConverterExpandType) Lift(rb RustBufferI) ExpandType
func (FfiConverterExpandType) Lower ¶
func (c FfiConverterExpandType) Lower(value ExpandType) C.RustBuffer
func (FfiConverterExpandType) LowerExternal ¶ added in v0.3.0
func (c FfiConverterExpandType) LowerExternal(value ExpandType) ExternalCRustBuffer
func (FfiConverterExpandType) Read ¶
func (FfiConverterExpandType) Read(reader io.Reader) ExpandType
func (FfiConverterExpandType) Write ¶
func (FfiConverterExpandType) Write(writer io.Writer, value ExpandType)
type FfiConverterExportMode ¶ added in v0.3.0
type FfiConverterExportMode struct{}
func (FfiConverterExportMode) Lift ¶ added in v0.3.0
func (c FfiConverterExportMode) Lift(rb RustBufferI) ExportMode
func (FfiConverterExportMode) Lower ¶ added in v0.3.0
func (c FfiConverterExportMode) Lower(value ExportMode) C.RustBuffer
func (FfiConverterExportMode) LowerExternal ¶ added in v0.3.0
func (c FfiConverterExportMode) LowerExternal(value ExportMode) ExternalCRustBuffer
func (FfiConverterExportMode) Read ¶ added in v0.3.0
func (FfiConverterExportMode) Read(reader io.Reader) ExportMode
func (FfiConverterExportMode) Write ¶ added in v0.3.0
func (FfiConverterExportMode) Write(writer io.Writer, value ExportMode)
type FfiConverterFirstCommitFromPeerCallback ¶
type FfiConverterFirstCommitFromPeerCallback struct {
// contains filtered or unexported fields
}
func (FfiConverterFirstCommitFromPeerCallback) Lift ¶
func (c FfiConverterFirstCommitFromPeerCallback) Lift(handle C.uint64_t) FirstCommitFromPeerCallback
func (FfiConverterFirstCommitFromPeerCallback) Lower ¶
func (c FfiConverterFirstCommitFromPeerCallback) Lower(value FirstCommitFromPeerCallback) C.uint64_t
func (FfiConverterFirstCommitFromPeerCallback) Read ¶
func (c FfiConverterFirstCommitFromPeerCallback) Read(reader io.Reader) FirstCommitFromPeerCallback
func (FfiConverterFirstCommitFromPeerCallback) Write ¶
func (c FfiConverterFirstCommitFromPeerCallback) Write(writer io.Writer, value FirstCommitFromPeerCallback)
type FfiConverterFirstCommitFromPeerPayload ¶
type FfiConverterFirstCommitFromPeerPayload struct{}
func (FfiConverterFirstCommitFromPeerPayload) Lift ¶
func (c FfiConverterFirstCommitFromPeerPayload) Lift(rb RustBufferI) FirstCommitFromPeerPayload
func (FfiConverterFirstCommitFromPeerPayload) Lower ¶
func (c FfiConverterFirstCommitFromPeerPayload) Lower(value FirstCommitFromPeerPayload) C.RustBuffer
func (FfiConverterFirstCommitFromPeerPayload) LowerExternal ¶ added in v0.3.0
func (c FfiConverterFirstCommitFromPeerPayload) LowerExternal(value FirstCommitFromPeerPayload) ExternalCRustBuffer
func (FfiConverterFirstCommitFromPeerPayload) Read ¶
func (c FfiConverterFirstCommitFromPeerPayload) Read(reader io.Reader) FirstCommitFromPeerPayload
func (FfiConverterFirstCommitFromPeerPayload) Write ¶
func (c FfiConverterFirstCommitFromPeerPayload) Write(writer io.Writer, value FirstCommitFromPeerPayload)
type FfiConverterFloat64 ¶
type FfiConverterFloat64 struct{}
type FfiConverterFractionalIndex ¶
type FfiConverterFractionalIndex struct{}
func (FfiConverterFractionalIndex) Lift ¶
func (c FfiConverterFractionalIndex) Lift(handle C.uint64_t) *FractionalIndex
func (FfiConverterFractionalIndex) Lower ¶
func (c FfiConverterFractionalIndex) Lower(value *FractionalIndex) C.uint64_t
func (FfiConverterFractionalIndex) Read ¶
func (c FfiConverterFractionalIndex) Read(reader io.Reader) *FractionalIndex
func (FfiConverterFractionalIndex) Write ¶
func (c FfiConverterFractionalIndex) Write(writer io.Writer, value *FractionalIndex)
type FfiConverterFrontiers ¶
type FfiConverterFrontiers struct{}
func (FfiConverterFrontiers) Lift ¶
func (c FfiConverterFrontiers) Lift(handle C.uint64_t) *Frontiers
func (FfiConverterFrontiers) Lower ¶
func (c FfiConverterFrontiers) Lower(value *Frontiers) C.uint64_t
type FfiConverterFrontiersOrId ¶
type FfiConverterFrontiersOrId struct{}
func (FfiConverterFrontiersOrId) Lift ¶
func (c FfiConverterFrontiersOrId) Lift(rb RustBufferI) FrontiersOrId
func (FfiConverterFrontiersOrId) Lower ¶
func (c FfiConverterFrontiersOrId) Lower(value FrontiersOrId) C.RustBuffer
func (FfiConverterFrontiersOrId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterFrontiersOrId) LowerExternal(value FrontiersOrId) ExternalCRustBuffer
func (FfiConverterFrontiersOrId) Read ¶
func (c FfiConverterFrontiersOrId) Read(reader io.Reader) FrontiersOrId
func (FfiConverterFrontiersOrId) Write ¶
func (c FfiConverterFrontiersOrId) Write(writer io.Writer, value FrontiersOrId)
type FfiConverterId ¶
type FfiConverterId struct{}
func (FfiConverterId) Lift ¶
func (c FfiConverterId) Lift(rb RustBufferI) Id
func (FfiConverterId) Lower ¶
func (c FfiConverterId) Lower(value Id) C.RustBuffer
func (FfiConverterId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterId) LowerExternal(value Id) ExternalCRustBuffer
type FfiConverterIdLp ¶
type FfiConverterIdLp struct{}
func (FfiConverterIdLp) Lift ¶
func (c FfiConverterIdLp) Lift(rb RustBufferI) IdLp
func (FfiConverterIdLp) Lower ¶
func (c FfiConverterIdLp) Lower(value IdLp) C.RustBuffer
func (FfiConverterIdLp) LowerExternal ¶ added in v0.3.0
func (c FfiConverterIdLp) LowerExternal(value IdLp) ExternalCRustBuffer
type FfiConverterIdSpan ¶
type FfiConverterIdSpan struct{}
func (FfiConverterIdSpan) Lift ¶
func (c FfiConverterIdSpan) Lift(rb RustBufferI) IdSpan
func (FfiConverterIdSpan) Lower ¶
func (c FfiConverterIdSpan) Lower(value IdSpan) C.RustBuffer
func (FfiConverterIdSpan) LowerExternal ¶ added in v0.3.0
func (c FfiConverterIdSpan) LowerExternal(value IdSpan) ExternalCRustBuffer
type FfiConverterImportBlobMetadata ¶
type FfiConverterImportBlobMetadata struct{}
func (FfiConverterImportBlobMetadata) Lift ¶
func (c FfiConverterImportBlobMetadata) Lift(rb RustBufferI) ImportBlobMetadata
func (FfiConverterImportBlobMetadata) Lower ¶
func (c FfiConverterImportBlobMetadata) Lower(value ImportBlobMetadata) C.RustBuffer
func (FfiConverterImportBlobMetadata) LowerExternal ¶ added in v0.3.0
func (c FfiConverterImportBlobMetadata) LowerExternal(value ImportBlobMetadata) ExternalCRustBuffer
func (FfiConverterImportBlobMetadata) Read ¶
func (c FfiConverterImportBlobMetadata) Read(reader io.Reader) ImportBlobMetadata
func (FfiConverterImportBlobMetadata) Write ¶
func (c FfiConverterImportBlobMetadata) Write(writer io.Writer, value ImportBlobMetadata)
type FfiConverterImportStatus ¶
type FfiConverterImportStatus struct{}
func (FfiConverterImportStatus) Lift ¶
func (c FfiConverterImportStatus) Lift(rb RustBufferI) ImportStatus
func (FfiConverterImportStatus) Lower ¶
func (c FfiConverterImportStatus) Lower(value ImportStatus) C.RustBuffer
func (FfiConverterImportStatus) LowerExternal ¶ added in v0.3.0
func (c FfiConverterImportStatus) LowerExternal(value ImportStatus) ExternalCRustBuffer
func (FfiConverterImportStatus) Read ¶
func (c FfiConverterImportStatus) Read(reader io.Reader) ImportStatus
func (FfiConverterImportStatus) Write ¶
func (c FfiConverterImportStatus) Write(writer io.Writer, value ImportStatus)
type FfiConverterIndex ¶
type FfiConverterIndex struct{}
func (FfiConverterIndex) Lift ¶
func (c FfiConverterIndex) Lift(rb RustBufferI) Index
func (FfiConverterIndex) Lower ¶
func (c FfiConverterIndex) Lower(value Index) C.RustBuffer
func (FfiConverterIndex) LowerExternal ¶ added in v0.3.0
func (c FfiConverterIndex) LowerExternal(value Index) ExternalCRustBuffer
type FfiConverterInt32 ¶
type FfiConverterInt32 struct{}
type FfiConverterInt64 ¶
type FfiConverterInt64 struct{}
type FfiConverterJsonPathError ¶
type FfiConverterJsonPathError struct{}
func (FfiConverterJsonPathError) Lift ¶
func (c FfiConverterJsonPathError) Lift(eb RustBufferI) *JsonPathError
func (FfiConverterJsonPathError) Lower ¶
func (c FfiConverterJsonPathError) Lower(value *JsonPathError) C.RustBuffer
func (FfiConverterJsonPathError) LowerExternal ¶ added in v0.3.0
func (c FfiConverterJsonPathError) LowerExternal(value *JsonPathError) ExternalCRustBuffer
func (FfiConverterJsonPathError) Read ¶
func (c FfiConverterJsonPathError) Read(reader io.Reader) *JsonPathError
func (FfiConverterJsonPathError) Write ¶
func (c FfiConverterJsonPathError) Write(writer io.Writer, value *JsonPathError)
type FfiConverterJsonPathSubscriber ¶ added in v0.2.0
type FfiConverterJsonPathSubscriber struct {
// contains filtered or unexported fields
}
func (FfiConverterJsonPathSubscriber) Lift ¶ added in v0.2.0
func (c FfiConverterJsonPathSubscriber) Lift(handle C.uint64_t) JsonPathSubscriber
func (FfiConverterJsonPathSubscriber) Lower ¶ added in v0.2.0
func (c FfiConverterJsonPathSubscriber) Lower(value JsonPathSubscriber) C.uint64_t
func (FfiConverterJsonPathSubscriber) Read ¶ added in v0.2.0
func (c FfiConverterJsonPathSubscriber) Read(reader io.Reader) JsonPathSubscriber
func (FfiConverterJsonPathSubscriber) Write ¶ added in v0.2.0
func (c FfiConverterJsonPathSubscriber) Write(writer io.Writer, value JsonPathSubscriber)
type FfiConverterListDiffItem ¶
type FfiConverterListDiffItem struct{}
func (FfiConverterListDiffItem) Lift ¶
func (c FfiConverterListDiffItem) Lift(rb RustBufferI) ListDiffItem
func (FfiConverterListDiffItem) Lower ¶
func (c FfiConverterListDiffItem) Lower(value ListDiffItem) C.RustBuffer
func (FfiConverterListDiffItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterListDiffItem) LowerExternal(value ListDiffItem) ExternalCRustBuffer
func (FfiConverterListDiffItem) Read ¶
func (FfiConverterListDiffItem) Read(reader io.Reader) ListDiffItem
func (FfiConverterListDiffItem) Write ¶
func (FfiConverterListDiffItem) Write(writer io.Writer, value ListDiffItem)
type FfiConverterLocalEphemeralListener ¶
type FfiConverterLocalEphemeralListener struct {
// contains filtered or unexported fields
}
func (FfiConverterLocalEphemeralListener) Lift ¶
func (c FfiConverterLocalEphemeralListener) Lift(handle C.uint64_t) LocalEphemeralListener
func (FfiConverterLocalEphemeralListener) Lower ¶
func (c FfiConverterLocalEphemeralListener) Lower(value LocalEphemeralListener) C.uint64_t
func (FfiConverterLocalEphemeralListener) Read ¶
func (c FfiConverterLocalEphemeralListener) Read(reader io.Reader) LocalEphemeralListener
func (FfiConverterLocalEphemeralListener) Write ¶
func (c FfiConverterLocalEphemeralListener) Write(writer io.Writer, value LocalEphemeralListener)
type FfiConverterLocalUpdateCallback ¶
type FfiConverterLocalUpdateCallback struct {
// contains filtered or unexported fields
}
func (FfiConverterLocalUpdateCallback) Lift ¶
func (c FfiConverterLocalUpdateCallback) Lift(handle C.uint64_t) LocalUpdateCallback
func (FfiConverterLocalUpdateCallback) Lower ¶
func (c FfiConverterLocalUpdateCallback) Lower(value LocalUpdateCallback) C.uint64_t
func (FfiConverterLocalUpdateCallback) Read ¶
func (c FfiConverterLocalUpdateCallback) Read(reader io.Reader) LocalUpdateCallback
func (FfiConverterLocalUpdateCallback) Write ¶
func (c FfiConverterLocalUpdateCallback) Write(writer io.Writer, value LocalUpdateCallback)
type FfiConverterLoroCounter ¶
type FfiConverterLoroCounter struct{}
func (FfiConverterLoroCounter) Lift ¶
func (c FfiConverterLoroCounter) Lift(handle C.uint64_t) *LoroCounter
func (FfiConverterLoroCounter) Lower ¶
func (c FfiConverterLoroCounter) Lower(value *LoroCounter) C.uint64_t
func (FfiConverterLoroCounter) Read ¶
func (c FfiConverterLoroCounter) Read(reader io.Reader) *LoroCounter
func (FfiConverterLoroCounter) Write ¶
func (c FfiConverterLoroCounter) Write(writer io.Writer, value *LoroCounter)
type FfiConverterLoroDoc ¶
type FfiConverterLoroDoc struct{}
type FfiConverterLoroEncodeError ¶
type FfiConverterLoroEncodeError struct{}
func (FfiConverterLoroEncodeError) Lift ¶
func (c FfiConverterLoroEncodeError) Lift(eb RustBufferI) *LoroEncodeError
func (FfiConverterLoroEncodeError) Lower ¶
func (c FfiConverterLoroEncodeError) Lower(value *LoroEncodeError) C.RustBuffer
func (FfiConverterLoroEncodeError) LowerExternal ¶ added in v0.3.0
func (c FfiConverterLoroEncodeError) LowerExternal(value *LoroEncodeError) ExternalCRustBuffer
func (FfiConverterLoroEncodeError) Read ¶
func (c FfiConverterLoroEncodeError) Read(reader io.Reader) *LoroEncodeError
func (FfiConverterLoroEncodeError) Write ¶
func (c FfiConverterLoroEncodeError) Write(writer io.Writer, value *LoroEncodeError)
type FfiConverterLoroError ¶
type FfiConverterLoroError struct{}
func (FfiConverterLoroError) Lift ¶
func (c FfiConverterLoroError) Lift(eb RustBufferI) *LoroError
func (FfiConverterLoroError) Lower ¶
func (c FfiConverterLoroError) Lower(value *LoroError) C.RustBuffer
func (FfiConverterLoroError) LowerExternal ¶ added in v0.3.0
func (c FfiConverterLoroError) LowerExternal(value *LoroError) ExternalCRustBuffer
type FfiConverterLoroList ¶
type FfiConverterLoroList struct{}
type FfiConverterLoroMap ¶
type FfiConverterLoroMap struct{}
type FfiConverterLoroMovableList ¶
type FfiConverterLoroMovableList struct{}
func (FfiConverterLoroMovableList) Lift ¶
func (c FfiConverterLoroMovableList) Lift(handle C.uint64_t) *LoroMovableList
func (FfiConverterLoroMovableList) Lower ¶
func (c FfiConverterLoroMovableList) Lower(value *LoroMovableList) C.uint64_t
func (FfiConverterLoroMovableList) Read ¶
func (c FfiConverterLoroMovableList) Read(reader io.Reader) *LoroMovableList
func (FfiConverterLoroMovableList) Write ¶
func (c FfiConverterLoroMovableList) Write(writer io.Writer, value *LoroMovableList)
type FfiConverterLoroText ¶
type FfiConverterLoroText struct{}
type FfiConverterLoroTree ¶
type FfiConverterLoroTree struct{}
type FfiConverterLoroUnknown ¶
type FfiConverterLoroUnknown struct{}
func (FfiConverterLoroUnknown) Lift ¶
func (c FfiConverterLoroUnknown) Lift(handle C.uint64_t) *LoroUnknown
func (FfiConverterLoroUnknown) Lower ¶
func (c FfiConverterLoroUnknown) Lower(value *LoroUnknown) C.uint64_t
func (FfiConverterLoroUnknown) Read ¶
func (c FfiConverterLoroUnknown) Read(reader io.Reader) *LoroUnknown
func (FfiConverterLoroUnknown) Write ¶
func (c FfiConverterLoroUnknown) Write(writer io.Writer, value *LoroUnknown)
type FfiConverterLoroValue ¶
type FfiConverterLoroValue struct{}
func (FfiConverterLoroValue) Lift ¶
func (c FfiConverterLoroValue) Lift(rb RustBufferI) LoroValue
func (FfiConverterLoroValue) Lower ¶
func (c FfiConverterLoroValue) Lower(value LoroValue) C.RustBuffer
func (FfiConverterLoroValue) LowerExternal ¶ added in v0.3.0
func (c FfiConverterLoroValue) LowerExternal(value LoroValue) ExternalCRustBuffer
type FfiConverterLoroValueLike ¶
type FfiConverterLoroValueLike struct {
// contains filtered or unexported fields
}
func (FfiConverterLoroValueLike) Lift ¶
func (c FfiConverterLoroValueLike) Lift(handle C.uint64_t) LoroValueLike
func (FfiConverterLoroValueLike) Lower ¶
func (c FfiConverterLoroValueLike) Lower(value LoroValueLike) C.uint64_t
func (FfiConverterLoroValueLike) Read ¶
func (c FfiConverterLoroValueLike) Read(reader io.Reader) LoroValueLike
func (FfiConverterLoroValueLike) Write ¶
func (c FfiConverterLoroValueLike) Write(writer io.Writer, value LoroValueLike)
type FfiConverterMapDelta ¶
type FfiConverterMapDelta struct{}
func (FfiConverterMapDelta) Lift ¶
func (c FfiConverterMapDelta) Lift(rb RustBufferI) MapDelta
func (FfiConverterMapDelta) Lower ¶
func (c FfiConverterMapDelta) Lower(value MapDelta) C.RustBuffer
func (FfiConverterMapDelta) LowerExternal ¶ added in v0.3.0
func (c FfiConverterMapDelta) LowerExternal(value MapDelta) ExternalCRustBuffer
type FfiConverterMapStringLoroValue ¶
type FfiConverterMapStringLoroValue struct{}
func (FfiConverterMapStringLoroValue) Lift ¶
func (c FfiConverterMapStringLoroValue) Lift(rb RustBufferI) map[string]LoroValue
func (FfiConverterMapStringLoroValue) Lower ¶
func (c FfiConverterMapStringLoroValue) Lower(value map[string]LoroValue) C.RustBuffer
func (FfiConverterMapStringLoroValue) LowerExternal ¶ added in v0.3.0
func (c FfiConverterMapStringLoroValue) LowerExternal(value map[string]LoroValue) ExternalCRustBuffer
type FfiConverterMapStringOptionalValueOrContainer ¶
type FfiConverterMapStringOptionalValueOrContainer struct{}
func (FfiConverterMapStringOptionalValueOrContainer) Lift ¶
func (c FfiConverterMapStringOptionalValueOrContainer) Lift(rb RustBufferI) map[string]**ValueOrContainer
func (FfiConverterMapStringOptionalValueOrContainer) Lower ¶
func (c FfiConverterMapStringOptionalValueOrContainer) Lower(value map[string]**ValueOrContainer) C.RustBuffer
func (FfiConverterMapStringOptionalValueOrContainer) LowerExternal ¶ added in v0.3.0
func (c FfiConverterMapStringOptionalValueOrContainer) LowerExternal(value map[string]**ValueOrContainer) ExternalCRustBuffer
func (FfiConverterMapStringOptionalValueOrContainer) Read ¶
func (_ FfiConverterMapStringOptionalValueOrContainer) Read(reader io.Reader) map[string]**ValueOrContainer
func (FfiConverterMapStringOptionalValueOrContainer) Write ¶
func (_ FfiConverterMapStringOptionalValueOrContainer) Write(writer io.Writer, mapValue map[string]**ValueOrContainer)
type FfiConverterMapUint64CounterSpan ¶
type FfiConverterMapUint64CounterSpan struct{}
func (FfiConverterMapUint64CounterSpan) Lift ¶
func (c FfiConverterMapUint64CounterSpan) Lift(rb RustBufferI) map[uint64]CounterSpan
func (FfiConverterMapUint64CounterSpan) Lower ¶
func (c FfiConverterMapUint64CounterSpan) Lower(value map[uint64]CounterSpan) C.RustBuffer
func (FfiConverterMapUint64CounterSpan) LowerExternal ¶ added in v0.3.0
func (c FfiConverterMapUint64CounterSpan) LowerExternal(value map[uint64]CounterSpan) ExternalCRustBuffer
func (FfiConverterMapUint64CounterSpan) Read ¶
func (_ FfiConverterMapUint64CounterSpan) Read(reader io.Reader) map[uint64]CounterSpan
func (FfiConverterMapUint64CounterSpan) Write ¶
func (_ FfiConverterMapUint64CounterSpan) Write(writer io.Writer, mapValue map[uint64]CounterSpan)
type FfiConverterMapUint64Int32 ¶
type FfiConverterMapUint64Int32 struct{}
func (FfiConverterMapUint64Int32) Lift ¶
func (c FfiConverterMapUint64Int32) Lift(rb RustBufferI) map[uint64]int32
func (FfiConverterMapUint64Int32) Lower ¶
func (c FfiConverterMapUint64Int32) Lower(value map[uint64]int32) C.RustBuffer
func (FfiConverterMapUint64Int32) LowerExternal ¶ added in v0.3.0
func (c FfiConverterMapUint64Int32) LowerExternal(value map[uint64]int32) ExternalCRustBuffer
type FfiConverterMapUint64PeerInfo ¶
type FfiConverterMapUint64PeerInfo struct{}
func (FfiConverterMapUint64PeerInfo) Lift ¶
func (c FfiConverterMapUint64PeerInfo) Lift(rb RustBufferI) map[uint64]PeerInfo
func (FfiConverterMapUint64PeerInfo) Lower ¶
func (c FfiConverterMapUint64PeerInfo) Lower(value map[uint64]PeerInfo) C.RustBuffer
func (FfiConverterMapUint64PeerInfo) LowerExternal ¶ added in v0.3.0
func (c FfiConverterMapUint64PeerInfo) LowerExternal(value map[uint64]PeerInfo) ExternalCRustBuffer
type FfiConverterOnPop ¶
type FfiConverterOnPop struct {
// contains filtered or unexported fields
}
type FfiConverterOnPush ¶
type FfiConverterOnPush struct {
// contains filtered or unexported fields
}
type FfiConverterOptionalChangeMeta ¶
type FfiConverterOptionalChangeMeta struct{}
func (FfiConverterOptionalChangeMeta) Lift ¶
func (c FfiConverterOptionalChangeMeta) Lift(rb RustBufferI) *ChangeMeta
func (FfiConverterOptionalChangeMeta) Lower ¶
func (c FfiConverterOptionalChangeMeta) Lower(value *ChangeMeta) C.RustBuffer
func (FfiConverterOptionalChangeMeta) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalChangeMeta) LowerExternal(value *ChangeMeta) ExternalCRustBuffer
func (FfiConverterOptionalChangeMeta) Read ¶
func (_ FfiConverterOptionalChangeMeta) Read(reader io.Reader) *ChangeMeta
func (FfiConverterOptionalChangeMeta) Write ¶
func (_ FfiConverterOptionalChangeMeta) Write(writer io.Writer, value *ChangeMeta)
type FfiConverterOptionalContainerId ¶
type FfiConverterOptionalContainerId struct{}
func (FfiConverterOptionalContainerId) Lift ¶
func (c FfiConverterOptionalContainerId) Lift(rb RustBufferI) *ContainerId
func (FfiConverterOptionalContainerId) Lower ¶
func (c FfiConverterOptionalContainerId) Lower(value *ContainerId) C.RustBuffer
func (FfiConverterOptionalContainerId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalContainerId) LowerExternal(value *ContainerId) ExternalCRustBuffer
func (FfiConverterOptionalContainerId) Read ¶
func (_ FfiConverterOptionalContainerId) Read(reader io.Reader) *ContainerId
func (FfiConverterOptionalContainerId) Write ¶
func (_ FfiConverterOptionalContainerId) Write(writer io.Writer, value *ContainerId)
type FfiConverterOptionalContainerType ¶
type FfiConverterOptionalContainerType struct{}
func (FfiConverterOptionalContainerType) Lift ¶
func (c FfiConverterOptionalContainerType) Lift(rb RustBufferI) *ContainerType
func (FfiConverterOptionalContainerType) Lower ¶
func (c FfiConverterOptionalContainerType) Lower(value *ContainerType) C.RustBuffer
func (FfiConverterOptionalContainerType) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalContainerType) LowerExternal(value *ContainerType) ExternalCRustBuffer
func (FfiConverterOptionalContainerType) Read ¶
func (_ FfiConverterOptionalContainerType) Read(reader io.Reader) *ContainerType
func (FfiConverterOptionalContainerType) Write ¶
func (_ FfiConverterOptionalContainerType) Write(writer io.Writer, value *ContainerType)
type FfiConverterOptionalCounterSpan ¶
type FfiConverterOptionalCounterSpan struct{}
func (FfiConverterOptionalCounterSpan) Lift ¶
func (c FfiConverterOptionalCounterSpan) Lift(rb RustBufferI) *CounterSpan
func (FfiConverterOptionalCounterSpan) Lower ¶
func (c FfiConverterOptionalCounterSpan) Lower(value *CounterSpan) C.RustBuffer
func (FfiConverterOptionalCounterSpan) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalCounterSpan) LowerExternal(value *CounterSpan) ExternalCRustBuffer
func (FfiConverterOptionalCounterSpan) Read ¶
func (_ FfiConverterOptionalCounterSpan) Read(reader io.Reader) *CounterSpan
func (FfiConverterOptionalCounterSpan) Write ¶
func (_ FfiConverterOptionalCounterSpan) Write(writer io.Writer, value *CounterSpan)
type FfiConverterOptionalCursor ¶
type FfiConverterOptionalCursor struct{}
func (FfiConverterOptionalCursor) Lift ¶
func (c FfiConverterOptionalCursor) Lift(rb RustBufferI) **Cursor
func (FfiConverterOptionalCursor) Lower ¶
func (c FfiConverterOptionalCursor) Lower(value **Cursor) C.RustBuffer
func (FfiConverterOptionalCursor) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalCursor) LowerExternal(value **Cursor) ExternalCRustBuffer
type FfiConverterOptionalDiff ¶
type FfiConverterOptionalDiff struct{}
func (FfiConverterOptionalDiff) Lift ¶
func (c FfiConverterOptionalDiff) Lift(rb RustBufferI) *Diff
func (FfiConverterOptionalDiff) Lower ¶
func (c FfiConverterOptionalDiff) Lower(value *Diff) C.RustBuffer
func (FfiConverterOptionalDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalDiff) LowerExternal(value *Diff) ExternalCRustBuffer
type FfiConverterOptionalDiffEvent ¶
type FfiConverterOptionalDiffEvent struct{}
func (FfiConverterOptionalDiffEvent) Lift ¶
func (c FfiConverterOptionalDiffEvent) Lift(rb RustBufferI) *DiffEvent
func (FfiConverterOptionalDiffEvent) Lower ¶
func (c FfiConverterOptionalDiffEvent) Lower(value *DiffEvent) C.RustBuffer
func (FfiConverterOptionalDiffEvent) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalDiffEvent) LowerExternal(value *DiffEvent) ExternalCRustBuffer
type FfiConverterOptionalFloat64 ¶
type FfiConverterOptionalFloat64 struct{}
func (FfiConverterOptionalFloat64) Lift ¶
func (c FfiConverterOptionalFloat64) Lift(rb RustBufferI) *float64
func (FfiConverterOptionalFloat64) Lower ¶
func (c FfiConverterOptionalFloat64) Lower(value *float64) C.RustBuffer
func (FfiConverterOptionalFloat64) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalFloat64) LowerExternal(value *float64) ExternalCRustBuffer
type FfiConverterOptionalFrontiers ¶
type FfiConverterOptionalFrontiers struct{}
func (FfiConverterOptionalFrontiers) Lift ¶
func (c FfiConverterOptionalFrontiers) Lift(rb RustBufferI) **Frontiers
func (FfiConverterOptionalFrontiers) Lower ¶
func (c FfiConverterOptionalFrontiers) Lower(value **Frontiers) C.RustBuffer
func (FfiConverterOptionalFrontiers) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalFrontiers) LowerExternal(value **Frontiers) ExternalCRustBuffer
type FfiConverterOptionalId ¶
type FfiConverterOptionalId struct{}
func (FfiConverterOptionalId) Lift ¶
func (c FfiConverterOptionalId) Lift(rb RustBufferI) *Id
func (FfiConverterOptionalId) Lower ¶
func (c FfiConverterOptionalId) Lower(value *Id) C.RustBuffer
func (FfiConverterOptionalId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalId) LowerExternal(value *Id) ExternalCRustBuffer
type FfiConverterOptionalInt32 ¶
type FfiConverterOptionalInt32 struct{}
func (FfiConverterOptionalInt32) Lift ¶
func (c FfiConverterOptionalInt32) Lift(rb RustBufferI) *int32
func (FfiConverterOptionalInt32) Lower ¶
func (c FfiConverterOptionalInt32) Lower(value *int32) C.RustBuffer
func (FfiConverterOptionalInt32) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalInt32) LowerExternal(value *int32) ExternalCRustBuffer
type FfiConverterOptionalInt64 ¶
type FfiConverterOptionalInt64 struct{}
func (FfiConverterOptionalInt64) Lift ¶
func (c FfiConverterOptionalInt64) Lift(rb RustBufferI) *int64
func (FfiConverterOptionalInt64) Lower ¶
func (c FfiConverterOptionalInt64) Lower(value *int64) C.RustBuffer
func (FfiConverterOptionalInt64) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalInt64) LowerExternal(value *int64) ExternalCRustBuffer
type FfiConverterOptionalLoroCounter ¶
type FfiConverterOptionalLoroCounter struct{}
func (FfiConverterOptionalLoroCounter) Lift ¶
func (c FfiConverterOptionalLoroCounter) Lift(rb RustBufferI) **LoroCounter
func (FfiConverterOptionalLoroCounter) Lower ¶
func (c FfiConverterOptionalLoroCounter) Lower(value **LoroCounter) C.RustBuffer
func (FfiConverterOptionalLoroCounter) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroCounter) LowerExternal(value **LoroCounter) ExternalCRustBuffer
func (FfiConverterOptionalLoroCounter) Read ¶
func (_ FfiConverterOptionalLoroCounter) Read(reader io.Reader) **LoroCounter
func (FfiConverterOptionalLoroCounter) Write ¶
func (_ FfiConverterOptionalLoroCounter) Write(writer io.Writer, value **LoroCounter)
type FfiConverterOptionalLoroDoc ¶
type FfiConverterOptionalLoroDoc struct{}
func (FfiConverterOptionalLoroDoc) Lift ¶
func (c FfiConverterOptionalLoroDoc) Lift(rb RustBufferI) **LoroDoc
func (FfiConverterOptionalLoroDoc) Lower ¶
func (c FfiConverterOptionalLoroDoc) Lower(value **LoroDoc) C.RustBuffer
func (FfiConverterOptionalLoroDoc) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroDoc) LowerExternal(value **LoroDoc) ExternalCRustBuffer
type FfiConverterOptionalLoroList ¶
type FfiConverterOptionalLoroList struct{}
func (FfiConverterOptionalLoroList) Lift ¶
func (c FfiConverterOptionalLoroList) Lift(rb RustBufferI) **LoroList
func (FfiConverterOptionalLoroList) Lower ¶
func (c FfiConverterOptionalLoroList) Lower(value **LoroList) C.RustBuffer
func (FfiConverterOptionalLoroList) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroList) LowerExternal(value **LoroList) ExternalCRustBuffer
type FfiConverterOptionalLoroMap ¶
type FfiConverterOptionalLoroMap struct{}
func (FfiConverterOptionalLoroMap) Lift ¶
func (c FfiConverterOptionalLoroMap) Lift(rb RustBufferI) **LoroMap
func (FfiConverterOptionalLoroMap) Lower ¶
func (c FfiConverterOptionalLoroMap) Lower(value **LoroMap) C.RustBuffer
func (FfiConverterOptionalLoroMap) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroMap) LowerExternal(value **LoroMap) ExternalCRustBuffer
type FfiConverterOptionalLoroMovableList ¶
type FfiConverterOptionalLoroMovableList struct{}
func (FfiConverterOptionalLoroMovableList) Lift ¶
func (c FfiConverterOptionalLoroMovableList) Lift(rb RustBufferI) **LoroMovableList
func (FfiConverterOptionalLoroMovableList) Lower ¶
func (c FfiConverterOptionalLoroMovableList) Lower(value **LoroMovableList) C.RustBuffer
func (FfiConverterOptionalLoroMovableList) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroMovableList) LowerExternal(value **LoroMovableList) ExternalCRustBuffer
func (FfiConverterOptionalLoroMovableList) Read ¶
func (_ FfiConverterOptionalLoroMovableList) Read(reader io.Reader) **LoroMovableList
func (FfiConverterOptionalLoroMovableList) Write ¶
func (_ FfiConverterOptionalLoroMovableList) Write(writer io.Writer, value **LoroMovableList)
type FfiConverterOptionalLoroText ¶
type FfiConverterOptionalLoroText struct{}
func (FfiConverterOptionalLoroText) Lift ¶
func (c FfiConverterOptionalLoroText) Lift(rb RustBufferI) **LoroText
func (FfiConverterOptionalLoroText) Lower ¶
func (c FfiConverterOptionalLoroText) Lower(value **LoroText) C.RustBuffer
func (FfiConverterOptionalLoroText) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroText) LowerExternal(value **LoroText) ExternalCRustBuffer
type FfiConverterOptionalLoroTree ¶
type FfiConverterOptionalLoroTree struct{}
func (FfiConverterOptionalLoroTree) Lift ¶
func (c FfiConverterOptionalLoroTree) Lift(rb RustBufferI) **LoroTree
func (FfiConverterOptionalLoroTree) Lower ¶
func (c FfiConverterOptionalLoroTree) Lower(value **LoroTree) C.RustBuffer
func (FfiConverterOptionalLoroTree) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroTree) LowerExternal(value **LoroTree) ExternalCRustBuffer
type FfiConverterOptionalLoroUnknown ¶
type FfiConverterOptionalLoroUnknown struct{}
func (FfiConverterOptionalLoroUnknown) Lift ¶
func (c FfiConverterOptionalLoroUnknown) Lift(rb RustBufferI) **LoroUnknown
func (FfiConverterOptionalLoroUnknown) Lower ¶
func (c FfiConverterOptionalLoroUnknown) Lower(value **LoroUnknown) C.RustBuffer
func (FfiConverterOptionalLoroUnknown) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroUnknown) LowerExternal(value **LoroUnknown) ExternalCRustBuffer
func (FfiConverterOptionalLoroUnknown) Read ¶
func (_ FfiConverterOptionalLoroUnknown) Read(reader io.Reader) **LoroUnknown
func (FfiConverterOptionalLoroUnknown) Write ¶
func (_ FfiConverterOptionalLoroUnknown) Write(writer io.Writer, value **LoroUnknown)
type FfiConverterOptionalLoroValue ¶
type FfiConverterOptionalLoroValue struct{}
func (FfiConverterOptionalLoroValue) Lift ¶
func (c FfiConverterOptionalLoroValue) Lift(rb RustBufferI) *LoroValue
func (FfiConverterOptionalLoroValue) Lower ¶
func (c FfiConverterOptionalLoroValue) Lower(value *LoroValue) C.RustBuffer
func (FfiConverterOptionalLoroValue) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalLoroValue) LowerExternal(value *LoroValue) ExternalCRustBuffer
type FfiConverterOptionalMapStringLoroValue ¶
type FfiConverterOptionalMapStringLoroValue struct{}
func (FfiConverterOptionalMapStringLoroValue) Lift ¶
func (c FfiConverterOptionalMapStringLoroValue) Lift(rb RustBufferI) *map[string]LoroValue
func (FfiConverterOptionalMapStringLoroValue) Lower ¶
func (c FfiConverterOptionalMapStringLoroValue) Lower(value *map[string]LoroValue) C.RustBuffer
func (FfiConverterOptionalMapStringLoroValue) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalMapStringLoroValue) LowerExternal(value *map[string]LoroValue) ExternalCRustBuffer
type FfiConverterOptionalMapUint64CounterSpan ¶
type FfiConverterOptionalMapUint64CounterSpan struct{}
func (FfiConverterOptionalMapUint64CounterSpan) Lift ¶
func (c FfiConverterOptionalMapUint64CounterSpan) Lift(rb RustBufferI) *map[uint64]CounterSpan
func (FfiConverterOptionalMapUint64CounterSpan) Lower ¶
func (c FfiConverterOptionalMapUint64CounterSpan) Lower(value *map[uint64]CounterSpan) C.RustBuffer
func (FfiConverterOptionalMapUint64CounterSpan) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalMapUint64CounterSpan) LowerExternal(value *map[uint64]CounterSpan) ExternalCRustBuffer
func (FfiConverterOptionalMapUint64CounterSpan) Read ¶
func (_ FfiConverterOptionalMapUint64CounterSpan) Read(reader io.Reader) *map[uint64]CounterSpan
func (FfiConverterOptionalMapUint64CounterSpan) Write ¶
func (_ FfiConverterOptionalMapUint64CounterSpan) Write(writer io.Writer, value *map[uint64]CounterSpan)
type FfiConverterOptionalOnPop ¶
type FfiConverterOptionalOnPop struct{}
func (FfiConverterOptionalOnPop) Lift ¶
func (c FfiConverterOptionalOnPop) Lift(rb RustBufferI) *OnPop
func (FfiConverterOptionalOnPop) Lower ¶
func (c FfiConverterOptionalOnPop) Lower(value *OnPop) C.RustBuffer
func (FfiConverterOptionalOnPop) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalOnPop) LowerExternal(value *OnPop) ExternalCRustBuffer
type FfiConverterOptionalOnPush ¶
type FfiConverterOptionalOnPush struct{}
func (FfiConverterOptionalOnPush) Lift ¶
func (c FfiConverterOptionalOnPush) Lift(rb RustBufferI) *OnPush
func (FfiConverterOptionalOnPush) Lower ¶
func (c FfiConverterOptionalOnPush) Lower(value *OnPush) C.RustBuffer
func (FfiConverterOptionalOnPush) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalOnPush) LowerExternal(value *OnPush) ExternalCRustBuffer
type FfiConverterOptionalOrdering ¶
type FfiConverterOptionalOrdering struct{}
func (FfiConverterOptionalOrdering) Lift ¶
func (c FfiConverterOptionalOrdering) Lift(rb RustBufferI) *Ordering
func (FfiConverterOptionalOrdering) Lower ¶
func (c FfiConverterOptionalOrdering) Lower(value *Ordering) C.RustBuffer
func (FfiConverterOptionalOrdering) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalOrdering) LowerExternal(value *Ordering) ExternalCRustBuffer
type FfiConverterOptionalSequenceContainerPath ¶
type FfiConverterOptionalSequenceContainerPath struct{}
func (FfiConverterOptionalSequenceContainerPath) Lift ¶
func (c FfiConverterOptionalSequenceContainerPath) Lift(rb RustBufferI) *[]ContainerPath
func (FfiConverterOptionalSequenceContainerPath) Lower ¶
func (c FfiConverterOptionalSequenceContainerPath) Lower(value *[]ContainerPath) C.RustBuffer
func (FfiConverterOptionalSequenceContainerPath) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalSequenceContainerPath) LowerExternal(value *[]ContainerPath) ExternalCRustBuffer
func (FfiConverterOptionalSequenceContainerPath) Read ¶
func (_ FfiConverterOptionalSequenceContainerPath) Read(reader io.Reader) *[]ContainerPath
func (FfiConverterOptionalSequenceContainerPath) Write ¶
func (_ FfiConverterOptionalSequenceContainerPath) Write(writer io.Writer, value *[]ContainerPath)
type FfiConverterOptionalSequenceTreeId ¶
type FfiConverterOptionalSequenceTreeId struct{}
func (FfiConverterOptionalSequenceTreeId) Lift ¶
func (c FfiConverterOptionalSequenceTreeId) Lift(rb RustBufferI) *[]TreeId
func (FfiConverterOptionalSequenceTreeId) Lower ¶
func (c FfiConverterOptionalSequenceTreeId) Lower(value *[]TreeId) C.RustBuffer
func (FfiConverterOptionalSequenceTreeId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalSequenceTreeId) LowerExternal(value *[]TreeId) ExternalCRustBuffer
type FfiConverterOptionalString ¶
type FfiConverterOptionalString struct{}
func (FfiConverterOptionalString) Lift ¶
func (c FfiConverterOptionalString) Lift(rb RustBufferI) *string
func (FfiConverterOptionalString) Lower ¶
func (c FfiConverterOptionalString) Lower(value *string) C.RustBuffer
func (FfiConverterOptionalString) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalString) LowerExternal(value *string) ExternalCRustBuffer
type FfiConverterOptionalStyleConfig ¶
type FfiConverterOptionalStyleConfig struct{}
func (FfiConverterOptionalStyleConfig) Lift ¶
func (c FfiConverterOptionalStyleConfig) Lift(rb RustBufferI) *StyleConfig
func (FfiConverterOptionalStyleConfig) Lower ¶
func (c FfiConverterOptionalStyleConfig) Lower(value *StyleConfig) C.RustBuffer
func (FfiConverterOptionalStyleConfig) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalStyleConfig) LowerExternal(value *StyleConfig) ExternalCRustBuffer
func (FfiConverterOptionalStyleConfig) Read ¶
func (_ FfiConverterOptionalStyleConfig) Read(reader io.Reader) *StyleConfig
func (FfiConverterOptionalStyleConfig) Write ¶
func (_ FfiConverterOptionalStyleConfig) Write(writer io.Writer, value *StyleConfig)
type FfiConverterOptionalSubscription ¶
type FfiConverterOptionalSubscription struct{}
func (FfiConverterOptionalSubscription) Lift ¶
func (c FfiConverterOptionalSubscription) Lift(rb RustBufferI) **Subscription
func (FfiConverterOptionalSubscription) Lower ¶
func (c FfiConverterOptionalSubscription) Lower(value **Subscription) C.RustBuffer
func (FfiConverterOptionalSubscription) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalSubscription) LowerExternal(value **Subscription) ExternalCRustBuffer
func (FfiConverterOptionalSubscription) Read ¶
func (_ FfiConverterOptionalSubscription) Read(reader io.Reader) **Subscription
func (FfiConverterOptionalSubscription) Write ¶
func (_ FfiConverterOptionalSubscription) Write(writer io.Writer, value **Subscription)
type FfiConverterOptionalUint32 ¶
type FfiConverterOptionalUint32 struct{}
func (FfiConverterOptionalUint32) Lift ¶
func (c FfiConverterOptionalUint32) Lift(rb RustBufferI) *uint32
func (FfiConverterOptionalUint32) Lower ¶
func (c FfiConverterOptionalUint32) Lower(value *uint32) C.RustBuffer
func (FfiConverterOptionalUint32) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalUint32) LowerExternal(value *uint32) ExternalCRustBuffer
type FfiConverterOptionalUint64 ¶
type FfiConverterOptionalUint64 struct{}
func (FfiConverterOptionalUint64) Lift ¶
func (c FfiConverterOptionalUint64) Lift(rb RustBufferI) *uint64
func (FfiConverterOptionalUint64) Lower ¶
func (c FfiConverterOptionalUint64) Lower(value *uint64) C.RustBuffer
func (FfiConverterOptionalUint64) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalUint64) LowerExternal(value *uint64) ExternalCRustBuffer
type FfiConverterOptionalUndoItemMeta ¶
type FfiConverterOptionalUndoItemMeta struct{}
func (FfiConverterOptionalUndoItemMeta) Lift ¶
func (c FfiConverterOptionalUndoItemMeta) Lift(rb RustBufferI) *UndoItemMeta
func (FfiConverterOptionalUndoItemMeta) Lower ¶
func (c FfiConverterOptionalUndoItemMeta) Lower(value *UndoItemMeta) C.RustBuffer
func (FfiConverterOptionalUndoItemMeta) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalUndoItemMeta) LowerExternal(value *UndoItemMeta) ExternalCRustBuffer
func (FfiConverterOptionalUndoItemMeta) Read ¶
func (_ FfiConverterOptionalUndoItemMeta) Read(reader io.Reader) *UndoItemMeta
func (FfiConverterOptionalUndoItemMeta) Write ¶
func (_ FfiConverterOptionalUndoItemMeta) Write(writer io.Writer, value *UndoItemMeta)
type FfiConverterOptionalValueOrContainer ¶
type FfiConverterOptionalValueOrContainer struct{}
func (FfiConverterOptionalValueOrContainer) Lift ¶
func (c FfiConverterOptionalValueOrContainer) Lift(rb RustBufferI) **ValueOrContainer
func (FfiConverterOptionalValueOrContainer) Lower ¶
func (c FfiConverterOptionalValueOrContainer) Lower(value **ValueOrContainer) C.RustBuffer
func (FfiConverterOptionalValueOrContainer) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalValueOrContainer) LowerExternal(value **ValueOrContainer) ExternalCRustBuffer
func (FfiConverterOptionalValueOrContainer) Read ¶
func (_ FfiConverterOptionalValueOrContainer) Read(reader io.Reader) **ValueOrContainer
func (FfiConverterOptionalValueOrContainer) Write ¶
func (_ FfiConverterOptionalValueOrContainer) Write(writer io.Writer, value **ValueOrContainer)
type FfiConverterOptionalVersionVector ¶
type FfiConverterOptionalVersionVector struct{}
func (FfiConverterOptionalVersionVector) Lift ¶
func (c FfiConverterOptionalVersionVector) Lift(rb RustBufferI) **VersionVector
func (FfiConverterOptionalVersionVector) Lower ¶
func (c FfiConverterOptionalVersionVector) Lower(value **VersionVector) C.RustBuffer
func (FfiConverterOptionalVersionVector) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOptionalVersionVector) LowerExternal(value **VersionVector) ExternalCRustBuffer
func (FfiConverterOptionalVersionVector) Read ¶
func (_ FfiConverterOptionalVersionVector) Read(reader io.Reader) **VersionVector
func (FfiConverterOptionalVersionVector) Write ¶
func (_ FfiConverterOptionalVersionVector) Write(writer io.Writer, value **VersionVector)
type FfiConverterOrdering ¶
type FfiConverterOrdering struct{}
func (FfiConverterOrdering) Lift ¶
func (c FfiConverterOrdering) Lift(rb RustBufferI) Ordering
func (FfiConverterOrdering) Lower ¶
func (c FfiConverterOrdering) Lower(value Ordering) C.RustBuffer
func (FfiConverterOrdering) LowerExternal ¶ added in v0.3.0
func (c FfiConverterOrdering) LowerExternal(value Ordering) ExternalCRustBuffer
type FfiConverterPathItem ¶
type FfiConverterPathItem struct{}
func (FfiConverterPathItem) Lift ¶
func (c FfiConverterPathItem) Lift(rb RustBufferI) PathItem
func (FfiConverterPathItem) Lower ¶
func (c FfiConverterPathItem) Lower(value PathItem) C.RustBuffer
func (FfiConverterPathItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterPathItem) LowerExternal(value PathItem) ExternalCRustBuffer
type FfiConverterPeerInfo ¶
type FfiConverterPeerInfo struct{}
func (FfiConverterPeerInfo) Lift ¶
func (c FfiConverterPeerInfo) Lift(rb RustBufferI) PeerInfo
func (FfiConverterPeerInfo) Lower ¶
func (c FfiConverterPeerInfo) Lower(value PeerInfo) C.RustBuffer
func (FfiConverterPeerInfo) LowerExternal ¶ added in v0.3.0
func (c FfiConverterPeerInfo) LowerExternal(value PeerInfo) ExternalCRustBuffer
type FfiConverterPosQueryResult ¶
type FfiConverterPosQueryResult struct{}
func (FfiConverterPosQueryResult) Lift ¶
func (c FfiConverterPosQueryResult) Lift(rb RustBufferI) PosQueryResult
func (FfiConverterPosQueryResult) Lower ¶
func (c FfiConverterPosQueryResult) Lower(value PosQueryResult) C.RustBuffer
func (FfiConverterPosQueryResult) LowerExternal ¶ added in v0.3.0
func (c FfiConverterPosQueryResult) LowerExternal(value PosQueryResult) ExternalCRustBuffer
func (FfiConverterPosQueryResult) Read ¶
func (c FfiConverterPosQueryResult) Read(reader io.Reader) PosQueryResult
func (FfiConverterPosQueryResult) Write ¶
func (c FfiConverterPosQueryResult) Write(writer io.Writer, value PosQueryResult)
type FfiConverterPosType ¶ added in v0.2.0
type FfiConverterPosType struct{}
func (FfiConverterPosType) Lift ¶ added in v0.2.0
func (c FfiConverterPosType) Lift(rb RustBufferI) PosType
func (FfiConverterPosType) Lower ¶ added in v0.2.0
func (c FfiConverterPosType) Lower(value PosType) C.RustBuffer
func (FfiConverterPosType) LowerExternal ¶ added in v0.3.0
func (c FfiConverterPosType) LowerExternal(value PosType) ExternalCRustBuffer
type FfiConverterPreCommitCallback ¶
type FfiConverterPreCommitCallback struct {
// contains filtered or unexported fields
}
func (FfiConverterPreCommitCallback) Lift ¶
func (c FfiConverterPreCommitCallback) Lift(handle C.uint64_t) PreCommitCallback
func (FfiConverterPreCommitCallback) Lower ¶
func (c FfiConverterPreCommitCallback) Lower(value PreCommitCallback) C.uint64_t
func (FfiConverterPreCommitCallback) Read ¶
func (c FfiConverterPreCommitCallback) Read(reader io.Reader) PreCommitCallback
func (FfiConverterPreCommitCallback) Write ¶
func (c FfiConverterPreCommitCallback) Write(writer io.Writer, value PreCommitCallback)
type FfiConverterPreCommitCallbackPayload ¶
type FfiConverterPreCommitCallbackPayload struct{}
func (FfiConverterPreCommitCallbackPayload) Lift ¶
func (c FfiConverterPreCommitCallbackPayload) Lift(rb RustBufferI) PreCommitCallbackPayload
func (FfiConverterPreCommitCallbackPayload) Lower ¶
func (c FfiConverterPreCommitCallbackPayload) Lower(value PreCommitCallbackPayload) C.RustBuffer
func (FfiConverterPreCommitCallbackPayload) LowerExternal ¶ added in v0.3.0
func (c FfiConverterPreCommitCallbackPayload) LowerExternal(value PreCommitCallbackPayload) ExternalCRustBuffer
func (FfiConverterPreCommitCallbackPayload) Read ¶
func (c FfiConverterPreCommitCallbackPayload) Read(reader io.Reader) PreCommitCallbackPayload
func (FfiConverterPreCommitCallbackPayload) Write ¶
func (c FfiConverterPreCommitCallbackPayload) Write(writer io.Writer, value PreCommitCallbackPayload)
type FfiConverterSequenceBytes ¶
type FfiConverterSequenceBytes struct{}
func (FfiConverterSequenceBytes) Lift ¶
func (c FfiConverterSequenceBytes) Lift(rb RustBufferI) [][]byte
func (FfiConverterSequenceBytes) Lower ¶
func (c FfiConverterSequenceBytes) Lower(value [][]byte) C.RustBuffer
func (FfiConverterSequenceBytes) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceBytes) LowerExternal(value [][]byte) ExternalCRustBuffer
type FfiConverterSequenceContainerDiff ¶
type FfiConverterSequenceContainerDiff struct{}
func (FfiConverterSequenceContainerDiff) Lift ¶
func (c FfiConverterSequenceContainerDiff) Lift(rb RustBufferI) []ContainerDiff
func (FfiConverterSequenceContainerDiff) Lower ¶
func (c FfiConverterSequenceContainerDiff) Lower(value []ContainerDiff) C.RustBuffer
func (FfiConverterSequenceContainerDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceContainerDiff) LowerExternal(value []ContainerDiff) ExternalCRustBuffer
func (FfiConverterSequenceContainerDiff) Read ¶
func (c FfiConverterSequenceContainerDiff) Read(reader io.Reader) []ContainerDiff
func (FfiConverterSequenceContainerDiff) Write ¶
func (c FfiConverterSequenceContainerDiff) Write(writer io.Writer, value []ContainerDiff)
type FfiConverterSequenceContainerId ¶
type FfiConverterSequenceContainerId struct{}
func (FfiConverterSequenceContainerId) Lift ¶
func (c FfiConverterSequenceContainerId) Lift(rb RustBufferI) []ContainerId
func (FfiConverterSequenceContainerId) Lower ¶
func (c FfiConverterSequenceContainerId) Lower(value []ContainerId) C.RustBuffer
func (FfiConverterSequenceContainerId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceContainerId) LowerExternal(value []ContainerId) ExternalCRustBuffer
func (FfiConverterSequenceContainerId) Read ¶
func (c FfiConverterSequenceContainerId) Read(reader io.Reader) []ContainerId
func (FfiConverterSequenceContainerId) Write ¶
func (c FfiConverterSequenceContainerId) Write(writer io.Writer, value []ContainerId)
type FfiConverterSequenceContainerIdAndDiff ¶
type FfiConverterSequenceContainerIdAndDiff struct{}
func (FfiConverterSequenceContainerIdAndDiff) Lift ¶
func (c FfiConverterSequenceContainerIdAndDiff) Lift(rb RustBufferI) []ContainerIdAndDiff
func (FfiConverterSequenceContainerIdAndDiff) Lower ¶
func (c FfiConverterSequenceContainerIdAndDiff) Lower(value []ContainerIdAndDiff) C.RustBuffer
func (FfiConverterSequenceContainerIdAndDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceContainerIdAndDiff) LowerExternal(value []ContainerIdAndDiff) ExternalCRustBuffer
func (FfiConverterSequenceContainerIdAndDiff) Read ¶
func (c FfiConverterSequenceContainerIdAndDiff) Read(reader io.Reader) []ContainerIdAndDiff
func (FfiConverterSequenceContainerIdAndDiff) Write ¶
func (c FfiConverterSequenceContainerIdAndDiff) Write(writer io.Writer, value []ContainerIdAndDiff)
type FfiConverterSequenceContainerPath ¶
type FfiConverterSequenceContainerPath struct{}
func (FfiConverterSequenceContainerPath) Lift ¶
func (c FfiConverterSequenceContainerPath) Lift(rb RustBufferI) []ContainerPath
func (FfiConverterSequenceContainerPath) Lower ¶
func (c FfiConverterSequenceContainerPath) Lower(value []ContainerPath) C.RustBuffer
func (FfiConverterSequenceContainerPath) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceContainerPath) LowerExternal(value []ContainerPath) ExternalCRustBuffer
func (FfiConverterSequenceContainerPath) Read ¶
func (c FfiConverterSequenceContainerPath) Read(reader io.Reader) []ContainerPath
func (FfiConverterSequenceContainerPath) Write ¶
func (c FfiConverterSequenceContainerPath) Write(writer io.Writer, value []ContainerPath)
type FfiConverterSequenceCursorWithPos ¶
type FfiConverterSequenceCursorWithPos struct{}
func (FfiConverterSequenceCursorWithPos) Lift ¶
func (c FfiConverterSequenceCursorWithPos) Lift(rb RustBufferI) []CursorWithPos
func (FfiConverterSequenceCursorWithPos) Lower ¶
func (c FfiConverterSequenceCursorWithPos) Lower(value []CursorWithPos) C.RustBuffer
func (FfiConverterSequenceCursorWithPos) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceCursorWithPos) LowerExternal(value []CursorWithPos) ExternalCRustBuffer
func (FfiConverterSequenceCursorWithPos) Read ¶
func (c FfiConverterSequenceCursorWithPos) Read(reader io.Reader) []CursorWithPos
func (FfiConverterSequenceCursorWithPos) Write ¶
func (c FfiConverterSequenceCursorWithPos) Write(writer io.Writer, value []CursorWithPos)
type FfiConverterSequenceId ¶
type FfiConverterSequenceId struct{}
func (FfiConverterSequenceId) Lift ¶
func (c FfiConverterSequenceId) Lift(rb RustBufferI) []Id
func (FfiConverterSequenceId) Lower ¶
func (c FfiConverterSequenceId) Lower(value []Id) C.RustBuffer
func (FfiConverterSequenceId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceId) LowerExternal(value []Id) ExternalCRustBuffer
type FfiConverterSequenceIdSpan ¶
type FfiConverterSequenceIdSpan struct{}
func (FfiConverterSequenceIdSpan) Lift ¶
func (c FfiConverterSequenceIdSpan) Lift(rb RustBufferI) []IdSpan
func (FfiConverterSequenceIdSpan) Lower ¶
func (c FfiConverterSequenceIdSpan) Lower(value []IdSpan) C.RustBuffer
func (FfiConverterSequenceIdSpan) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceIdSpan) LowerExternal(value []IdSpan) ExternalCRustBuffer
type FfiConverterSequenceIndex ¶
type FfiConverterSequenceIndex struct{}
func (FfiConverterSequenceIndex) Lift ¶
func (c FfiConverterSequenceIndex) Lift(rb RustBufferI) []Index
func (FfiConverterSequenceIndex) Lower ¶
func (c FfiConverterSequenceIndex) Lower(value []Index) C.RustBuffer
func (FfiConverterSequenceIndex) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceIndex) LowerExternal(value []Index) ExternalCRustBuffer
type FfiConverterSequenceListDiffItem ¶
type FfiConverterSequenceListDiffItem struct{}
func (FfiConverterSequenceListDiffItem) Lift ¶
func (c FfiConverterSequenceListDiffItem) Lift(rb RustBufferI) []ListDiffItem
func (FfiConverterSequenceListDiffItem) Lower ¶
func (c FfiConverterSequenceListDiffItem) Lower(value []ListDiffItem) C.RustBuffer
func (FfiConverterSequenceListDiffItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceListDiffItem) LowerExternal(value []ListDiffItem) ExternalCRustBuffer
func (FfiConverterSequenceListDiffItem) Read ¶
func (c FfiConverterSequenceListDiffItem) Read(reader io.Reader) []ListDiffItem
func (FfiConverterSequenceListDiffItem) Write ¶
func (c FfiConverterSequenceListDiffItem) Write(writer io.Writer, value []ListDiffItem)
type FfiConverterSequenceLoroValue ¶
type FfiConverterSequenceLoroValue struct{}
func (FfiConverterSequenceLoroValue) Lift ¶
func (c FfiConverterSequenceLoroValue) Lift(rb RustBufferI) []LoroValue
func (FfiConverterSequenceLoroValue) Lower ¶
func (c FfiConverterSequenceLoroValue) Lower(value []LoroValue) C.RustBuffer
func (FfiConverterSequenceLoroValue) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceLoroValue) LowerExternal(value []LoroValue) ExternalCRustBuffer
type FfiConverterSequencePathItem ¶
type FfiConverterSequencePathItem struct{}
func (FfiConverterSequencePathItem) Lift ¶
func (c FfiConverterSequencePathItem) Lift(rb RustBufferI) []PathItem
func (FfiConverterSequencePathItem) Lower ¶
func (c FfiConverterSequencePathItem) Lower(value []PathItem) C.RustBuffer
func (FfiConverterSequencePathItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequencePathItem) LowerExternal(value []PathItem) ExternalCRustBuffer
type FfiConverterSequenceString ¶
type FfiConverterSequenceString struct{}
func (FfiConverterSequenceString) Lift ¶
func (c FfiConverterSequenceString) Lift(rb RustBufferI) []string
func (FfiConverterSequenceString) Lower ¶
func (c FfiConverterSequenceString) Lower(value []string) C.RustBuffer
func (FfiConverterSequenceString) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceString) LowerExternal(value []string) ExternalCRustBuffer
type FfiConverterSequenceTextDelta ¶
type FfiConverterSequenceTextDelta struct{}
func (FfiConverterSequenceTextDelta) Lift ¶
func (c FfiConverterSequenceTextDelta) Lift(rb RustBufferI) []TextDelta
func (FfiConverterSequenceTextDelta) Lower ¶
func (c FfiConverterSequenceTextDelta) Lower(value []TextDelta) C.RustBuffer
func (FfiConverterSequenceTextDelta) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceTextDelta) LowerExternal(value []TextDelta) ExternalCRustBuffer
type FfiConverterSequenceTreeDiffItem ¶
type FfiConverterSequenceTreeDiffItem struct{}
func (FfiConverterSequenceTreeDiffItem) Lift ¶
func (c FfiConverterSequenceTreeDiffItem) Lift(rb RustBufferI) []TreeDiffItem
func (FfiConverterSequenceTreeDiffItem) Lower ¶
func (c FfiConverterSequenceTreeDiffItem) Lower(value []TreeDiffItem) C.RustBuffer
func (FfiConverterSequenceTreeDiffItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceTreeDiffItem) LowerExternal(value []TreeDiffItem) ExternalCRustBuffer
func (FfiConverterSequenceTreeDiffItem) Read ¶
func (c FfiConverterSequenceTreeDiffItem) Read(reader io.Reader) []TreeDiffItem
func (FfiConverterSequenceTreeDiffItem) Write ¶
func (c FfiConverterSequenceTreeDiffItem) Write(writer io.Writer, value []TreeDiffItem)
type FfiConverterSequenceTreeId ¶
type FfiConverterSequenceTreeId struct{}
func (FfiConverterSequenceTreeId) Lift ¶
func (c FfiConverterSequenceTreeId) Lift(rb RustBufferI) []TreeId
func (FfiConverterSequenceTreeId) Lower ¶
func (c FfiConverterSequenceTreeId) Lower(value []TreeId) C.RustBuffer
func (FfiConverterSequenceTreeId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceTreeId) LowerExternal(value []TreeId) ExternalCRustBuffer
type FfiConverterSequenceUint64 ¶
type FfiConverterSequenceUint64 struct{}
func (FfiConverterSequenceUint64) Lift ¶
func (c FfiConverterSequenceUint64) Lift(rb RustBufferI) []uint64
func (FfiConverterSequenceUint64) Lower ¶
func (c FfiConverterSequenceUint64) Lower(value []uint64) C.RustBuffer
func (FfiConverterSequenceUint64) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceUint64) LowerExternal(value []uint64) ExternalCRustBuffer
type FfiConverterSequenceValueOrContainer ¶
type FfiConverterSequenceValueOrContainer struct{}
func (FfiConverterSequenceValueOrContainer) Lift ¶
func (c FfiConverterSequenceValueOrContainer) Lift(rb RustBufferI) []*ValueOrContainer
func (FfiConverterSequenceValueOrContainer) Lower ¶
func (c FfiConverterSequenceValueOrContainer) Lower(value []*ValueOrContainer) C.RustBuffer
func (FfiConverterSequenceValueOrContainer) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceValueOrContainer) LowerExternal(value []*ValueOrContainer) ExternalCRustBuffer
func (FfiConverterSequenceValueOrContainer) Read ¶
func (c FfiConverterSequenceValueOrContainer) Read(reader io.Reader) []*ValueOrContainer
func (FfiConverterSequenceValueOrContainer) Write ¶
func (c FfiConverterSequenceValueOrContainer) Write(writer io.Writer, value []*ValueOrContainer)
type FfiConverterSequenceVersionRangeItem ¶
type FfiConverterSequenceVersionRangeItem struct{}
func (FfiConverterSequenceVersionRangeItem) Lift ¶
func (c FfiConverterSequenceVersionRangeItem) Lift(rb RustBufferI) []VersionRangeItem
func (FfiConverterSequenceVersionRangeItem) Lower ¶
func (c FfiConverterSequenceVersionRangeItem) Lower(value []VersionRangeItem) C.RustBuffer
func (FfiConverterSequenceVersionRangeItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSequenceVersionRangeItem) LowerExternal(value []VersionRangeItem) ExternalCRustBuffer
func (FfiConverterSequenceVersionRangeItem) Read ¶
func (c FfiConverterSequenceVersionRangeItem) Read(reader io.Reader) []VersionRangeItem
func (FfiConverterSequenceVersionRangeItem) Write ¶
func (c FfiConverterSequenceVersionRangeItem) Write(writer io.Writer, value []VersionRangeItem)
type FfiConverterSide ¶
type FfiConverterSide struct{}
func (FfiConverterSide) Lift ¶
func (c FfiConverterSide) Lift(rb RustBufferI) Side
func (FfiConverterSide) Lower ¶
func (c FfiConverterSide) Lower(value Side) C.RustBuffer
func (FfiConverterSide) LowerExternal ¶ added in v0.3.0
func (c FfiConverterSide) LowerExternal(value Side) ExternalCRustBuffer
type FfiConverterString ¶
type FfiConverterString struct{}
func (FfiConverterString) Lift ¶
func (FfiConverterString) Lift(rb RustBufferI) string
func (FfiConverterString) Lower ¶
func (FfiConverterString) Lower(value string) C.RustBuffer
func (FfiConverterString) LowerExternal ¶ added in v0.3.0
func (c FfiConverterString) LowerExternal(value string) ExternalCRustBuffer
type FfiConverterStyleConfig ¶
type FfiConverterStyleConfig struct{}
func (FfiConverterStyleConfig) Lift ¶
func (c FfiConverterStyleConfig) Lift(rb RustBufferI) StyleConfig
func (FfiConverterStyleConfig) Lower ¶
func (c FfiConverterStyleConfig) Lower(value StyleConfig) C.RustBuffer
func (FfiConverterStyleConfig) LowerExternal ¶ added in v0.3.0
func (c FfiConverterStyleConfig) LowerExternal(value StyleConfig) ExternalCRustBuffer
func (FfiConverterStyleConfig) Read ¶
func (c FfiConverterStyleConfig) Read(reader io.Reader) StyleConfig
func (FfiConverterStyleConfig) Write ¶
func (c FfiConverterStyleConfig) Write(writer io.Writer, value StyleConfig)
type FfiConverterStyleConfigMap ¶
type FfiConverterStyleConfigMap struct{}
func (FfiConverterStyleConfigMap) Lift ¶
func (c FfiConverterStyleConfigMap) Lift(handle C.uint64_t) *StyleConfigMap
func (FfiConverterStyleConfigMap) Lower ¶
func (c FfiConverterStyleConfigMap) Lower(value *StyleConfigMap) C.uint64_t
func (FfiConverterStyleConfigMap) Read ¶
func (c FfiConverterStyleConfigMap) Read(reader io.Reader) *StyleConfigMap
func (FfiConverterStyleConfigMap) Write ¶
func (c FfiConverterStyleConfigMap) Write(writer io.Writer, value *StyleConfigMap)
type FfiConverterSubscriber ¶
type FfiConverterSubscriber struct {
// contains filtered or unexported fields
}
func (FfiConverterSubscriber) Lift ¶
func (c FfiConverterSubscriber) Lift(handle C.uint64_t) Subscriber
func (FfiConverterSubscriber) Lower ¶
func (c FfiConverterSubscriber) Lower(value Subscriber) C.uint64_t
func (FfiConverterSubscriber) Read ¶
func (c FfiConverterSubscriber) Read(reader io.Reader) Subscriber
func (FfiConverterSubscriber) Write ¶
func (c FfiConverterSubscriber) Write(writer io.Writer, value Subscriber)
type FfiConverterSubscription ¶
type FfiConverterSubscription struct{}
func (FfiConverterSubscription) Lift ¶
func (c FfiConverterSubscription) Lift(handle C.uint64_t) *Subscription
func (FfiConverterSubscription) Lower ¶
func (c FfiConverterSubscription) Lower(value *Subscription) C.uint64_t
func (FfiConverterSubscription) Read ¶
func (c FfiConverterSubscription) Read(reader io.Reader) *Subscription
func (FfiConverterSubscription) Write ¶
func (c FfiConverterSubscription) Write(writer io.Writer, value *Subscription)
type FfiConverterTextDelta ¶
type FfiConverterTextDelta struct{}
func (FfiConverterTextDelta) Lift ¶
func (c FfiConverterTextDelta) Lift(rb RustBufferI) TextDelta
func (FfiConverterTextDelta) Lower ¶
func (c FfiConverterTextDelta) Lower(value TextDelta) C.RustBuffer
func (FfiConverterTextDelta) LowerExternal ¶ added in v0.3.0
func (c FfiConverterTextDelta) LowerExternal(value TextDelta) ExternalCRustBuffer
type FfiConverterTreeDiff ¶
type FfiConverterTreeDiff struct{}
func (FfiConverterTreeDiff) Lift ¶
func (c FfiConverterTreeDiff) Lift(rb RustBufferI) TreeDiff
func (FfiConverterTreeDiff) Lower ¶
func (c FfiConverterTreeDiff) Lower(value TreeDiff) C.RustBuffer
func (FfiConverterTreeDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterTreeDiff) LowerExternal(value TreeDiff) ExternalCRustBuffer
type FfiConverterTreeDiffItem ¶
type FfiConverterTreeDiffItem struct{}
func (FfiConverterTreeDiffItem) Lift ¶
func (c FfiConverterTreeDiffItem) Lift(rb RustBufferI) TreeDiffItem
func (FfiConverterTreeDiffItem) Lower ¶
func (c FfiConverterTreeDiffItem) Lower(value TreeDiffItem) C.RustBuffer
func (FfiConverterTreeDiffItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterTreeDiffItem) LowerExternal(value TreeDiffItem) ExternalCRustBuffer
func (FfiConverterTreeDiffItem) Read ¶
func (c FfiConverterTreeDiffItem) Read(reader io.Reader) TreeDiffItem
func (FfiConverterTreeDiffItem) Write ¶
func (c FfiConverterTreeDiffItem) Write(writer io.Writer, value TreeDiffItem)
type FfiConverterTreeExternalDiff ¶
type FfiConverterTreeExternalDiff struct{}
func (FfiConverterTreeExternalDiff) Lift ¶
func (c FfiConverterTreeExternalDiff) Lift(rb RustBufferI) TreeExternalDiff
func (FfiConverterTreeExternalDiff) Lower ¶
func (c FfiConverterTreeExternalDiff) Lower(value TreeExternalDiff) C.RustBuffer
func (FfiConverterTreeExternalDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterTreeExternalDiff) LowerExternal(value TreeExternalDiff) ExternalCRustBuffer
func (FfiConverterTreeExternalDiff) Read ¶
func (FfiConverterTreeExternalDiff) Read(reader io.Reader) TreeExternalDiff
func (FfiConverterTreeExternalDiff) Write ¶
func (FfiConverterTreeExternalDiff) Write(writer io.Writer, value TreeExternalDiff)
type FfiConverterTreeId ¶
type FfiConverterTreeId struct{}
func (FfiConverterTreeId) Lift ¶
func (c FfiConverterTreeId) Lift(rb RustBufferI) TreeId
func (FfiConverterTreeId) Lower ¶
func (c FfiConverterTreeId) Lower(value TreeId) C.RustBuffer
func (FfiConverterTreeId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterTreeId) LowerExternal(value TreeId) ExternalCRustBuffer
type FfiConverterTreeParentId ¶
type FfiConverterTreeParentId struct{}
func (FfiConverterTreeParentId) Lift ¶
func (c FfiConverterTreeParentId) Lift(rb RustBufferI) TreeParentId
func (FfiConverterTreeParentId) Lower ¶
func (c FfiConverterTreeParentId) Lower(value TreeParentId) C.RustBuffer
func (FfiConverterTreeParentId) LowerExternal ¶ added in v0.3.0
func (c FfiConverterTreeParentId) LowerExternal(value TreeParentId) ExternalCRustBuffer
func (FfiConverterTreeParentId) Read ¶
func (FfiConverterTreeParentId) Read(reader io.Reader) TreeParentId
func (FfiConverterTreeParentId) Write ¶
func (FfiConverterTreeParentId) Write(writer io.Writer, value TreeParentId)
type FfiConverterUint8 ¶
type FfiConverterUint8 struct{}
type FfiConverterUint32 ¶
type FfiConverterUint32 struct{}
type FfiConverterUint64 ¶
type FfiConverterUint64 struct{}
type FfiConverterUndoItemMeta ¶
type FfiConverterUndoItemMeta struct{}
func (FfiConverterUndoItemMeta) Lift ¶
func (c FfiConverterUndoItemMeta) Lift(rb RustBufferI) UndoItemMeta
func (FfiConverterUndoItemMeta) Lower ¶
func (c FfiConverterUndoItemMeta) Lower(value UndoItemMeta) C.RustBuffer
func (FfiConverterUndoItemMeta) LowerExternal ¶ added in v0.3.0
func (c FfiConverterUndoItemMeta) LowerExternal(value UndoItemMeta) ExternalCRustBuffer
func (FfiConverterUndoItemMeta) Read ¶
func (c FfiConverterUndoItemMeta) Read(reader io.Reader) UndoItemMeta
func (FfiConverterUndoItemMeta) Write ¶
func (c FfiConverterUndoItemMeta) Write(writer io.Writer, value UndoItemMeta)
type FfiConverterUndoManager ¶
type FfiConverterUndoManager struct{}
func (FfiConverterUndoManager) Lift ¶
func (c FfiConverterUndoManager) Lift(handle C.uint64_t) *UndoManager
func (FfiConverterUndoManager) Lower ¶
func (c FfiConverterUndoManager) Lower(value *UndoManager) C.uint64_t
func (FfiConverterUndoManager) Read ¶
func (c FfiConverterUndoManager) Read(reader io.Reader) *UndoManager
func (FfiConverterUndoManager) Write ¶
func (c FfiConverterUndoManager) Write(writer io.Writer, value *UndoManager)
type FfiConverterUndoOrRedo ¶
type FfiConverterUndoOrRedo struct{}
func (FfiConverterUndoOrRedo) Lift ¶
func (c FfiConverterUndoOrRedo) Lift(rb RustBufferI) UndoOrRedo
func (FfiConverterUndoOrRedo) Lower ¶
func (c FfiConverterUndoOrRedo) Lower(value UndoOrRedo) C.RustBuffer
func (FfiConverterUndoOrRedo) LowerExternal ¶ added in v0.3.0
func (c FfiConverterUndoOrRedo) LowerExternal(value UndoOrRedo) ExternalCRustBuffer
func (FfiConverterUndoOrRedo) Read ¶
func (FfiConverterUndoOrRedo) Read(reader io.Reader) UndoOrRedo
func (FfiConverterUndoOrRedo) Write ¶
func (FfiConverterUndoOrRedo) Write(writer io.Writer, value UndoOrRedo)
type FfiConverterUnsubscriber ¶
type FfiConverterUnsubscriber struct {
// contains filtered or unexported fields
}
func (FfiConverterUnsubscriber) Lift ¶
func (c FfiConverterUnsubscriber) Lift(handle C.uint64_t) Unsubscriber
func (FfiConverterUnsubscriber) Lower ¶
func (c FfiConverterUnsubscriber) Lower(value Unsubscriber) C.uint64_t
func (FfiConverterUnsubscriber) Read ¶
func (c FfiConverterUnsubscriber) Read(reader io.Reader) Unsubscriber
func (FfiConverterUnsubscriber) Write ¶
func (c FfiConverterUnsubscriber) Write(writer io.Writer, value Unsubscriber)
type FfiConverterUpdateOptions ¶
type FfiConverterUpdateOptions struct{}
func (FfiConverterUpdateOptions) Lift ¶
func (c FfiConverterUpdateOptions) Lift(rb RustBufferI) UpdateOptions
func (FfiConverterUpdateOptions) Lower ¶
func (c FfiConverterUpdateOptions) Lower(value UpdateOptions) C.RustBuffer
func (FfiConverterUpdateOptions) LowerExternal ¶ added in v0.3.0
func (c FfiConverterUpdateOptions) LowerExternal(value UpdateOptions) ExternalCRustBuffer
func (FfiConverterUpdateOptions) Read ¶
func (c FfiConverterUpdateOptions) Read(reader io.Reader) UpdateOptions
func (FfiConverterUpdateOptions) Write ¶
func (c FfiConverterUpdateOptions) Write(writer io.Writer, value UpdateOptions)
type FfiConverterUpdateTimeoutError ¶
type FfiConverterUpdateTimeoutError struct{}
func (FfiConverterUpdateTimeoutError) Lift ¶
func (c FfiConverterUpdateTimeoutError) Lift(eb RustBufferI) *UpdateTimeoutError
func (FfiConverterUpdateTimeoutError) Lower ¶
func (c FfiConverterUpdateTimeoutError) Lower(value *UpdateTimeoutError) C.RustBuffer
func (FfiConverterUpdateTimeoutError) LowerExternal ¶ added in v0.3.0
func (c FfiConverterUpdateTimeoutError) LowerExternal(value *UpdateTimeoutError) ExternalCRustBuffer
func (FfiConverterUpdateTimeoutError) Read ¶
func (c FfiConverterUpdateTimeoutError) Read(reader io.Reader) *UpdateTimeoutError
func (FfiConverterUpdateTimeoutError) Write ¶
func (c FfiConverterUpdateTimeoutError) Write(writer io.Writer, value *UpdateTimeoutError)
type FfiConverterValueOrContainer ¶
type FfiConverterValueOrContainer struct{}
func (FfiConverterValueOrContainer) Lift ¶
func (c FfiConverterValueOrContainer) Lift(handle C.uint64_t) *ValueOrContainer
func (FfiConverterValueOrContainer) Lower ¶
func (c FfiConverterValueOrContainer) Lower(value *ValueOrContainer) C.uint64_t
func (FfiConverterValueOrContainer) Read ¶
func (c FfiConverterValueOrContainer) Read(reader io.Reader) *ValueOrContainer
func (FfiConverterValueOrContainer) Write ¶
func (c FfiConverterValueOrContainer) Write(writer io.Writer, value *ValueOrContainer)
type FfiConverterVersionRange ¶
type FfiConverterVersionRange struct{}
func (FfiConverterVersionRange) Lift ¶
func (c FfiConverterVersionRange) Lift(handle C.uint64_t) *VersionRange
func (FfiConverterVersionRange) Lower ¶
func (c FfiConverterVersionRange) Lower(value *VersionRange) C.uint64_t
func (FfiConverterVersionRange) Read ¶
func (c FfiConverterVersionRange) Read(reader io.Reader) *VersionRange
func (FfiConverterVersionRange) Write ¶
func (c FfiConverterVersionRange) Write(writer io.Writer, value *VersionRange)
type FfiConverterVersionRangeItem ¶
type FfiConverterVersionRangeItem struct{}
func (FfiConverterVersionRangeItem) Lift ¶
func (c FfiConverterVersionRangeItem) Lift(rb RustBufferI) VersionRangeItem
func (FfiConverterVersionRangeItem) Lower ¶
func (c FfiConverterVersionRangeItem) Lower(value VersionRangeItem) C.RustBuffer
func (FfiConverterVersionRangeItem) LowerExternal ¶ added in v0.3.0
func (c FfiConverterVersionRangeItem) LowerExternal(value VersionRangeItem) ExternalCRustBuffer
func (FfiConverterVersionRangeItem) Read ¶
func (c FfiConverterVersionRangeItem) Read(reader io.Reader) VersionRangeItem
func (FfiConverterVersionRangeItem) Write ¶
func (c FfiConverterVersionRangeItem) Write(writer io.Writer, value VersionRangeItem)
type FfiConverterVersionVector ¶
type FfiConverterVersionVector struct{}
func (FfiConverterVersionVector) Lift ¶
func (c FfiConverterVersionVector) Lift(handle C.uint64_t) *VersionVector
func (FfiConverterVersionVector) Lower ¶
func (c FfiConverterVersionVector) Lower(value *VersionVector) C.uint64_t
func (FfiConverterVersionVector) Read ¶
func (c FfiConverterVersionVector) Read(reader io.Reader) *VersionVector
func (FfiConverterVersionVector) Write ¶
func (c FfiConverterVersionVector) Write(writer io.Writer, value *VersionVector)
type FfiConverterVersionVectorDiff ¶
type FfiConverterVersionVectorDiff struct{}
func (FfiConverterVersionVectorDiff) Lift ¶
func (c FfiConverterVersionVectorDiff) Lift(rb RustBufferI) VersionVectorDiff
func (FfiConverterVersionVectorDiff) Lower ¶
func (c FfiConverterVersionVectorDiff) Lower(value VersionVectorDiff) C.RustBuffer
func (FfiConverterVersionVectorDiff) LowerExternal ¶ added in v0.3.0
func (c FfiConverterVersionVectorDiff) LowerExternal(value VersionVectorDiff) ExternalCRustBuffer
func (FfiConverterVersionVectorDiff) Read ¶
func (c FfiConverterVersionVectorDiff) Read(reader io.Reader) VersionVectorDiff
func (FfiConverterVersionVectorDiff) Write ¶
func (c FfiConverterVersionVectorDiff) Write(writer io.Writer, value VersionVectorDiff)
type FfiDestroyerAbsolutePosition ¶
type FfiDestroyerAbsolutePosition struct{}
func (FfiDestroyerAbsolutePosition) Destroy ¶
func (_ FfiDestroyerAbsolutePosition) Destroy(value AbsolutePosition)
type FfiDestroyerAwareness ¶
type FfiDestroyerAwareness struct{}
func (FfiDestroyerAwareness) Destroy ¶
func (_ FfiDestroyerAwareness) Destroy(value *Awareness)
type FfiDestroyerAwarenessPeerUpdate ¶
type FfiDestroyerAwarenessPeerUpdate struct{}
func (FfiDestroyerAwarenessPeerUpdate) Destroy ¶
func (_ FfiDestroyerAwarenessPeerUpdate) Destroy(value AwarenessPeerUpdate)
type FfiDestroyerBool ¶
type FfiDestroyerBool struct{}
func (FfiDestroyerBool) Destroy ¶
func (FfiDestroyerBool) Destroy(_ bool)
type FfiDestroyerBytes ¶
type FfiDestroyerBytes struct{}
func (FfiDestroyerBytes) Destroy ¶
func (FfiDestroyerBytes) Destroy(_ []byte)
type FfiDestroyerCannotFindRelativePosition ¶
type FfiDestroyerCannotFindRelativePosition struct{}
func (FfiDestroyerCannotFindRelativePosition) Destroy ¶
func (_ FfiDestroyerCannotFindRelativePosition) Destroy(value *CannotFindRelativePosition)
type FfiDestroyerChangeAncestorsTraveler ¶
type FfiDestroyerChangeAncestorsTraveler struct{}
func (FfiDestroyerChangeAncestorsTraveler) Destroy ¶
func (_ FfiDestroyerChangeAncestorsTraveler) Destroy(value ChangeAncestorsTraveler)
type FfiDestroyerChangeMeta ¶
type FfiDestroyerChangeMeta struct{}
func (FfiDestroyerChangeMeta) Destroy ¶
func (_ FfiDestroyerChangeMeta) Destroy(value ChangeMeta)
type FfiDestroyerChangeModifier ¶
type FfiDestroyerChangeModifier struct{}
func (FfiDestroyerChangeModifier) Destroy ¶
func (_ FfiDestroyerChangeModifier) Destroy(value *ChangeModifier)
type FfiDestroyerChangeTravelError ¶
type FfiDestroyerChangeTravelError struct{}
func (FfiDestroyerChangeTravelError) Destroy ¶
func (_ FfiDestroyerChangeTravelError) Destroy(value *ChangeTravelError)
type FfiDestroyerCommitOptions ¶
type FfiDestroyerCommitOptions struct{}
func (FfiDestroyerCommitOptions) Destroy ¶
func (_ FfiDestroyerCommitOptions) Destroy(value CommitOptions)
type FfiDestroyerConfigure ¶
type FfiDestroyerConfigure struct{}
func (FfiDestroyerConfigure) Destroy ¶
func (_ FfiDestroyerConfigure) Destroy(value *Configure)
type FfiDestroyerContainerDiff ¶
type FfiDestroyerContainerDiff struct{}
func (FfiDestroyerContainerDiff) Destroy ¶
func (_ FfiDestroyerContainerDiff) Destroy(value ContainerDiff)
type FfiDestroyerContainerId ¶
type FfiDestroyerContainerId struct{}
func (FfiDestroyerContainerId) Destroy ¶
func (_ FfiDestroyerContainerId) Destroy(value ContainerId)
type FfiDestroyerContainerIdAndDiff ¶
type FfiDestroyerContainerIdAndDiff struct{}
func (FfiDestroyerContainerIdAndDiff) Destroy ¶
func (_ FfiDestroyerContainerIdAndDiff) Destroy(value ContainerIdAndDiff)
type FfiDestroyerContainerIdLike ¶
type FfiDestroyerContainerIdLike struct{}
func (FfiDestroyerContainerIdLike) Destroy ¶
func (_ FfiDestroyerContainerIdLike) Destroy(value ContainerIdLike)
type FfiDestroyerContainerPath ¶
type FfiDestroyerContainerPath struct{}
func (FfiDestroyerContainerPath) Destroy ¶
func (_ FfiDestroyerContainerPath) Destroy(value ContainerPath)
type FfiDestroyerContainerType ¶
type FfiDestroyerContainerType struct{}
func (FfiDestroyerContainerType) Destroy ¶
func (_ FfiDestroyerContainerType) Destroy(value ContainerType)
type FfiDestroyerCounterSpan ¶
type FfiDestroyerCounterSpan struct{}
func (FfiDestroyerCounterSpan) Destroy ¶
func (_ FfiDestroyerCounterSpan) Destroy(value CounterSpan)
type FfiDestroyerCursor ¶
type FfiDestroyerCursor struct{}
func (FfiDestroyerCursor) Destroy ¶
func (_ FfiDestroyerCursor) Destroy(value *Cursor)
type FfiDestroyerCursorWithPos ¶
type FfiDestroyerCursorWithPos struct{}
func (FfiDestroyerCursorWithPos) Destroy ¶
func (_ FfiDestroyerCursorWithPos) Destroy(value CursorWithPos)
type FfiDestroyerDiff ¶
type FfiDestroyerDiff struct{}
func (FfiDestroyerDiff) Destroy ¶
func (_ FfiDestroyerDiff) Destroy(value Diff)
type FfiDestroyerDiffBatch ¶
type FfiDestroyerDiffBatch struct{}
func (FfiDestroyerDiffBatch) Destroy ¶
func (_ FfiDestroyerDiffBatch) Destroy(value *DiffBatch)
type FfiDestroyerDiffEvent ¶
type FfiDestroyerDiffEvent struct{}
func (FfiDestroyerDiffEvent) Destroy ¶
func (_ FfiDestroyerDiffEvent) Destroy(value DiffEvent)
type FfiDestroyerEphemeralEventTrigger ¶
type FfiDestroyerEphemeralEventTrigger struct{}
func (FfiDestroyerEphemeralEventTrigger) Destroy ¶
func (_ FfiDestroyerEphemeralEventTrigger) Destroy(value EphemeralEventTrigger)
type FfiDestroyerEphemeralStore ¶
type FfiDestroyerEphemeralStore struct{}
func (FfiDestroyerEphemeralStore) Destroy ¶
func (_ FfiDestroyerEphemeralStore) Destroy(value *EphemeralStore)
type FfiDestroyerEphemeralStoreEvent ¶
type FfiDestroyerEphemeralStoreEvent struct{}
func (FfiDestroyerEphemeralStoreEvent) Destroy ¶
func (_ FfiDestroyerEphemeralStoreEvent) Destroy(value EphemeralStoreEvent)
type FfiDestroyerEphemeralSubscriber ¶
type FfiDestroyerEphemeralSubscriber struct{}
func (FfiDestroyerEphemeralSubscriber) Destroy ¶
func (_ FfiDestroyerEphemeralSubscriber) Destroy(value EphemeralSubscriber)
type FfiDestroyerEventTriggerKind ¶
type FfiDestroyerEventTriggerKind struct{}
func (FfiDestroyerEventTriggerKind) Destroy ¶
func (_ FfiDestroyerEventTriggerKind) Destroy(value EventTriggerKind)
type FfiDestroyerExpandType ¶
type FfiDestroyerExpandType struct{}
func (FfiDestroyerExpandType) Destroy ¶
func (_ FfiDestroyerExpandType) Destroy(value ExpandType)
type FfiDestroyerExportMode ¶ added in v0.3.0
type FfiDestroyerExportMode struct{}
func (FfiDestroyerExportMode) Destroy ¶ added in v0.3.0
func (_ FfiDestroyerExportMode) Destroy(value ExportMode)
type FfiDestroyerFirstCommitFromPeerCallback ¶
type FfiDestroyerFirstCommitFromPeerCallback struct{}
func (FfiDestroyerFirstCommitFromPeerCallback) Destroy ¶
func (_ FfiDestroyerFirstCommitFromPeerCallback) Destroy(value FirstCommitFromPeerCallback)
type FfiDestroyerFirstCommitFromPeerPayload ¶
type FfiDestroyerFirstCommitFromPeerPayload struct{}
func (FfiDestroyerFirstCommitFromPeerPayload) Destroy ¶
func (_ FfiDestroyerFirstCommitFromPeerPayload) Destroy(value FirstCommitFromPeerPayload)
type FfiDestroyerFloat64 ¶
type FfiDestroyerFloat64 struct{}
func (FfiDestroyerFloat64) Destroy ¶
func (FfiDestroyerFloat64) Destroy(_ float64)
type FfiDestroyerFractionalIndex ¶
type FfiDestroyerFractionalIndex struct{}
func (FfiDestroyerFractionalIndex) Destroy ¶
func (_ FfiDestroyerFractionalIndex) Destroy(value *FractionalIndex)
type FfiDestroyerFrontiers ¶
type FfiDestroyerFrontiers struct{}
func (FfiDestroyerFrontiers) Destroy ¶
func (_ FfiDestroyerFrontiers) Destroy(value *Frontiers)
type FfiDestroyerFrontiersOrId ¶
type FfiDestroyerFrontiersOrId struct{}
func (FfiDestroyerFrontiersOrId) Destroy ¶
func (_ FfiDestroyerFrontiersOrId) Destroy(value FrontiersOrId)
type FfiDestroyerId ¶
type FfiDestroyerId struct{}
func (FfiDestroyerId) Destroy ¶
func (_ FfiDestroyerId) Destroy(value Id)
type FfiDestroyerIdLp ¶
type FfiDestroyerIdLp struct{}
func (FfiDestroyerIdLp) Destroy ¶
func (_ FfiDestroyerIdLp) Destroy(value IdLp)
type FfiDestroyerIdSpan ¶
type FfiDestroyerIdSpan struct{}
func (FfiDestroyerIdSpan) Destroy ¶
func (_ FfiDestroyerIdSpan) Destroy(value IdSpan)
type FfiDestroyerImportBlobMetadata ¶
type FfiDestroyerImportBlobMetadata struct{}
func (FfiDestroyerImportBlobMetadata) Destroy ¶
func (_ FfiDestroyerImportBlobMetadata) Destroy(value ImportBlobMetadata)
type FfiDestroyerImportStatus ¶
type FfiDestroyerImportStatus struct{}
func (FfiDestroyerImportStatus) Destroy ¶
func (_ FfiDestroyerImportStatus) Destroy(value ImportStatus)
type FfiDestroyerIndex ¶
type FfiDestroyerIndex struct{}
func (FfiDestroyerIndex) Destroy ¶
func (_ FfiDestroyerIndex) Destroy(value Index)
type FfiDestroyerInt32 ¶
type FfiDestroyerInt32 struct{}
func (FfiDestroyerInt32) Destroy ¶
func (FfiDestroyerInt32) Destroy(_ int32)
type FfiDestroyerInt64 ¶
type FfiDestroyerInt64 struct{}
func (FfiDestroyerInt64) Destroy ¶
func (FfiDestroyerInt64) Destroy(_ int64)
type FfiDestroyerJsonPathError ¶
type FfiDestroyerJsonPathError struct{}
func (FfiDestroyerJsonPathError) Destroy ¶
func (_ FfiDestroyerJsonPathError) Destroy(value *JsonPathError)
type FfiDestroyerJsonPathSubscriber ¶ added in v0.2.0
type FfiDestroyerJsonPathSubscriber struct{}
func (FfiDestroyerJsonPathSubscriber) Destroy ¶ added in v0.2.0
func (_ FfiDestroyerJsonPathSubscriber) Destroy(value JsonPathSubscriber)
type FfiDestroyerListDiffItem ¶
type FfiDestroyerListDiffItem struct{}
func (FfiDestroyerListDiffItem) Destroy ¶
func (_ FfiDestroyerListDiffItem) Destroy(value ListDiffItem)
type FfiDestroyerLocalEphemeralListener ¶
type FfiDestroyerLocalEphemeralListener struct{}
func (FfiDestroyerLocalEphemeralListener) Destroy ¶
func (_ FfiDestroyerLocalEphemeralListener) Destroy(value LocalEphemeralListener)
type FfiDestroyerLocalUpdateCallback ¶
type FfiDestroyerLocalUpdateCallback struct{}
func (FfiDestroyerLocalUpdateCallback) Destroy ¶
func (_ FfiDestroyerLocalUpdateCallback) Destroy(value LocalUpdateCallback)
type FfiDestroyerLoroCounter ¶
type FfiDestroyerLoroCounter struct{}
func (FfiDestroyerLoroCounter) Destroy ¶
func (_ FfiDestroyerLoroCounter) Destroy(value *LoroCounter)
type FfiDestroyerLoroDoc ¶
type FfiDestroyerLoroDoc struct{}
func (FfiDestroyerLoroDoc) Destroy ¶
func (_ FfiDestroyerLoroDoc) Destroy(value *LoroDoc)
type FfiDestroyerLoroEncodeError ¶
type FfiDestroyerLoroEncodeError struct{}
func (FfiDestroyerLoroEncodeError) Destroy ¶
func (_ FfiDestroyerLoroEncodeError) Destroy(value *LoroEncodeError)
type FfiDestroyerLoroError ¶
type FfiDestroyerLoroError struct{}
func (FfiDestroyerLoroError) Destroy ¶
func (_ FfiDestroyerLoroError) Destroy(value *LoroError)
type FfiDestroyerLoroList ¶
type FfiDestroyerLoroList struct{}
func (FfiDestroyerLoroList) Destroy ¶
func (_ FfiDestroyerLoroList) Destroy(value *LoroList)
type FfiDestroyerLoroMap ¶
type FfiDestroyerLoroMap struct{}
func (FfiDestroyerLoroMap) Destroy ¶
func (_ FfiDestroyerLoroMap) Destroy(value *LoroMap)
type FfiDestroyerLoroMovableList ¶
type FfiDestroyerLoroMovableList struct{}
func (FfiDestroyerLoroMovableList) Destroy ¶
func (_ FfiDestroyerLoroMovableList) Destroy(value *LoroMovableList)
type FfiDestroyerLoroText ¶
type FfiDestroyerLoroText struct{}
func (FfiDestroyerLoroText) Destroy ¶
func (_ FfiDestroyerLoroText) Destroy(value *LoroText)
type FfiDestroyerLoroTree ¶
type FfiDestroyerLoroTree struct{}
func (FfiDestroyerLoroTree) Destroy ¶
func (_ FfiDestroyerLoroTree) Destroy(value *LoroTree)
type FfiDestroyerLoroUnknown ¶
type FfiDestroyerLoroUnknown struct{}
func (FfiDestroyerLoroUnknown) Destroy ¶
func (_ FfiDestroyerLoroUnknown) Destroy(value *LoroUnknown)
type FfiDestroyerLoroValue ¶
type FfiDestroyerLoroValue struct{}
func (FfiDestroyerLoroValue) Destroy ¶
func (_ FfiDestroyerLoroValue) Destroy(value LoroValue)
type FfiDestroyerLoroValueLike ¶
type FfiDestroyerLoroValueLike struct{}
func (FfiDestroyerLoroValueLike) Destroy ¶
func (_ FfiDestroyerLoroValueLike) Destroy(value LoroValueLike)
type FfiDestroyerMapDelta ¶
type FfiDestroyerMapDelta struct{}
func (FfiDestroyerMapDelta) Destroy ¶
func (_ FfiDestroyerMapDelta) Destroy(value MapDelta)
type FfiDestroyerMapStringLoroValue ¶
type FfiDestroyerMapStringLoroValue struct{}
func (FfiDestroyerMapStringLoroValue) Destroy ¶
func (_ FfiDestroyerMapStringLoroValue) Destroy(mapValue map[string]LoroValue)
type FfiDestroyerMapStringOptionalValueOrContainer ¶
type FfiDestroyerMapStringOptionalValueOrContainer struct{}
func (FfiDestroyerMapStringOptionalValueOrContainer) Destroy ¶
func (_ FfiDestroyerMapStringOptionalValueOrContainer) Destroy(mapValue map[string]**ValueOrContainer)
type FfiDestroyerMapUint64CounterSpan ¶
type FfiDestroyerMapUint64CounterSpan struct{}
func (FfiDestroyerMapUint64CounterSpan) Destroy ¶
func (_ FfiDestroyerMapUint64CounterSpan) Destroy(mapValue map[uint64]CounterSpan)
type FfiDestroyerMapUint64Int32 ¶
type FfiDestroyerMapUint64Int32 struct{}
func (FfiDestroyerMapUint64Int32) Destroy ¶
func (_ FfiDestroyerMapUint64Int32) Destroy(mapValue map[uint64]int32)
type FfiDestroyerMapUint64PeerInfo ¶
type FfiDestroyerMapUint64PeerInfo struct{}
func (FfiDestroyerMapUint64PeerInfo) Destroy ¶
func (_ FfiDestroyerMapUint64PeerInfo) Destroy(mapValue map[uint64]PeerInfo)
type FfiDestroyerOnPop ¶
type FfiDestroyerOnPop struct{}
func (FfiDestroyerOnPop) Destroy ¶
func (_ FfiDestroyerOnPop) Destroy(value OnPop)
type FfiDestroyerOnPush ¶
type FfiDestroyerOnPush struct{}
func (FfiDestroyerOnPush) Destroy ¶
func (_ FfiDestroyerOnPush) Destroy(value OnPush)
type FfiDestroyerOptionalChangeMeta ¶
type FfiDestroyerOptionalChangeMeta struct{}
func (FfiDestroyerOptionalChangeMeta) Destroy ¶
func (_ FfiDestroyerOptionalChangeMeta) Destroy(value *ChangeMeta)
type FfiDestroyerOptionalContainerId ¶
type FfiDestroyerOptionalContainerId struct{}
func (FfiDestroyerOptionalContainerId) Destroy ¶
func (_ FfiDestroyerOptionalContainerId) Destroy(value *ContainerId)
type FfiDestroyerOptionalContainerType ¶
type FfiDestroyerOptionalContainerType struct{}
func (FfiDestroyerOptionalContainerType) Destroy ¶
func (_ FfiDestroyerOptionalContainerType) Destroy(value *ContainerType)
type FfiDestroyerOptionalCounterSpan ¶
type FfiDestroyerOptionalCounterSpan struct{}
func (FfiDestroyerOptionalCounterSpan) Destroy ¶
func (_ FfiDestroyerOptionalCounterSpan) Destroy(value *CounterSpan)
type FfiDestroyerOptionalCursor ¶
type FfiDestroyerOptionalCursor struct{}
func (FfiDestroyerOptionalCursor) Destroy ¶
func (_ FfiDestroyerOptionalCursor) Destroy(value **Cursor)
type FfiDestroyerOptionalDiff ¶
type FfiDestroyerOptionalDiff struct{}
func (FfiDestroyerOptionalDiff) Destroy ¶
func (_ FfiDestroyerOptionalDiff) Destroy(value *Diff)
type FfiDestroyerOptionalDiffEvent ¶
type FfiDestroyerOptionalDiffEvent struct{}
func (FfiDestroyerOptionalDiffEvent) Destroy ¶
func (_ FfiDestroyerOptionalDiffEvent) Destroy(value *DiffEvent)
type FfiDestroyerOptionalFloat64 ¶
type FfiDestroyerOptionalFloat64 struct{}
func (FfiDestroyerOptionalFloat64) Destroy ¶
func (_ FfiDestroyerOptionalFloat64) Destroy(value *float64)
type FfiDestroyerOptionalFrontiers ¶
type FfiDestroyerOptionalFrontiers struct{}
func (FfiDestroyerOptionalFrontiers) Destroy ¶
func (_ FfiDestroyerOptionalFrontiers) Destroy(value **Frontiers)
type FfiDestroyerOptionalId ¶
type FfiDestroyerOptionalId struct{}
func (FfiDestroyerOptionalId) Destroy ¶
func (_ FfiDestroyerOptionalId) Destroy(value *Id)
type FfiDestroyerOptionalInt32 ¶
type FfiDestroyerOptionalInt32 struct{}
func (FfiDestroyerOptionalInt32) Destroy ¶
func (_ FfiDestroyerOptionalInt32) Destroy(value *int32)
type FfiDestroyerOptionalInt64 ¶
type FfiDestroyerOptionalInt64 struct{}
func (FfiDestroyerOptionalInt64) Destroy ¶
func (_ FfiDestroyerOptionalInt64) Destroy(value *int64)
type FfiDestroyerOptionalLoroCounter ¶
type FfiDestroyerOptionalLoroCounter struct{}
func (FfiDestroyerOptionalLoroCounter) Destroy ¶
func (_ FfiDestroyerOptionalLoroCounter) Destroy(value **LoroCounter)
type FfiDestroyerOptionalLoroDoc ¶
type FfiDestroyerOptionalLoroDoc struct{}
func (FfiDestroyerOptionalLoroDoc) Destroy ¶
func (_ FfiDestroyerOptionalLoroDoc) Destroy(value **LoroDoc)
type FfiDestroyerOptionalLoroList ¶
type FfiDestroyerOptionalLoroList struct{}
func (FfiDestroyerOptionalLoroList) Destroy ¶
func (_ FfiDestroyerOptionalLoroList) Destroy(value **LoroList)
type FfiDestroyerOptionalLoroMap ¶
type FfiDestroyerOptionalLoroMap struct{}
func (FfiDestroyerOptionalLoroMap) Destroy ¶
func (_ FfiDestroyerOptionalLoroMap) Destroy(value **LoroMap)
type FfiDestroyerOptionalLoroMovableList ¶
type FfiDestroyerOptionalLoroMovableList struct{}
func (FfiDestroyerOptionalLoroMovableList) Destroy ¶
func (_ FfiDestroyerOptionalLoroMovableList) Destroy(value **LoroMovableList)
type FfiDestroyerOptionalLoroText ¶
type FfiDestroyerOptionalLoroText struct{}
func (FfiDestroyerOptionalLoroText) Destroy ¶
func (_ FfiDestroyerOptionalLoroText) Destroy(value **LoroText)
type FfiDestroyerOptionalLoroTree ¶
type FfiDestroyerOptionalLoroTree struct{}
func (FfiDestroyerOptionalLoroTree) Destroy ¶
func (_ FfiDestroyerOptionalLoroTree) Destroy(value **LoroTree)
type FfiDestroyerOptionalLoroUnknown ¶
type FfiDestroyerOptionalLoroUnknown struct{}
func (FfiDestroyerOptionalLoroUnknown) Destroy ¶
func (_ FfiDestroyerOptionalLoroUnknown) Destroy(value **LoroUnknown)
type FfiDestroyerOptionalLoroValue ¶
type FfiDestroyerOptionalLoroValue struct{}
func (FfiDestroyerOptionalLoroValue) Destroy ¶
func (_ FfiDestroyerOptionalLoroValue) Destroy(value *LoroValue)
type FfiDestroyerOptionalMapStringLoroValue ¶
type FfiDestroyerOptionalMapStringLoroValue struct{}
func (FfiDestroyerOptionalMapStringLoroValue) Destroy ¶
func (_ FfiDestroyerOptionalMapStringLoroValue) Destroy(value *map[string]LoroValue)
type FfiDestroyerOptionalMapUint64CounterSpan ¶
type FfiDestroyerOptionalMapUint64CounterSpan struct{}
func (FfiDestroyerOptionalMapUint64CounterSpan) Destroy ¶
func (_ FfiDestroyerOptionalMapUint64CounterSpan) Destroy(value *map[uint64]CounterSpan)
type FfiDestroyerOptionalOnPop ¶
type FfiDestroyerOptionalOnPop struct{}
func (FfiDestroyerOptionalOnPop) Destroy ¶
func (_ FfiDestroyerOptionalOnPop) Destroy(value *OnPop)
type FfiDestroyerOptionalOnPush ¶
type FfiDestroyerOptionalOnPush struct{}
func (FfiDestroyerOptionalOnPush) Destroy ¶
func (_ FfiDestroyerOptionalOnPush) Destroy(value *OnPush)
type FfiDestroyerOptionalOrdering ¶
type FfiDestroyerOptionalOrdering struct{}
func (FfiDestroyerOptionalOrdering) Destroy ¶
func (_ FfiDestroyerOptionalOrdering) Destroy(value *Ordering)
type FfiDestroyerOptionalSequenceContainerPath ¶
type FfiDestroyerOptionalSequenceContainerPath struct{}
func (FfiDestroyerOptionalSequenceContainerPath) Destroy ¶
func (_ FfiDestroyerOptionalSequenceContainerPath) Destroy(value *[]ContainerPath)
type FfiDestroyerOptionalSequenceTreeId ¶
type FfiDestroyerOptionalSequenceTreeId struct{}
func (FfiDestroyerOptionalSequenceTreeId) Destroy ¶
func (_ FfiDestroyerOptionalSequenceTreeId) Destroy(value *[]TreeId)
type FfiDestroyerOptionalString ¶
type FfiDestroyerOptionalString struct{}
func (FfiDestroyerOptionalString) Destroy ¶
func (_ FfiDestroyerOptionalString) Destroy(value *string)
type FfiDestroyerOptionalStyleConfig ¶
type FfiDestroyerOptionalStyleConfig struct{}
func (FfiDestroyerOptionalStyleConfig) Destroy ¶
func (_ FfiDestroyerOptionalStyleConfig) Destroy(value *StyleConfig)
type FfiDestroyerOptionalSubscription ¶
type FfiDestroyerOptionalSubscription struct{}
func (FfiDestroyerOptionalSubscription) Destroy ¶
func (_ FfiDestroyerOptionalSubscription) Destroy(value **Subscription)
type FfiDestroyerOptionalUint32 ¶
type FfiDestroyerOptionalUint32 struct{}
func (FfiDestroyerOptionalUint32) Destroy ¶
func (_ FfiDestroyerOptionalUint32) Destroy(value *uint32)
type FfiDestroyerOptionalUint64 ¶
type FfiDestroyerOptionalUint64 struct{}
func (FfiDestroyerOptionalUint64) Destroy ¶
func (_ FfiDestroyerOptionalUint64) Destroy(value *uint64)
type FfiDestroyerOptionalUndoItemMeta ¶
type FfiDestroyerOptionalUndoItemMeta struct{}
func (FfiDestroyerOptionalUndoItemMeta) Destroy ¶
func (_ FfiDestroyerOptionalUndoItemMeta) Destroy(value *UndoItemMeta)
type FfiDestroyerOptionalValueOrContainer ¶
type FfiDestroyerOptionalValueOrContainer struct{}
func (FfiDestroyerOptionalValueOrContainer) Destroy ¶
func (_ FfiDestroyerOptionalValueOrContainer) Destroy(value **ValueOrContainer)
type FfiDestroyerOptionalVersionVector ¶
type FfiDestroyerOptionalVersionVector struct{}
func (FfiDestroyerOptionalVersionVector) Destroy ¶
func (_ FfiDestroyerOptionalVersionVector) Destroy(value **VersionVector)
type FfiDestroyerOrdering ¶
type FfiDestroyerOrdering struct{}
func (FfiDestroyerOrdering) Destroy ¶
func (_ FfiDestroyerOrdering) Destroy(value Ordering)
type FfiDestroyerPathItem ¶
type FfiDestroyerPathItem struct{}
func (FfiDestroyerPathItem) Destroy ¶
func (_ FfiDestroyerPathItem) Destroy(value PathItem)
type FfiDestroyerPeerInfo ¶
type FfiDestroyerPeerInfo struct{}
func (FfiDestroyerPeerInfo) Destroy ¶
func (_ FfiDestroyerPeerInfo) Destroy(value PeerInfo)
type FfiDestroyerPosQueryResult ¶
type FfiDestroyerPosQueryResult struct{}
func (FfiDestroyerPosQueryResult) Destroy ¶
func (_ FfiDestroyerPosQueryResult) Destroy(value PosQueryResult)
type FfiDestroyerPosType ¶ added in v0.2.0
type FfiDestroyerPosType struct{}
func (FfiDestroyerPosType) Destroy ¶ added in v0.2.0
func (_ FfiDestroyerPosType) Destroy(value PosType)
type FfiDestroyerPreCommitCallback ¶
type FfiDestroyerPreCommitCallback struct{}
func (FfiDestroyerPreCommitCallback) Destroy ¶
func (_ FfiDestroyerPreCommitCallback) Destroy(value PreCommitCallback)
type FfiDestroyerPreCommitCallbackPayload ¶
type FfiDestroyerPreCommitCallbackPayload struct{}
func (FfiDestroyerPreCommitCallbackPayload) Destroy ¶
func (_ FfiDestroyerPreCommitCallbackPayload) Destroy(value PreCommitCallbackPayload)
type FfiDestroyerSequenceBytes ¶
type FfiDestroyerSequenceBytes struct{}
func (FfiDestroyerSequenceBytes) Destroy ¶
func (FfiDestroyerSequenceBytes) Destroy(sequence [][]byte)
type FfiDestroyerSequenceContainerDiff ¶
type FfiDestroyerSequenceContainerDiff struct{}
func (FfiDestroyerSequenceContainerDiff) Destroy ¶
func (FfiDestroyerSequenceContainerDiff) Destroy(sequence []ContainerDiff)
type FfiDestroyerSequenceContainerId ¶
type FfiDestroyerSequenceContainerId struct{}
func (FfiDestroyerSequenceContainerId) Destroy ¶
func (FfiDestroyerSequenceContainerId) Destroy(sequence []ContainerId)
type FfiDestroyerSequenceContainerIdAndDiff ¶
type FfiDestroyerSequenceContainerIdAndDiff struct{}
func (FfiDestroyerSequenceContainerIdAndDiff) Destroy ¶
func (FfiDestroyerSequenceContainerIdAndDiff) Destroy(sequence []ContainerIdAndDiff)
type FfiDestroyerSequenceContainerPath ¶
type FfiDestroyerSequenceContainerPath struct{}
func (FfiDestroyerSequenceContainerPath) Destroy ¶
func (FfiDestroyerSequenceContainerPath) Destroy(sequence []ContainerPath)
type FfiDestroyerSequenceCursorWithPos ¶
type FfiDestroyerSequenceCursorWithPos struct{}
func (FfiDestroyerSequenceCursorWithPos) Destroy ¶
func (FfiDestroyerSequenceCursorWithPos) Destroy(sequence []CursorWithPos)
type FfiDestroyerSequenceId ¶
type FfiDestroyerSequenceId struct{}
func (FfiDestroyerSequenceId) Destroy ¶
func (FfiDestroyerSequenceId) Destroy(sequence []Id)
type FfiDestroyerSequenceIdSpan ¶
type FfiDestroyerSequenceIdSpan struct{}
func (FfiDestroyerSequenceIdSpan) Destroy ¶
func (FfiDestroyerSequenceIdSpan) Destroy(sequence []IdSpan)
type FfiDestroyerSequenceIndex ¶
type FfiDestroyerSequenceIndex struct{}
func (FfiDestroyerSequenceIndex) Destroy ¶
func (FfiDestroyerSequenceIndex) Destroy(sequence []Index)
type FfiDestroyerSequenceListDiffItem ¶
type FfiDestroyerSequenceListDiffItem struct{}
func (FfiDestroyerSequenceListDiffItem) Destroy ¶
func (FfiDestroyerSequenceListDiffItem) Destroy(sequence []ListDiffItem)
type FfiDestroyerSequenceLoroValue ¶
type FfiDestroyerSequenceLoroValue struct{}
func (FfiDestroyerSequenceLoroValue) Destroy ¶
func (FfiDestroyerSequenceLoroValue) Destroy(sequence []LoroValue)
type FfiDestroyerSequencePathItem ¶
type FfiDestroyerSequencePathItem struct{}
func (FfiDestroyerSequencePathItem) Destroy ¶
func (FfiDestroyerSequencePathItem) Destroy(sequence []PathItem)
type FfiDestroyerSequenceString ¶
type FfiDestroyerSequenceString struct{}
func (FfiDestroyerSequenceString) Destroy ¶
func (FfiDestroyerSequenceString) Destroy(sequence []string)
type FfiDestroyerSequenceTextDelta ¶
type FfiDestroyerSequenceTextDelta struct{}
func (FfiDestroyerSequenceTextDelta) Destroy ¶
func (FfiDestroyerSequenceTextDelta) Destroy(sequence []TextDelta)
type FfiDestroyerSequenceTreeDiffItem ¶
type FfiDestroyerSequenceTreeDiffItem struct{}
func (FfiDestroyerSequenceTreeDiffItem) Destroy ¶
func (FfiDestroyerSequenceTreeDiffItem) Destroy(sequence []TreeDiffItem)
type FfiDestroyerSequenceTreeId ¶
type FfiDestroyerSequenceTreeId struct{}
func (FfiDestroyerSequenceTreeId) Destroy ¶
func (FfiDestroyerSequenceTreeId) Destroy(sequence []TreeId)
type FfiDestroyerSequenceUint64 ¶
type FfiDestroyerSequenceUint64 struct{}
func (FfiDestroyerSequenceUint64) Destroy ¶
func (FfiDestroyerSequenceUint64) Destroy(sequence []uint64)
type FfiDestroyerSequenceValueOrContainer ¶
type FfiDestroyerSequenceValueOrContainer struct{}
func (FfiDestroyerSequenceValueOrContainer) Destroy ¶
func (FfiDestroyerSequenceValueOrContainer) Destroy(sequence []*ValueOrContainer)
type FfiDestroyerSequenceVersionRangeItem ¶
type FfiDestroyerSequenceVersionRangeItem struct{}
func (FfiDestroyerSequenceVersionRangeItem) Destroy ¶
func (FfiDestroyerSequenceVersionRangeItem) Destroy(sequence []VersionRangeItem)
type FfiDestroyerSide ¶
type FfiDestroyerSide struct{}
func (FfiDestroyerSide) Destroy ¶
func (_ FfiDestroyerSide) Destroy(value Side)
type FfiDestroyerString ¶
type FfiDestroyerString struct{}
func (FfiDestroyerString) Destroy ¶
func (FfiDestroyerString) Destroy(_ string)
type FfiDestroyerStyleConfig ¶
type FfiDestroyerStyleConfig struct{}
func (FfiDestroyerStyleConfig) Destroy ¶
func (_ FfiDestroyerStyleConfig) Destroy(value StyleConfig)
type FfiDestroyerStyleConfigMap ¶
type FfiDestroyerStyleConfigMap struct{}
func (FfiDestroyerStyleConfigMap) Destroy ¶
func (_ FfiDestroyerStyleConfigMap) Destroy(value *StyleConfigMap)
type FfiDestroyerSubscriber ¶
type FfiDestroyerSubscriber struct{}
func (FfiDestroyerSubscriber) Destroy ¶
func (_ FfiDestroyerSubscriber) Destroy(value Subscriber)
type FfiDestroyerSubscription ¶
type FfiDestroyerSubscription struct{}
func (FfiDestroyerSubscription) Destroy ¶
func (_ FfiDestroyerSubscription) Destroy(value *Subscription)
type FfiDestroyerTextDelta ¶
type FfiDestroyerTextDelta struct{}
func (FfiDestroyerTextDelta) Destroy ¶
func (_ FfiDestroyerTextDelta) Destroy(value TextDelta)
type FfiDestroyerTreeDiff ¶
type FfiDestroyerTreeDiff struct{}
func (FfiDestroyerTreeDiff) Destroy ¶
func (_ FfiDestroyerTreeDiff) Destroy(value TreeDiff)
type FfiDestroyerTreeDiffItem ¶
type FfiDestroyerTreeDiffItem struct{}
func (FfiDestroyerTreeDiffItem) Destroy ¶
func (_ FfiDestroyerTreeDiffItem) Destroy(value TreeDiffItem)
type FfiDestroyerTreeExternalDiff ¶
type FfiDestroyerTreeExternalDiff struct{}
func (FfiDestroyerTreeExternalDiff) Destroy ¶
func (_ FfiDestroyerTreeExternalDiff) Destroy(value TreeExternalDiff)
type FfiDestroyerTreeId ¶
type FfiDestroyerTreeId struct{}
func (FfiDestroyerTreeId) Destroy ¶
func (_ FfiDestroyerTreeId) Destroy(value TreeId)
type FfiDestroyerTreeParentId ¶
type FfiDestroyerTreeParentId struct{}
func (FfiDestroyerTreeParentId) Destroy ¶
func (_ FfiDestroyerTreeParentId) Destroy(value TreeParentId)
type FfiDestroyerUint8 ¶
type FfiDestroyerUint8 struct{}
func (FfiDestroyerUint8) Destroy ¶
func (FfiDestroyerUint8) Destroy(_ uint8)
type FfiDestroyerUint32 ¶
type FfiDestroyerUint32 struct{}
func (FfiDestroyerUint32) Destroy ¶
func (FfiDestroyerUint32) Destroy(_ uint32)
type FfiDestroyerUint64 ¶
type FfiDestroyerUint64 struct{}
func (FfiDestroyerUint64) Destroy ¶
func (FfiDestroyerUint64) Destroy(_ uint64)
type FfiDestroyerUndoItemMeta ¶
type FfiDestroyerUndoItemMeta struct{}
func (FfiDestroyerUndoItemMeta) Destroy ¶
func (_ FfiDestroyerUndoItemMeta) Destroy(value UndoItemMeta)
type FfiDestroyerUndoManager ¶
type FfiDestroyerUndoManager struct{}
func (FfiDestroyerUndoManager) Destroy ¶
func (_ FfiDestroyerUndoManager) Destroy(value *UndoManager)
type FfiDestroyerUndoOrRedo ¶
type FfiDestroyerUndoOrRedo struct{}
func (FfiDestroyerUndoOrRedo) Destroy ¶
func (_ FfiDestroyerUndoOrRedo) Destroy(value UndoOrRedo)
type FfiDestroyerUnsubscriber ¶
type FfiDestroyerUnsubscriber struct{}
func (FfiDestroyerUnsubscriber) Destroy ¶
func (_ FfiDestroyerUnsubscriber) Destroy(value Unsubscriber)
type FfiDestroyerUpdateOptions ¶
type FfiDestroyerUpdateOptions struct{}
func (FfiDestroyerUpdateOptions) Destroy ¶
func (_ FfiDestroyerUpdateOptions) Destroy(value UpdateOptions)
type FfiDestroyerUpdateTimeoutError ¶
type FfiDestroyerUpdateTimeoutError struct{}
func (FfiDestroyerUpdateTimeoutError) Destroy ¶
func (_ FfiDestroyerUpdateTimeoutError) Destroy(value *UpdateTimeoutError)
type FfiDestroyerValueOrContainer ¶
type FfiDestroyerValueOrContainer struct{}
func (FfiDestroyerValueOrContainer) Destroy ¶
func (_ FfiDestroyerValueOrContainer) Destroy(value *ValueOrContainer)
type FfiDestroyerVersionRange ¶
type FfiDestroyerVersionRange struct{}
func (FfiDestroyerVersionRange) Destroy ¶
func (_ FfiDestroyerVersionRange) Destroy(value *VersionRange)
type FfiDestroyerVersionRangeItem ¶
type FfiDestroyerVersionRangeItem struct{}
func (FfiDestroyerVersionRangeItem) Destroy ¶
func (_ FfiDestroyerVersionRangeItem) Destroy(value VersionRangeItem)
type FfiDestroyerVersionVector ¶
type FfiDestroyerVersionVector struct{}
func (FfiDestroyerVersionVector) Destroy ¶
func (_ FfiDestroyerVersionVector) Destroy(value *VersionVector)
type FfiDestroyerVersionVectorDiff ¶
type FfiDestroyerVersionVectorDiff struct{}
func (FfiDestroyerVersionVectorDiff) Destroy ¶
func (_ FfiDestroyerVersionVectorDiff) Destroy(value VersionVectorDiff)
type FirstCommitFromPeerCallback ¶
type FirstCommitFromPeerCallback interface {
OnFirstCommitFromPeer(payload FirstCommitFromPeerPayload)
}
func AsFirstCommitFromPeerCallback ¶
func AsFirstCommitFromPeerCallback(fn FirstCommitFromPeerCallbackFn) FirstCommitFromPeerCallback
AsFirstCommitFromPeerCallback adapts a function to the FirstCommitFromPeerCallback interface.
func LiftFromExternalFirstCommitFromPeerCallback ¶ added in v0.3.0
func LiftFromExternalFirstCommitFromPeerCallback(handle uint64) FirstCommitFromPeerCallback
type FirstCommitFromPeerCallbackFn ¶
type FirstCommitFromPeerCallbackFn func(payload FirstCommitFromPeerPayload)
FirstCommitFromPeerCallbackFn adapts a function to the FirstCommitFromPeerCallback interface.
Use with LoroDoc.SubscribeFirstCommitFromPeer to detect when a new peer starts contributing to the document for the first time.
sub := doc.SubscribeFirstCommitFromPeer(loro.FirstCommitFromPeerCallbackFn(
func(payload loro.FirstCommitFromPeerPayload) {
fmt.Println("new peer joined:", payload.PeerId)
},
))
defer sub.Unsubscribe()
func (FirstCommitFromPeerCallbackFn) OnFirstCommitFromPeer ¶
func (fn FirstCommitFromPeerCallbackFn) OnFirstCommitFromPeer(payload FirstCommitFromPeerPayload)
type FirstCommitFromPeerCallbackImpl ¶
type FirstCommitFromPeerCallbackImpl struct {
// contains filtered or unexported fields
}
func (*FirstCommitFromPeerCallbackImpl) Destroy ¶
func (object *FirstCommitFromPeerCallbackImpl) Destroy()
func (*FirstCommitFromPeerCallbackImpl) OnFirstCommitFromPeer ¶
func (_self *FirstCommitFromPeerCallbackImpl) OnFirstCommitFromPeer(payload FirstCommitFromPeerPayload)
type FirstCommitFromPeerPayload ¶
type FirstCommitFromPeerPayload struct {
Peer uint64
}
func (*FirstCommitFromPeerPayload) Destroy ¶
func (r *FirstCommitFromPeerPayload) Destroy()
type FractionalIndex ¶
type FractionalIndex struct {
// contains filtered or unexported fields
}
func FractionalIndexFromBytes ¶
func FractionalIndexFromBytes(bytes []byte) *FractionalIndex
func FractionalIndexFromHexString ¶
func FractionalIndexFromHexString(str string) *FractionalIndex
func LiftFromExternalFractionalIndex ¶ added in v0.3.0
func LiftFromExternalFractionalIndex(handle uint64) *FractionalIndex
func (*FractionalIndex) Destroy ¶
func (object *FractionalIndex) Destroy()
func (*FractionalIndex) String ¶ added in v0.2.0
func (_self *FractionalIndex) String() string
type FractionalIndexInterface ¶
type FractionalIndexInterface interface {
}
type Frontiers ¶
type Frontiers struct {
// contains filtered or unexported fields
}
func FrontiersDecode ¶
func FrontiersFromId ¶
func FrontiersFromIds ¶
func LiftFromExternalFrontiers ¶ added in v0.3.0
func NewFrontiers ¶
func NewFrontiers() *Frontiers
type FrontiersInterface ¶
type FrontiersOrId ¶
func (*FrontiersOrId) Destroy ¶
func (r *FrontiersOrId) Destroy()
type GoRustBuffer ¶
type GoRustBuffer struct {
// contains filtered or unexported fields
}
This is needed, because as of go 1.24 type RustBuffer C.RustBuffer cannot have methods, RustBuffer is treated as non-local type
func RustBufferFromExternal ¶
func RustBufferFromExternal(b ExternalCRustBuffer) GoRustBuffer
func (GoRustBuffer) AsReader ¶
func (cb GoRustBuffer) AsReader() *bytes.Reader
func (GoRustBuffer) Capacity ¶
func (cb GoRustBuffer) Capacity() uint64
func (GoRustBuffer) Data ¶
func (cb GoRustBuffer) Data() unsafe.Pointer
func (GoRustBuffer) Free ¶
func (cb GoRustBuffer) Free()
func (GoRustBuffer) Len ¶
func (cb GoRustBuffer) Len() uint64
func (GoRustBuffer) ToGoBytes ¶
func (cb GoRustBuffer) ToGoBytes() []byte
type IdSpan ¶
type IdSpan struct {
Peer uint64
Counter CounterSpan
}
type ImportBlobMetadata ¶
type ImportBlobMetadata struct {
// The partial start version vector.
//
// Import blob includes all the ops from `partial_start_vv` to `partial_end_vv`.
// However, it does not constitute a complete version vector, as it only contains counters
// from peers included within the import blob.
PartialStartVv *VersionVector
// The partial end version vector.
//
// Import blob includes all the ops from `partial_start_vv` to `partial_end_vv`.
// However, it does not constitute a complete version vector, as it only contains counters
// from peers included within the import blob.
PartialEndVv *VersionVector
StartTimestamp int64
StartFrontiers *Frontiers
EndTimestamp int64
ChangeNum uint32
Mode string
}
func DecodeImportBlobMeta ¶
func DecodeImportBlobMeta(bytes []byte, checkChecksum bool) (ImportBlobMetadata, error)
Decodes the metadata for an imported blob from the provided bytes.
func (*ImportBlobMetadata) Destroy ¶
func (r *ImportBlobMetadata) Destroy()
type ImportStatus ¶
type ImportStatus struct {
Success map[uint64]CounterSpan
Pending *map[uint64]CounterSpan
}
func (*ImportStatus) Destroy ¶
func (r *ImportStatus) Destroy()
type Index ¶
type Index interface {
Destroy()
}
func PathKey ¶ added in v0.4.0
PathKey returns an Index that selects a map key. Equivalent to IndexKey{Key: k} but avoids the struct literal.
type JsonPathError ¶
type JsonPathError struct {
// contains filtered or unexported fields
}
func NewJsonPathErrorEvaluationError ¶
func NewJsonPathErrorEvaluationError() *JsonPathError
func NewJsonPathErrorInvalidJsonPath ¶
func NewJsonPathErrorInvalidJsonPath() *JsonPathError
func (*JsonPathError) AsError ¶
func (err *JsonPathError) AsError() error
Convenience method to turn *JsonPathError into error Avoiding treating nil pointer as non nil error interface
func (JsonPathError) Error ¶
func (err JsonPathError) Error() string
func (JsonPathError) Unwrap ¶
func (err JsonPathError) Unwrap() error
type JsonPathErrorEvaluationError ¶
type JsonPathErrorEvaluationError struct {
// contains filtered or unexported fields
}
func (JsonPathErrorEvaluationError) Error ¶
func (err JsonPathErrorEvaluationError) Error() string
func (JsonPathErrorEvaluationError) Is ¶
func (self JsonPathErrorEvaluationError) Is(target error) bool
type JsonPathErrorInvalidJsonPath ¶
type JsonPathErrorInvalidJsonPath struct {
// contains filtered or unexported fields
}
Variant structs
func (JsonPathErrorInvalidJsonPath) Error ¶
func (err JsonPathErrorInvalidJsonPath) Error() string
func (JsonPathErrorInvalidJsonPath) Is ¶
func (self JsonPathErrorInvalidJsonPath) Is(target error) bool
type JsonPathSubscriber ¶ added in v0.2.0
type JsonPathSubscriber interface {
// Called when a change may affect the subscribed JSONPath query.
OnJsonpathChanged()
}
func AsJsonPathSubscriber ¶ added in v0.4.0
func AsJsonPathSubscriber(fn JsonPathSubscriberFn) JsonPathSubscriber
AsJsonPathSubscriber adapts a function to the JsonPathSubscriber interface.
func LiftFromExternalJsonPathSubscriber ¶ added in v0.3.0
func LiftFromExternalJsonPathSubscriber(handle uint64) JsonPathSubscriber
type JsonPathSubscriberFn ¶ added in v0.4.0
type JsonPathSubscriberFn func()
JsonPathSubscriberFn adapts a function to the JsonPathSubscriber interface.
Use with LoroDoc.SubscribeJsonpath to be notified when a change might affect the result of a JSONPath query. The callback receives no arguments; re-evaluate the query to get the updated result.
sub, err := doc.SubscribeJsonpath("$.users[*].name", loro.JsonPathSubscriberFn(func() {
// a change may have affected the query result, re-evaluate it
results := doc.JsonpathQuery("$.users[*].name")
fmt.Println("names:", results)
}))
if err != nil {
log.Fatal(err)
}
defer sub.Unsubscribe()
func (JsonPathSubscriberFn) OnJsonpathChanged ¶ added in v0.4.0
func (fn JsonPathSubscriberFn) OnJsonpathChanged()
type JsonPathSubscriberImpl ¶ added in v0.2.0
type JsonPathSubscriberImpl struct {
// contains filtered or unexported fields
}
func (*JsonPathSubscriberImpl) Destroy ¶ added in v0.2.0
func (object *JsonPathSubscriberImpl) Destroy()
func (*JsonPathSubscriberImpl) OnJsonpathChanged ¶ added in v0.2.0
func (_self *JsonPathSubscriberImpl) OnJsonpathChanged()
Called when a change may affect the subscribed JSONPath query.
type ListDiffItem ¶
type ListDiffItem interface {
Destroy()
}
type ListDiffItemDelete ¶
type ListDiffItemDelete struct {
Delete uint32
}
Delete n elements from the list at the current index.
func (ListDiffItemDelete) Destroy ¶
func (e ListDiffItemDelete) Destroy()
type ListDiffItemInsert ¶
type ListDiffItemInsert struct {
Insert []*ValueOrContainer
IsMove bool
}
Insert a new element into the list.
func (ListDiffItemInsert) Destroy ¶
func (e ListDiffItemInsert) Destroy()
type ListDiffItemRetain ¶
type ListDiffItemRetain struct {
Retain uint32
}
Retain n elements in the list.
This is used to keep the current index unchanged.
func (ListDiffItemRetain) Destroy ¶
func (e ListDiffItemRetain) Destroy()
type LocalEphemeralListener ¶
type LocalEphemeralListener interface {
OnEphemeralUpdate(update []byte)
}
func AsLocalEphemeralListener ¶
func AsLocalEphemeralListener(fn LocalEphemeralListenerFn) LocalEphemeralListener
AsLocalEphemeralListener adapts a function to the LocalEphemeralListener interface.
func LiftFromExternalLocalEphemeralListener ¶ added in v0.3.0
func LiftFromExternalLocalEphemeralListener(handle uint64) LocalEphemeralListener
type LocalEphemeralListenerFn ¶
type LocalEphemeralListenerFn func(update []byte)
LocalEphemeralListenerFn adapts a function to the LocalEphemeralListener interface.
Use with EphemeralStore.SubscribeLocalUpdate to receive raw ephemeral update bytes whenever the local ephemeral store changes. Useful for broadcasting awareness data (e.g. cursor positions) to other peers.
sub := store.SubscribeLocalUpdate(loro.LocalEphemeralListenerFn(func(update []byte) {
_ = conn.Send(update) // broadcast ephemeral update
}))
defer sub.Unsubscribe()
func (LocalEphemeralListenerFn) OnEphemeralUpdate ¶
func (fn LocalEphemeralListenerFn) OnEphemeralUpdate(update []byte)
type LocalEphemeralListenerImpl ¶
type LocalEphemeralListenerImpl struct {
// contains filtered or unexported fields
}
func (*LocalEphemeralListenerImpl) Destroy ¶
func (object *LocalEphemeralListenerImpl) Destroy()
func (*LocalEphemeralListenerImpl) OnEphemeralUpdate ¶
func (_self *LocalEphemeralListenerImpl) OnEphemeralUpdate(update []byte)
type LocalUpdateCallback ¶
type LocalUpdateCallback interface {
OnLocalUpdate(update []byte)
}
func AsLocalUpdateCallback ¶
func AsLocalUpdateCallback(fn LocalUpdateCallbackFn) LocalUpdateCallback
AsLocalUpdateCallback adapts a function to the LocalUpdateCallback interface.
func LiftFromExternalLocalUpdateCallback ¶ added in v0.3.0
func LiftFromExternalLocalUpdateCallback(handle uint64) LocalUpdateCallback
type LocalUpdateCallbackFn ¶
type LocalUpdateCallbackFn func(update []byte)
LocalUpdateCallbackFn adapts a function to the LocalUpdateCallback interface.
Use with LoroDoc.SubscribeLocalUpdate to receive raw update bytes whenever the local document changes. Useful for syncing updates to a remote peer or persisting them to storage.
sub := doc.SubscribeLocalUpdate(loro.LocalUpdateCallbackFn(func(update []byte) {
_ = conn.Send(update) // send update to a remote peer
}))
defer sub.Unsubscribe()
func (LocalUpdateCallbackFn) OnLocalUpdate ¶
func (fn LocalUpdateCallbackFn) OnLocalUpdate(update []byte)
type LocalUpdateCallbackImpl ¶
type LocalUpdateCallbackImpl struct {
// contains filtered or unexported fields
}
func (*LocalUpdateCallbackImpl) Destroy ¶
func (object *LocalUpdateCallbackImpl) Destroy()
func (*LocalUpdateCallbackImpl) OnLocalUpdate ¶
func (_self *LocalUpdateCallbackImpl) OnLocalUpdate(update []byte)
type LoroCounter ¶
type LoroCounter struct {
// contains filtered or unexported fields
}
func GetLoroCounterContainer ¶
func GetLoroCounterContainer(v **ValueOrContainer) (*LoroCounter, bool)
GetLoroCounterContainer takes a pointer to a ValueOrContainer and returns the LoroCounter value if it is a LoroCounter.
func LiftFromExternalLoroCounter ¶ added in v0.3.0
func LiftFromExternalLoroCounter(handle uint64) *LoroCounter
func (*LoroCounter) Attached ¶ added in v0.4.0
func (c *LoroCounter) Attached() *LoroCounter
Attached returns the live attached version of this container, or nil if the container has been detached and has no attached counterpart.
func (*LoroCounter) Decrement ¶
func (_self *LoroCounter) Decrement(value float64) error
Decrement the counter by the given value.
func (*LoroCounter) Destroy ¶
func (object *LoroCounter) Destroy()
func (*LoroCounter) Doc ¶
func (_self *LoroCounter) Doc() **LoroDoc
Get the LoroDoc from this container
func (*LoroCounter) GetAttached ¶
func (_self *LoroCounter) GetAttached() **LoroCounter
If a detached container is attached, this method will return its corresponding attached handler.
func (*LoroCounter) GetValue ¶
func (_self *LoroCounter) GetValue() float64
Get the current value of the counter.
func (*LoroCounter) Id ¶
func (_self *LoroCounter) Id() ContainerId
Return container id of the Counter.
func (*LoroCounter) Increment ¶
func (_self *LoroCounter) Increment(value float64) error
Increment the counter by the given value.
func (*LoroCounter) IsAttached ¶
func (_self *LoroCounter) IsAttached() bool
Whether the container is attached to a document
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroCounter) IsDeleted ¶
func (_self *LoroCounter) IsDeleted() bool
Whether the container is deleted.
func (*LoroCounter) OwnerDoc ¶ added in v0.4.0
func (c *LoroCounter) OwnerDoc() *LoroDoc
OwnerDoc returns the LoroDoc this container is attached to, or nil if it is detached.
func (*LoroCounter) Subscribe ¶
func (_self *LoroCounter) Subscribe(subscriber Subscriber) **Subscription
Subscribe the events of a container.
The callback will be invoked when the container is changed. Returns a subscription that can be used to unsubscribe.
The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroCounter) SubscribeFn ¶ added in v0.4.0
func (c *LoroCounter) SubscribeFn(fn func(diff DiffEvent)) *Subscription
SubscribeFn is a convenience wrapper around LoroCounter.Subscribe that accepts a plain function instead of a Subscriber interface. Returns nil if the container is detached.
sub := counter.SubscribeFn(func(diff loro.DiffEvent) {
fmt.Println("counter changed")
})
if sub != nil {
defer sub.Unsubscribe()
}
type LoroCounterInterface ¶
type LoroCounterInterface interface {
// Decrement the counter by the given value.
Decrement(value float64) error
// Get the LoroDoc from this container
Doc() **LoroDoc
// If a detached container is attached, this method will return its corresponding attached handler.
GetAttached() **LoroCounter
// Get the current value of the counter.
GetValue() float64
// Return container id of the Counter.
Id() ContainerId
// Increment the counter by the given value.
Increment(value float64) error
// Whether the container is attached to a document
//
// The edits on a detached container will not be persisted.
// To attach the container to the document, please insert it into an attached container.
IsAttached() bool
// Whether the container is deleted.
IsDeleted() bool
// Subscribe the events of a container.
//
// The callback will be invoked when the container is changed.
// Returns a subscription that can be used to unsubscribe.
//
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Subscribe(subscriber Subscriber) **Subscription
}
type LoroDoc ¶
type LoroDoc struct {
// contains filtered or unexported fields
}
`LoroDoc` is the entry for the whole document. When it's dropped, all the associated [`Handler`]s will be invalidated.
**Important:** Loro is a pure library and does not handle network protocols. It is the responsibility of the user to manage the storage, loading, and synchronization of the bytes exported by Loro in a manner suitable for their specific environment.
func LiftFromExternalLoroDoc ¶ added in v0.3.0
func (*LoroDoc) ApplyDiff ¶
Apply a diff to the current document state.
Internally, it will apply the diff to the current state.
func (*LoroDoc) Attach ¶
func (_self *LoroDoc) Attach()
Attach the document state to the latest known version.
> The document becomes detached during a `checkout` operation. > Being `detached` implies that the `DocState` is not synchronized with the latest version of the `OpLog`. > In a detached state, the document is not editable, and any `import` operations will be > recorded in the `OpLog` without being applied to the `DocState`.
func (*LoroDoc) CheckStateCorrectnessSlow ¶
func (_self *LoroDoc) CheckStateCorrectnessSlow()
Check the correctness of the document state by comparing it with the state calculated by applying all the history.
func (*LoroDoc) Checkout ¶
Checkout the `DocState` to a specific version.
The document becomes detached during a `checkout` operation. Being `detached` implies that the `DocState` is not synchronized with the latest version of the `OpLog`. In a detached state, the document is not editable, and any `import` operations will be recorded in the `OpLog` without being applied to the `DocState`.
You should call `attach` to attach the `DocState` to the latest version of `OpLog`.
func (*LoroDoc) CheckoutToLatest ¶
func (_self *LoroDoc) CheckoutToLatest()
Checkout the `DocState` to the latest version.
> The document becomes detached during a `checkout` operation. > Being `detached` implies that the `DocState` is not synchronized with the latest version of the `OpLog`. > In a detached state, the document is not editable, and any `import` operations will be > recorded in the `OpLog` without being applied to the `DocState`.
This has the same effect as `attach`.
func (*LoroDoc) ClearNextCommitOptions ¶
func (_self *LoroDoc) ClearNextCommitOptions()
Clear the options of the next commit.
func (*LoroDoc) CmpWithFrontiers ¶
Compare the frontiers with the current OpLog's version.
If `other` contains any version that's not contained in the current OpLog, return [Ordering::Less].
func (*LoroDoc) Commit ¶
func (_self *LoroDoc) Commit()
Commit the cumulative auto commit transaction.
There is a transaction behind every operation. The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroDoc) CommitWith ¶
func (_self *LoroDoc) CommitWith(options CommitOptions)
func (*LoroDoc) CompactChangeStore ¶
func (_self *LoroDoc) CompactChangeStore()
Encoded all ops and history cache to bytes and store them in the kv store.
The parsed ops will be dropped
func (*LoroDoc) ConfigDefaultTextStyle ¶
func (_self *LoroDoc) ConfigDefaultTextStyle(textStyle *StyleConfig)
Configures the default text style for the document.
This method sets the default text style configuration for the document when using LoroText. If `None` is provided, the default style is reset.
Parameters ¶
- `text_style`: The style configuration to set as the default. `None` to reset.
func (*LoroDoc) ConfigTextStyle ¶
func (_self *LoroDoc) ConfigTextStyle(textStyle *StyleConfigMap)
Set the rich text format configuration of the document.
You need to config it if you use rich text `mark` method. Specifically, you need to config the `expand` property of each style.
Expand is used to specify the behavior of expanding when new text is inserted at the beginning or end of the style.
func (*LoroDoc) DeleteRootContainer ¶
func (_self *LoroDoc) DeleteRootContainer(cid ContainerId)
Delete all content from a root container and hide it from the document.
When a root container is empty and hidden: - It won't show up in `get_deep_value()` results - It won't be included in document snapshots
Only works on root containers (containers without parents).
func (*LoroDoc) Detach ¶
func (_self *LoroDoc) Detach()
Force the document enter the detached mode.
In this mode, when you importing new updates, the [loro_internal::DocState] will not be changed.
Learn more at https://loro.dev/docs/advanced/doc_state_and_oplog#attacheddetached-status
func (*LoroDoc) Export ¶ added in v0.3.0
func (_self *LoroDoc) Export(mode ExportMode) ([]byte, error)
Export the document in the given mode.
func (*LoroDoc) ExportJsonInIdSpan ¶
Exports changes within the specified ID span to JSON schema format.
The JSON schema format produced by this method is identical to the one generated by `export_json_updates`. It ensures deterministic output, making it ideal for hash calculations and integrity checks.
This method can also export pending changes from the uncommitted transaction that have not yet been applied to the OpLog.
This method will NOT trigger a new commit implicitly.
func (*LoroDoc) ExportJsonUpdates ¶
func (_self *LoroDoc) ExportJsonUpdates(startVv *VersionVector, endVv *VersionVector) string
Export the current state with json-string format of the document.
func (*LoroDoc) ExportJsonUpdatesWithoutPeerCompression ¶
func (_self *LoroDoc) ExportJsonUpdatesWithoutPeerCompression(startVv *VersionVector, endVv *VersionVector) string
Export the current state with json-string format of the document, without peer compression.
Compared to [`export_json_updates`], this method does not compress the peer IDs in the updates. So the operations are easier to be processed by application code.
func (*LoroDoc) ExportShallowSnapshot ¶
func (*LoroDoc) ExportSnapshot ¶
Export the current state and history of the document.
func (*LoroDoc) ExportSnapshotAt ¶
func (*LoroDoc) ExportStateOnly ¶
func (*LoroDoc) ExportUpdates ¶
func (_self *LoroDoc) ExportUpdates(vv *VersionVector) ([]byte, error)
Export all the ops not included in the given `VersionVector`
func (*LoroDoc) ExportUpdatesInRange ¶
func (*LoroDoc) FindByPath ¶ added in v0.4.0
func (d *LoroDoc) FindByPath(parts ...any) *ValueOrContainer
FindByPath returns the value or container at the given path, or nil if the path does not resolve.
Path parts are converted to Index values: strings become IndexKey, signed and unsigned integer types become IndexSeq, and TreeId becomes IndexNode. Index values are passed through unchanged. Any other type panics.
v := doc.FindByPath("users", 0, "name")
func (*LoroDoc) FindByStrPath ¶ added in v0.4.0
func (d *LoroDoc) FindByStrPath(path string) *ValueOrContainer
FindByStrPath returns the value or container at the given string path, or nil if the path does not resolve.
func (*LoroDoc) FindContainer ¶ added in v0.4.0
func (d *LoroDoc) FindContainer(id ContainerId) *ValueOrContainer
FindContainer returns the value or container with the given id, or nil if no such container exists.
func (*LoroDoc) FindCounter ¶ added in v0.4.0
func (d *LoroDoc) FindCounter(id ContainerIdLike) *LoroCounter
FindCounter returns the counter at id, or nil if no such container exists. Unlike GetCounter, it does not create the container if absent.
func (*LoroDoc) FindIdSpansBetween ¶
func (_self *LoroDoc) FindIdSpansBetween(from *Frontiers, to *Frontiers) VersionVectorDiff
Find the operation id spans that between the `from` version and the `to` version.
func (*LoroDoc) FindList ¶ added in v0.4.0
func (d *LoroDoc) FindList(id ContainerIdLike) *LoroList
FindList returns the list at id, or nil if no such container exists. Unlike GetList, it does not create the container if absent.
func (*LoroDoc) FindMap ¶ added in v0.4.0
func (d *LoroDoc) FindMap(id ContainerIdLike) *LoroMap
FindMap returns the map at id, or nil if no such container exists. Unlike GetMap, it does not create the container if absent.
func (*LoroDoc) FindMovableList ¶ added in v0.4.0
func (d *LoroDoc) FindMovableList(id ContainerIdLike) *LoroMovableList
FindMovableList returns the movable list at id, or nil if no such container exists. Unlike GetMovableList, it does not create the container if absent.
func (*LoroDoc) FindText ¶ added in v0.4.0
func (d *LoroDoc) FindText(id ContainerIdLike) *LoroText
FindText returns the text container at id, or nil if no such container exists. Unlike GetText, it does not create the container if absent.
func (*LoroDoc) FindTree ¶ added in v0.4.0
func (d *LoroDoc) FindTree(id ContainerIdLike) *LoroTree
FindTree returns the tree at id, or nil if no such container exists. Unlike GetTree, it does not create the container if absent.
func (*LoroDoc) Fork ¶
Duplicate the document with a different PeerID
The time complexity and space complexity of this operation are both O(n),
When called in detached mode, it will fork at the current state frontiers. It will have the same effect as `fork_at(&self.state_frontiers())`.
func (*LoroDoc) ForkAt ¶
Fork the document at the given frontiers.
The created doc will only contain the history before the specified frontiers.
func (*LoroDoc) FreeDiffCalculator ¶
func (_self *LoroDoc) FreeDiffCalculator()
Free the cached diff calculator that is used for checkout.
func (*LoroDoc) FreeHistoryCache ¶
func (_self *LoroDoc) FreeHistoryCache()
Free the history cache that is used for making checkout faster.
If you use checkout that switching to an old/concurrent version, the history cache will be built. You can free it by calling this method.
func (*LoroDoc) FrontiersToVv ¶
func (_self *LoroDoc) FrontiersToVv(frontiers *Frontiers) **VersionVector
Convert `Frontiers` into `VersionVector`
func (*LoroDoc) GetByPath ¶
func (_self *LoroDoc) GetByPath(path []Index) **ValueOrContainer
Get the handler by the path.
func (*LoroDoc) GetByStrPath ¶
func (_self *LoroDoc) GetByStrPath(path string) **ValueOrContainer
The path can be specified in different ways depending on the container type:
For Tree: 1. Using node IDs: `tree/{node_id}/property` 2. Using indices: `tree/0/1/property`
For List and MovableList: - Using indices: `list/0` or `list/1/property`
For Map: - Using keys: `map/key` or `map/nested/property`
For tree structures, index-based paths follow depth-first traversal order. The indices start from 0 and represent the position of a node among its siblings.
# Examples ``` # use loro::{LoroDoc, LoroValue}; let doc = LoroDoc::new();
// Tree example let tree = doc.get_tree("tree"); let root = tree.create(None).unwrap(); tree.get_meta(root).unwrap().insert("name", "root").unwrap(); // Access tree by ID or index let name1 = doc.get_by_str_path(&format!("tree/{}/name", root)).unwrap().into_value().unwrap(); let name2 = doc.get_by_str_path("tree/0/name").unwrap().into_value().unwrap(); assert_eq!(name1, name2);
// List example let list = doc.get_list("list"); list.insert(0, "first").unwrap(); list.insert(1, "second").unwrap(); // Access list by index let item = doc.get_by_str_path("list/0"); assert_eq!(item.unwrap().into_value().unwrap().into_string().unwrap(), "first".into());
// Map example let map = doc.get_map("map"); map.insert("key", "value").unwrap(); // Access map by key let value = doc.get_by_str_path("map/key"); assert_eq!(value.unwrap().into_value().unwrap().into_string().unwrap(), "value".into());
// MovableList example let mlist = doc.get_movable_list("mlist"); mlist.insert(0, "item").unwrap(); // Access movable list by index let item = doc.get_by_str_path("mlist/0"); assert_eq!(item.unwrap().into_value().unwrap().into_string().unwrap(), "item".into()); ```
func (*LoroDoc) GetChange ¶
func (_self *LoroDoc) GetChange(id Id) *ChangeMeta
Get `Change` at the given id.
`Change` is a grouped continuous operations that share the same id, timestamp, commit message.
- The id of the `Change` is the id of its first op. - The second op's id is `{ peer: change.id.peer, counter: change.id.counter + 1 }`
The same applies on `Lamport`:
- The lamport of the `Change` is the lamport of its first op. - The second op's lamport is `change.lamport + 1`
The length of the `Change` is how many operations it contains
func (*LoroDoc) GetChangedContainersIn ¶
func (_self *LoroDoc) GetChangedContainersIn(id Id, len uint32) []ContainerId
Gets container IDs modified in the given ID range.
**NOTE:** This method will implicitly commit.
This method can be used in conjunction with `doc.travel_change_ancestors()` to traverse the history and identify all changes that affected specific containers.
Arguments ¶
* `id` - The starting ID of the change range * `len` - The length of the change range to check
func (*LoroDoc) GetContainer ¶ added in v0.2.0
func (_self *LoroDoc) GetContainer(id ContainerId) **ValueOrContainer
Get a container by container id.
func (*LoroDoc) GetCounter ¶
func (_self *LoroDoc) GetCounter(id ContainerIdLike) *LoroCounter
Get a LoroCounter by container id.
If the provided id is string, it will be converted into a root container id with the name of the string.
func (*LoroDoc) GetCursorPos ¶
func (_self *LoroDoc) GetCursorPos(cursor *Cursor) (PosQueryResult, error)
func (*LoroDoc) GetDeepValue ¶
Get the entire state of the current DocState
func (*LoroDoc) GetDeepValueWithId ¶
Get the entire state of the current DocState with container id
func (*LoroDoc) GetList ¶
func (_self *LoroDoc) GetList(id ContainerIdLike) *LoroList
Get a LoroList by container id.
If the provided id is string, it will be converted into a root container id with the name of the string.
func (*LoroDoc) GetMap ¶
func (_self *LoroDoc) GetMap(id ContainerIdLike) *LoroMap
Get a LoroMap by container id.
If the provided id is string, it will be converted into a root container id with the name of the string.
func (*LoroDoc) GetMovableList ¶
func (_self *LoroDoc) GetMovableList(id ContainerIdLike) *LoroMovableList
Get a LoroMovableList by container id.
If the provided id is string, it will be converted into a root container id with the name of the string.
func (*LoroDoc) GetPathToContainer ¶
func (_self *LoroDoc) GetPathToContainer(id ContainerId) *[]ContainerPath
Get the path from the root to the container
func (*LoroDoc) GetPendingTxnLen ¶
Get the number of operations in the pending transaction.
The pending transaction is the one that is not committed yet. It will be committed after calling `doc.commit()`, `doc.export(mode)` or `doc.checkout(version)`.
func (*LoroDoc) GetText ¶
func (_self *LoroDoc) GetText(id ContainerIdLike) *LoroText
Get a LoroText by container id.
If the provided id is string, it will be converted into a root container id with the name of the string.
func (*LoroDoc) GetTree ¶
func (_self *LoroDoc) GetTree(id ContainerIdLike) *LoroTree
Get a LoroTree by container id.
If the provided id is string, it will be converted into a root container id with the name of the string.
func (*LoroDoc) HasContainer ¶
func (_self *LoroDoc) HasContainer(id ContainerId) bool
Check if the doc contains the target container.
A root container always exists, while a normal container exists if it has ever been created on the doc.
func (*LoroDoc) HasHistoryCache ¶
func (*LoroDoc) Import ¶
func (_self *LoroDoc) Import(bytes []byte) (ImportStatus, error)
Import updates/snapshot exported by [`LoroDoc::export_snapshot`] or [`LoroDoc::export_from`].
func (*LoroDoc) ImportBatch ¶
func (_self *LoroDoc) ImportBatch(bytes [][]byte) (ImportStatus, error)
Import a batch of updates/snapshot.
The data can be in arbitrary order. The import result will be the same.
func (*LoroDoc) ImportJsonUpdates ¶
func (_self *LoroDoc) ImportJsonUpdates(json string) (ImportStatus, error)
func (*LoroDoc) ImportWith ¶
func (_self *LoroDoc) ImportWith(bytes []byte, origin string) (ImportStatus, error)
Import updates/snapshot exported by [`LoroDoc::export_snapshot`] or [`LoroDoc::export_from`].
It marks the import with a custom `origin` string. It can be used to track the import source in the generated events.
func (*LoroDoc) IsDetached ¶
Whether the document is in detached mode, where the [loro_internal::DocState] is not synchronized with the latest version of the [loro_internal::OpLog].
func (*LoroDoc) Jsonpath ¶
func (_self *LoroDoc) Jsonpath(path string) ([]*ValueOrContainer, error)
Evaluate a JSONPath expression on the document and return matching values or handlers.
This method allows querying the document structure using JSONPath syntax. It returns a vector of `ValueOrHandler` which can represent either primitive values or container handlers, depending on what the JSONPath expression matches.
Arguments ¶
* `path` - A string slice containing the JSONPath expression to evaluate.
Returns ¶
A `Result` containing either: - `Ok(Vec<ValueOrHandler>)`: A vector of matching values or handlers. - `Err(String)`: An error message if the JSONPath expression is invalid or evaluation fails.
Example ¶
``` # use loro::LoroDoc; let doc = LoroDoc::new(); let map = doc.get_map("users"); map.insert("alice", 30).unwrap(); map.insert("bob", 25).unwrap();
let result = doc.jsonpath("$.users.alice").unwrap(); assert_eq!(result.len(), 1); assert_eq!(result[0].to_json_value(), serde_json::json!(30)); ```
func (*LoroDoc) LenChanges ¶
Get the total number of changes in the `OpLog`
func (*LoroDoc) MinimizeFrontiers ¶
func (_self *LoroDoc) MinimizeFrontiers(frontiers *Frontiers) FrontiersOrId
Minimize the frontiers by removing the unnecessary entries.
func (*LoroDoc) OplogFrontiers ¶
Get the `Frontiers` version of `OpLog`
func (*LoroDoc) OplogVv ¶
func (_self *LoroDoc) OplogVv() *VersionVector
Get the `VersionVector` version of `OpLog`
func (*LoroDoc) RedactJsonUpdates ¶
func (_self *LoroDoc) RedactJsonUpdates(json string, versionRange *VersionRange) (string, error)
Redacts sensitive content in JSON updates within the specified version range.
This function allows you to share document history while removing potentially sensitive content. It preserves the document structure and collaboration capabilities while replacing content with placeholders according to these redaction rules:
- Preserves delete and move operations - Replaces text insertion content with the Unicode replacement character - Substitutes list and map insert values with null - Maintains structure of child containers - Replaces text mark values with null - Preserves map keys and text annotation keys
func (*LoroDoc) RevertTo ¶
Revert the current document state back to the target version
Internally, it will generate a series of local operations that can revert the current doc to the target version. It will calculate the diff between the current state and the target state, and apply the diff to the current state.
func (*LoroDoc) SetChangeMergeInterval ¶
Set the interval of mergeable changes, **in seconds**.
If two continuous local changes are within the interval, they will be merged into one change. The default value is 1000 seconds.
By default, we record timestamps in seconds for each change. So if the merge interval is 1, and changes A and B have timestamps of 3 and 4 respectively, then they will be merged into one change
func (*LoroDoc) SetHideEmptyRootContainers ¶
Set whether to hide empty root containers.
func (*LoroDoc) SetNextCommitMessage ¶
Set commit message for the current uncommitted changes
It will be persisted.
func (*LoroDoc) SetNextCommitOptions ¶
func (_self *LoroDoc) SetNextCommitOptions(options CommitOptions)
Set the options of the next commit.
It will be used when the next commit is performed.
func (*LoroDoc) SetNextCommitOrigin ¶
Set `origin` for the current uncommitted changes, it can be used to track the source of changes in an event.
It will NOT be persisted.
func (*LoroDoc) SetNextCommitTimestamp ¶
Set the timestamp of the next commit.
It will be persisted and stored in the `OpLog`. You can get the timestamp from the [`Change`] type.
func (*LoroDoc) SetPeerId ¶
Change the PeerID
NOTE: You need to make sure there is no chance two peer have the same PeerID. If it happens, the document will be corrupted.
func (*LoroDoc) SetRecordTimestamp ¶
Set whether to record the timestamp of each change. Default is `false`.
If enabled, the Unix timestamp will be recorded for each change automatically.
You can set each timestamp manually when committing a change.
NOTE: Timestamps are forced to be in ascending order. If you commit a new change with a timestamp that is less than the existing one, the largest existing timestamp will be used instead.
func (*LoroDoc) ShallowSinceVv ¶
func (_self *LoroDoc) ShallowSinceVv() *VersionVector
Get the `VersionVector` of trimmed history
The ops included by the trimmed history are not in the doc.
func (*LoroDoc) StateFrontiers ¶
Get the `Frontiers` version of `DocState`
Learn more about [`Frontiers`](https://loro.dev/docs/advanced/version_deep_dive)
func (*LoroDoc) StateVv ¶
func (_self *LoroDoc) StateVv() *VersionVector
Get the `VersionVector` version of `DocState`
func (*LoroDoc) Subscribe ¶
func (_self *LoroDoc) Subscribe(containerId ContainerId, subscriber Subscriber) *Subscription
Subscribe the events of a container.
The callback will be invoked when the container is changed. Returns a subscription that can be used to unsubscribe.
The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroDoc) SubscribeFirstCommitFromPeer ¶
func (_self *LoroDoc) SubscribeFirstCommitFromPeer(callback FirstCommitFromPeerCallback) *Subscription
Subscribe to the first commit from a peer. Operations performed on the `LoroDoc` within this callback will be merged into the current commit.
This is useful for managing the relationship between `PeerID` and user information. For example, you could store user names in a `LoroMap` using `PeerID` as the key and the `UserID` as the value.
func (*LoroDoc) SubscribeFirstCommitFromPeerFn ¶ added in v0.4.0
func (doc *LoroDoc) SubscribeFirstCommitFromPeerFn(fn func(payload FirstCommitFromPeerPayload)) *Subscription
SubscribeFirstCommitFromPeerFn is a convenience wrapper around LoroDoc.SubscribeFirstCommitFromPeer that accepts a plain function instead of a FirstCommitFromPeerCallback interface.
sub := doc.SubscribeFirstCommitFromPeerFn(func(payload loro.FirstCommitFromPeerPayload) {
fmt.Println("new peer:", payload.PeerId)
})
defer sub.Unsubscribe()
func (*LoroDoc) SubscribeFn ¶ added in v0.4.0
func (doc *LoroDoc) SubscribeFn(containerId ContainerId, fn func(diff DiffEvent)) *Subscription
SubscribeFn is a convenience wrapper around LoroDoc.Subscribe that accepts a plain function instead of a Subscriber interface.
sub := doc.SubscribeFn(containerId, func(diff loro.DiffEvent) {
fmt.Println("container changed:", diff.TriggeredBy)
})
defer sub.Unsubscribe()
func (*LoroDoc) SubscribeJsonpath ¶ added in v0.2.0
func (_self *LoroDoc) SubscribeJsonpath(path string, callback JsonPathSubscriber) (*Subscription, error)
Subscribe to updates that might affect the given JSONPath query.
The callback may fire false positives; it is intended as a lightweight notification so callers can debounce or throttle before re-running JSONPath themselves.
func (*LoroDoc) SubscribeJsonpathFn ¶ added in v0.4.0
func (doc *LoroDoc) SubscribeJsonpathFn(path string, fn func()) (*Subscription, error)
SubscribeJsonpathFn is a convenience wrapper around LoroDoc.SubscribeJsonpath that accepts a plain function instead of a JsonPathSubscriber interface.
sub, err := doc.SubscribeJsonpathFn("$.users[*].name", func() {
results := doc.JsonpathQuery("$.users[*].name")
fmt.Println("names:", results)
})
if err != nil {
log.Fatal(err)
}
defer sub.Unsubscribe()
func (*LoroDoc) SubscribeLocalUpdate ¶
func (_self *LoroDoc) SubscribeLocalUpdate(callback LocalUpdateCallback) *Subscription
Subscribe the local update of the document.
func (*LoroDoc) SubscribeLocalUpdateFn ¶ added in v0.4.0
func (doc *LoroDoc) SubscribeLocalUpdateFn(fn func(update []byte)) *Subscription
SubscribeLocalUpdateFn is a convenience wrapper around LoroDoc.SubscribeLocalUpdate that accepts a plain function instead of a LocalUpdateCallback interface.
sub := doc.SubscribeLocalUpdateFn(func(update []byte) {
_ = conn.Send(update)
})
defer sub.Unsubscribe()
func (*LoroDoc) SubscribePreCommit ¶
func (_self *LoroDoc) SubscribePreCommit(callback PreCommitCallback) *Subscription
Subscribe to the pre-commit event.
The callback will be called when the changes are committed but not yet applied to the OpLog. You can modify the commit message and timestamp in the callback by [`ChangeModifier`].
func (*LoroDoc) SubscribePreCommitFn ¶ added in v0.4.0
func (doc *LoroDoc) SubscribePreCommitFn(fn func(payload PreCommitCallbackPayload)) *Subscription
SubscribePreCommitFn is a convenience wrapper around LoroDoc.SubscribePreCommit that accepts a plain function instead of a PreCommitCallback interface.
sub := doc.SubscribePreCommitFn(func(payload loro.PreCommitCallbackPayload) {
payload.Modifier.SetMessage("auto-tagged")
})
defer sub.Unsubscribe()
func (*LoroDoc) SubscribeRoot ¶
func (_self *LoroDoc) SubscribeRoot(subscriber Subscriber) *Subscription
Subscribe all the events.
The callback will be invoked when any part of the [loro_internal::DocState] is changed. Returns a subscription that can be used to unsubscribe.
func (*LoroDoc) SubscribeRootFn ¶ added in v0.4.0
func (doc *LoroDoc) SubscribeRootFn(fn func(diff DiffEvent)) *Subscription
SubscribeRootFn is a convenience wrapper around LoroDoc.SubscribeRoot that accepts a plain function instead of a Subscriber interface.
sub := doc.SubscribeRootFn(func(diff loro.DiffEvent) {
fmt.Println("document changed:", diff.TriggeredBy)
})
defer sub.Unsubscribe()
func (*LoroDoc) TravelChangeAncestors ¶
func (_self *LoroDoc) TravelChangeAncestors(ids []Id, f ChangeAncestorsTraveler) error
Traverses the ancestors of the Change containing the given ID, including itself.
This method visits all ancestors in causal order, from the latest to the oldest, based on their Lamport timestamps.
Arguments ¶
* `ids` - The IDs of the Change to start the traversal from. * `f` - A mutable function that is called for each ancestor. It can return `ControlFlow::Break(())` to stop the traversal.
func (*LoroDoc) TravelChangeAncestorsFn ¶ added in v0.4.0
func (doc *LoroDoc) TravelChangeAncestorsFn(ids []Id, fn func(change ChangeMeta) bool) error
TravelChangeAncestorsFn is a convenience wrapper around LoroDoc.TravelChangeAncestors that accepts a plain function instead of a ChangeAncestorsTraveler interface. Return true to continue traversal, or false to stop early.
doc.TravelChangeAncestorsFn(ids, func(change loro.ChangeMeta) bool {
fmt.Println("peer:", change.Id.Peer)
return true
})
func (*LoroDoc) TryGetCounter ¶ added in v0.4.0
func (_self *LoroDoc) TryGetCounter(id ContainerIdLike) **LoroCounter
Try to get a LoroCounter by container id.
Returns null if the container does not exist.
func (*LoroDoc) TryGetList ¶ added in v0.4.0
func (_self *LoroDoc) TryGetList(id ContainerIdLike) **LoroList
Try to get a LoroList by container id.
Returns null if the container does not exist.
func (*LoroDoc) TryGetMap ¶ added in v0.4.0
func (_self *LoroDoc) TryGetMap(id ContainerIdLike) **LoroMap
Try to get a LoroMap by container id.
Returns null if the container does not exist.
func (*LoroDoc) TryGetMovableList ¶ added in v0.4.0
func (_self *LoroDoc) TryGetMovableList(id ContainerIdLike) **LoroMovableList
Try to get a LoroMovableList by container id.
Returns null if the container does not exist.
func (*LoroDoc) TryGetText ¶ added in v0.4.0
func (_self *LoroDoc) TryGetText(id ContainerIdLike) **LoroText
Try to get a LoroText by container id.
Returns null if the container does not exist.
func (*LoroDoc) TryGetTree ¶ added in v0.4.0
func (_self *LoroDoc) TryGetTree(id ContainerIdLike) **LoroTree
Try to get a LoroTree by container id.
Returns null if the container does not exist.
func (*LoroDoc) VvToFrontiers ¶
func (_self *LoroDoc) VvToFrontiers(vv *VersionVector) *Frontiers
Convert `VersionVector` into `Frontiers`
type LoroDocInterface ¶
type LoroDocInterface interface {
// Apply a diff to the current document state.
//
// Internally, it will apply the diff to the current state.
ApplyDiff(diff *DiffBatch) error
// Attach the document state to the latest known version.
//
// > The document becomes detached during a `checkout` operation.
// > Being `detached` implies that the `DocState` is not synchronized with the latest version of the `OpLog`.
// > In a detached state, the document is not editable, and any `import` operations will be
// > recorded in the `OpLog` without being applied to the `DocState`.
Attach()
// Check the correctness of the document state by comparing it with the state
// calculated by applying all the history.
CheckStateCorrectnessSlow()
// Checkout the `DocState` to a specific version.
//
// The document becomes detached during a `checkout` operation.
// Being `detached` implies that the `DocState` is not synchronized with the latest version of the `OpLog`.
// In a detached state, the document is not editable, and any `import` operations will be
// recorded in the `OpLog` without being applied to the `DocState`.
//
// You should call `attach` to attach the `DocState` to the latest version of `OpLog`.
Checkout(frontiers *Frontiers) error
// Checkout the `DocState` to the latest version.
//
// > The document becomes detached during a `checkout` operation.
// > Being `detached` implies that the `DocState` is not synchronized with the latest version of the `OpLog`.
// > In a detached state, the document is not editable, and any `import` operations will be
// > recorded in the `OpLog` without being applied to the `DocState`.
//
// This has the same effect as `attach`.
CheckoutToLatest()
// Clear the options of the next commit.
ClearNextCommitOptions()
// Compare the frontiers with the current OpLog's version.
//
// If `other` contains any version that's not contained in the current OpLog, return [Ordering::Less].
CmpWithFrontiers(other *Frontiers) Ordering
// Commit the cumulative auto commit transaction.
//
// There is a transaction behind every operation.
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Commit()
CommitWith(options CommitOptions)
// Encoded all ops and history cache to bytes and store them in the kv store.
//
// The parsed ops will be dropped
CompactChangeStore()
// Get the configurations of the document.
Config() *Configure
// Configures the default text style for the document.
//
// This method sets the default text style configuration for the document when using LoroText.
// If `None` is provided, the default style is reset.
//
// # Parameters
//
// - `text_style`: The style configuration to set as the default. `None` to reset.
ConfigDefaultTextStyle(textStyle *StyleConfig)
// Set the rich text format configuration of the document.
//
// You need to config it if you use rich text `mark` method.
// Specifically, you need to config the `expand` property of each style.
//
// Expand is used to specify the behavior of expanding when new text is inserted at the
// beginning or end of the style.
ConfigTextStyle(textStyle *StyleConfigMap)
// Delete all content from a root container and hide it from the document.
//
// When a root container is empty and hidden:
// - It won't show up in `get_deep_value()` results
// - It won't be included in document snapshots
//
// Only works on root containers (containers without parents).
DeleteRootContainer(cid ContainerId)
// Force the document enter the detached mode.
//
// In this mode, when you importing new updates, the [loro_internal::DocState] will not be changed.
//
// Learn more at https://loro.dev/docs/advanced/doc_state_and_oplog#attacheddetached-status
Detach()
// Calculate the diff between two versions
Diff(a *Frontiers, b *Frontiers) (*DiffBatch, error)
// Export the document in the given mode.
Export(mode ExportMode) ([]byte, error)
// Exports changes within the specified ID span to JSON schema format.
//
// The JSON schema format produced by this method is identical to the one generated by `export_json_updates`.
// It ensures deterministic output, making it ideal for hash calculations and integrity checks.
//
// This method can also export pending changes from the uncommitted transaction that have not yet been applied to the OpLog.
//
// This method will NOT trigger a new commit implicitly.
ExportJsonInIdSpan(idSpan IdSpan) []string
// Export the current state with json-string format of the document.
ExportJsonUpdates(startVv *VersionVector, endVv *VersionVector) string
// Export the current state with json-string format of the document, without peer compression.
//
// Compared to [`export_json_updates`], this method does not compress the peer IDs in the updates.
// So the operations are easier to be processed by application code.
ExportJsonUpdatesWithoutPeerCompression(startVv *VersionVector, endVv *VersionVector) string
ExportShallowSnapshot(frontiers *Frontiers) ([]byte, error)
// Export the current state and history of the document.
ExportSnapshot() ([]byte, error)
ExportSnapshotAt(frontiers *Frontiers) ([]byte, error)
ExportStateOnly(frontiers **Frontiers) ([]byte, error)
// Export all the ops not included in the given `VersionVector`
ExportUpdates(vv *VersionVector) ([]byte, error)
ExportUpdatesInRange(spans []IdSpan) ([]byte, error)
// Find the operation id spans that between the `from` version and the `to` version.
FindIdSpansBetween(from *Frontiers, to *Frontiers) VersionVectorDiff
// Duplicate the document with a different PeerID
//
// The time complexity and space complexity of this operation are both O(n),
//
// When called in detached mode, it will fork at the current state frontiers.
// It will have the same effect as `fork_at(&self.state_frontiers())`.
Fork() *LoroDoc
// Fork the document at the given frontiers.
//
// The created doc will only contain the history before the specified frontiers.
ForkAt(frontiers *Frontiers) (*LoroDoc, error)
// Free the cached diff calculator that is used for checkout.
FreeDiffCalculator()
// Free the history cache that is used for making checkout faster.
//
// If you use checkout that switching to an old/concurrent version, the history cache will be built.
// You can free it by calling this method.
FreeHistoryCache()
// Convert `Frontiers` into `VersionVector`
FrontiersToVv(frontiers *Frontiers) **VersionVector
// Get the handler by the path.
GetByPath(path []Index) **ValueOrContainer
// The path can be specified in different ways depending on the container type:
//
// For Tree:
// 1. Using node IDs: `tree/{node_id}/property`
// 2. Using indices: `tree/0/1/property`
//
// For List and MovableList:
// - Using indices: `list/0` or `list/1/property`
//
// For Map:
// - Using keys: `map/key` or `map/nested/property`
//
// For tree structures, index-based paths follow depth-first traversal order.
// The indices start from 0 and represent the position of a node among its siblings.
//
// # Examples
// “`
// # use loro::{LoroDoc, LoroValue};
// let doc = LoroDoc::new();
//
// // Tree example
// let tree = doc.get_tree("tree");
// let root = tree.create(None).unwrap();
// tree.get_meta(root).unwrap().insert("name", "root").unwrap();
// // Access tree by ID or index
// let name1 = doc.get_by_str_path(&format!("tree/{}/name", root)).unwrap().into_value().unwrap();
// let name2 = doc.get_by_str_path("tree/0/name").unwrap().into_value().unwrap();
// assert_eq!(name1, name2);
//
// // List example
// let list = doc.get_list("list");
// list.insert(0, "first").unwrap();
// list.insert(1, "second").unwrap();
// // Access list by index
// let item = doc.get_by_str_path("list/0");
// assert_eq!(item.unwrap().into_value().unwrap().into_string().unwrap(), "first".into());
//
// // Map example
// let map = doc.get_map("map");
// map.insert("key", "value").unwrap();
// // Access map by key
// let value = doc.get_by_str_path("map/key");
// assert_eq!(value.unwrap().into_value().unwrap().into_string().unwrap(), "value".into());
//
// // MovableList example
// let mlist = doc.get_movable_list("mlist");
// mlist.insert(0, "item").unwrap();
// // Access movable list by index
// let item = doc.get_by_str_path("mlist/0");
// assert_eq!(item.unwrap().into_value().unwrap().into_string().unwrap(), "item".into());
// “`
GetByStrPath(path string) **ValueOrContainer
// Get `Change` at the given id.
//
// `Change` is a grouped continuous operations that share the same id, timestamp, commit message.
//
// - The id of the `Change` is the id of its first op.
// - The second op's id is `{ peer: change.id.peer, counter: change.id.counter + 1 }`
//
// The same applies on `Lamport`:
//
// - The lamport of the `Change` is the lamport of its first op.
// - The second op's lamport is `change.lamport + 1`
//
// The length of the `Change` is how many operations it contains
GetChange(id Id) *ChangeMeta
// Gets container IDs modified in the given ID range.
//
// **NOTE:** This method will implicitly commit.
//
// This method can be used in conjunction with `doc.travel_change_ancestors()` to traverse
// the history and identify all changes that affected specific containers.
//
// # Arguments
//
// * `id` - The starting ID of the change range
// * `len` - The length of the change range to check
GetChangedContainersIn(id Id, len uint32) []ContainerId
// Get a container by container id.
GetContainer(id ContainerId) **ValueOrContainer
// Get a [LoroCounter] by container id.
//
// If the provided id is string, it will be converted into a root container id with the name of the string.
GetCounter(id ContainerIdLike) *LoroCounter
GetCursorPos(cursor *Cursor) (PosQueryResult, error)
// Get the entire state of the current DocState
GetDeepValue() LoroValue
// Get the entire state of the current DocState with container id
GetDeepValueWithId() LoroValue
// Get a [LoroList] by container id.
//
// If the provided id is string, it will be converted into a root container id with the name of the string.
GetList(id ContainerIdLike) *LoroList
// Get a [LoroMap] by container id.
//
// If the provided id is string, it will be converted into a root container id with the name of the string.
GetMap(id ContainerIdLike) *LoroMap
// Get a [LoroMovableList] by container id.
//
// If the provided id is string, it will be converted into a root container id with the name of the string.
GetMovableList(id ContainerIdLike) *LoroMovableList
// Get the path from the root to the container
GetPathToContainer(id ContainerId) *[]ContainerPath
// Get the number of operations in the pending transaction.
//
// The pending transaction is the one that is not committed yet. It will be committed
// after calling `doc.commit()`, `doc.export(mode)` or `doc.checkout(version)`.
GetPendingTxnLen() uint32
// Get a [LoroText] by container id.
//
// If the provided id is string, it will be converted into a root container id with the name of the string.
GetText(id ContainerIdLike) *LoroText
// Get a [LoroTree] by container id.
//
// If the provided id is string, it will be converted into a root container id with the name of the string.
GetTree(id ContainerIdLike) *LoroTree
// Get the shallow value of the document.
GetValue() LoroValue
// Check if the doc contains the target container.
//
// A root container always exists, while a normal container exists
// if it has ever been created on the doc.
HasContainer(id ContainerId) bool
HasHistoryCache() bool
// Import updates/snapshot exported by [`LoroDoc::export_snapshot`] or [`LoroDoc::export_from`].
Import(bytes []byte) (ImportStatus, error)
// Import a batch of updates/snapshot.
//
// The data can be in arbitrary order. The import result will be the same.
ImportBatch(bytes [][]byte) (ImportStatus, error)
ImportJsonUpdates(json string) (ImportStatus, error)
// Import updates/snapshot exported by [`LoroDoc::export_snapshot`] or [`LoroDoc::export_from`].
//
// It marks the import with a custom `origin` string. It can be used to track the import source
// in the generated events.
ImportWith(bytes []byte, origin string) (ImportStatus, error)
// Whether the document is in detached mode, where the [loro_internal::DocState] is not
// synchronized with the latest version of the [loro_internal::OpLog].
IsDetached() bool
// Check if the doc contains the full history.
IsShallow() bool
// Evaluate a JSONPath expression on the document and return matching values or handlers.
//
// This method allows querying the document structure using JSONPath syntax.
// It returns a vector of `ValueOrHandler` which can represent either primitive values
// or container handlers, depending on what the JSONPath expression matches.
//
// # Arguments
//
// * `path` - A string slice containing the JSONPath expression to evaluate.
//
// # Returns
//
// A `Result` containing either:
// - `Ok(Vec<ValueOrHandler>)`: A vector of matching values or handlers.
// - `Err(String)`: An error message if the JSONPath expression is invalid or evaluation fails.
//
// # Example
//
// “`
// # use loro::LoroDoc;
// let doc = LoroDoc::new();
// let map = doc.get_map("users");
// map.insert("alice", 30).unwrap();
// map.insert("bob", 25).unwrap();
//
// let result = doc.jsonpath("$.users.alice").unwrap();
// assert_eq!(result.len(), 1);
// assert_eq!(result[0].to_json_value(), serde_json::json!(30));
// “`
Jsonpath(path string) ([]*ValueOrContainer, error)
// Get the total number of changes in the `OpLog`
LenChanges() uint64
// Get the total number of operations in the `OpLog`
LenOps() uint64
// Minimize the frontiers by removing the unnecessary entries.
MinimizeFrontiers(frontiers *Frontiers) FrontiersOrId
// Get the `Frontiers` version of `OpLog`
OplogFrontiers() *Frontiers
// Get the `VersionVector` version of `OpLog`
OplogVv() *VersionVector
// Get the PeerID
PeerId() uint64
// Redacts sensitive content in JSON updates within the specified version range.
//
// This function allows you to share document history while removing potentially sensitive content.
// It preserves the document structure and collaboration capabilities while replacing content with
// placeholders according to these redaction rules:
//
// - Preserves delete and move operations
// - Replaces text insertion content with the Unicode replacement character
// - Substitutes list and map insert values with null
// - Maintains structure of child containers
// - Replaces text mark values with null
// - Preserves map keys and text annotation keys
RedactJsonUpdates(json string, versionRange *VersionRange) (string, error)
// Revert the current document state back to the target version
//
// Internally, it will generate a series of local operations that can revert the
// current doc to the target version. It will calculate the diff between the current
// state and the target state, and apply the diff to the current state.
RevertTo(version *Frontiers) error
// Set the interval of mergeable changes, **in seconds**.
//
// If two continuous local changes are within the interval, they will be merged into one change.
// The default value is 1000 seconds.
//
// By default, we record timestamps in seconds for each change. So if the merge interval is 1, and changes A and B
// have timestamps of 3 and 4 respectively, then they will be merged into one change
SetChangeMergeInterval(interval int64)
// Set whether to hide empty root containers.
SetHideEmptyRootContainers(hide bool)
// Set commit message for the current uncommitted changes
//
// It will be persisted.
SetNextCommitMessage(msg string)
// Set the options of the next commit.
//
// It will be used when the next commit is performed.
SetNextCommitOptions(options CommitOptions)
// Set `origin` for the current uncommitted changes, it can be used to track the source of changes in an event.
//
// It will NOT be persisted.
SetNextCommitOrigin(origin string)
// Set the timestamp of the next commit.
//
// It will be persisted and stored in the `OpLog`.
// You can get the timestamp from the [`Change`] type.
SetNextCommitTimestamp(timestamp int64)
// Change the PeerID
//
// NOTE: You need to make sure there is no chance two peer have the same PeerID.
// If it happens, the document will be corrupted.
SetPeerId(peer uint64) error
// Set whether to record the timestamp of each change. Default is `false`.
//
// If enabled, the Unix timestamp will be recorded for each change automatically.
//
// You can set each timestamp manually when committing a change.
//
// NOTE: Timestamps are forced to be in ascending order.
// If you commit a new change with a timestamp that is less than the existing one,
// the largest existing timestamp will be used instead.
SetRecordTimestamp(record bool)
// Get the `VersionVector` of trimmed history
//
// The ops included by the trimmed history are not in the doc.
ShallowSinceVv() *VersionVector
// Get the `Frontiers` version of `DocState`
//
// Learn more about [`Frontiers`](https://loro.dev/docs/advanced/version_deep_dive)
StateFrontiers() *Frontiers
// Get the `VersionVector` version of `DocState`
StateVv() *VersionVector
// Subscribe the events of a container.
//
// The callback will be invoked when the container is changed.
// Returns a subscription that can be used to unsubscribe.
//
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Subscribe(containerId ContainerId, subscriber Subscriber) *Subscription
// Subscribe to the first commit from a peer. Operations performed on the `LoroDoc` within this callback
// will be merged into the current commit.
//
// This is useful for managing the relationship between `PeerID` and user information.
// For example, you could store user names in a `LoroMap` using `PeerID` as the key and the `UserID` as the value.
SubscribeFirstCommitFromPeer(callback FirstCommitFromPeerCallback) *Subscription
// Subscribe to updates that might affect the given JSONPath query.
//
// The callback may fire false positives; it is intended as a lightweight notification so
// callers can debounce or throttle before re-running JSONPath themselves.
SubscribeJsonpath(path string, callback JsonPathSubscriber) (*Subscription, error)
// Subscribe the local update of the document.
SubscribeLocalUpdate(callback LocalUpdateCallback) *Subscription
// Subscribe to the pre-commit event.
//
// The callback will be called when the changes are committed but not yet applied to the OpLog.
// You can modify the commit message and timestamp in the callback by [`ChangeModifier`].
SubscribePreCommit(callback PreCommitCallback) *Subscription
// Subscribe all the events.
//
// The callback will be invoked when any part of the [loro_internal::DocState] is changed.
// Returns a subscription that can be used to unsubscribe.
SubscribeRoot(subscriber Subscriber) *Subscription
// Traverses the ancestors of the Change containing the given ID, including itself.
//
// This method visits all ancestors in causal order, from the latest to the oldest,
// based on their Lamport timestamps.
//
// # Arguments
//
// * `ids` - The IDs of the Change to start the traversal from.
// * `f` - A mutable function that is called for each ancestor. It can return `ControlFlow::Break(())` to stop the traversal.
TravelChangeAncestors(ids []Id, f ChangeAncestorsTraveler) error
// Try to get a [LoroCounter] by container id.
//
// Returns null if the container does not exist.
TryGetCounter(id ContainerIdLike) **LoroCounter
// Try to get a [LoroList] by container id.
//
// Returns null if the container does not exist.
TryGetList(id ContainerIdLike) **LoroList
// Try to get a [LoroMap] by container id.
//
// Returns null if the container does not exist.
TryGetMap(id ContainerIdLike) **LoroMap
// Try to get a [LoroMovableList] by container id.
//
// Returns null if the container does not exist.
TryGetMovableList(id ContainerIdLike) **LoroMovableList
// Try to get a [LoroText] by container id.
//
// Returns null if the container does not exist.
TryGetText(id ContainerIdLike) **LoroText
// Try to get a [LoroTree] by container id.
//
// Returns null if the container does not exist.
TryGetTree(id ContainerIdLike) **LoroTree
// Convert `VersionVector` into `Frontiers`
VvToFrontiers(vv *VersionVector) *Frontiers
}
`LoroDoc` is the entry for the whole document. When it's dropped, all the associated [`Handler`]s will be invalidated.
**Important:** Loro is a pure library and does not handle network protocols. It is the responsibility of the user to manage the storage, loading, and synchronization of the bytes exported by Loro in a manner suitable for their specific environment.
type LoroEncodeError ¶
type LoroEncodeError struct {
// contains filtered or unexported fields
}
func NewLoroEncodeErrorFrontiersNotFound ¶
func NewLoroEncodeErrorFrontiersNotFound() *LoroEncodeError
func NewLoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat ¶
func NewLoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat() *LoroEncodeError
func NewLoroEncodeErrorUnknownContainer ¶
func NewLoroEncodeErrorUnknownContainer() *LoroEncodeError
func (*LoroEncodeError) AsError ¶
func (err *LoroEncodeError) AsError() error
Convenience method to turn *LoroEncodeError into error Avoiding treating nil pointer as non nil error interface
func (LoroEncodeError) Error ¶
func (err LoroEncodeError) Error() string
func (LoroEncodeError) Unwrap ¶
func (err LoroEncodeError) Unwrap() error
type LoroEncodeErrorFrontiersNotFound ¶
type LoroEncodeErrorFrontiersNotFound struct {
// contains filtered or unexported fields
}
Variant structs
func (LoroEncodeErrorFrontiersNotFound) Error ¶
func (err LoroEncodeErrorFrontiersNotFound) Error() string
func (LoroEncodeErrorFrontiersNotFound) Is ¶
func (self LoroEncodeErrorFrontiersNotFound) Is(target error) bool
type LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat ¶
type LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat struct {
// contains filtered or unexported fields
}
func (LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat) Error ¶
func (err LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat) Error() string
func (LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat) Is ¶
func (self LoroEncodeErrorShallowSnapshotIncompatibleWithOldFormat) Is(target error) bool
type LoroEncodeErrorUnknownContainer ¶
type LoroEncodeErrorUnknownContainer struct {
// contains filtered or unexported fields
}
func (LoroEncodeErrorUnknownContainer) Error ¶
func (err LoroEncodeErrorUnknownContainer) Error() string
func (LoroEncodeErrorUnknownContainer) Is ¶
func (self LoroEncodeErrorUnknownContainer) Is(target error) bool
type LoroError ¶
type LoroError struct {
// contains filtered or unexported fields
}
func NewLoroErrorArgErr ¶
func NewLoroErrorArgErr() *LoroError
func NewLoroErrorAutoCommitNotStarted ¶
func NewLoroErrorAutoCommitNotStarted() *LoroError
func NewLoroErrorConcurrentOpsWithSamePeerId ¶
func NewLoroErrorConcurrentOpsWithSamePeerId() *LoroError
func NewLoroErrorContainerDeleted ¶
func NewLoroErrorContainerDeleted() *LoroError
func NewLoroErrorContainersNotFound ¶
func NewLoroErrorContainersNotFound() *LoroError
func NewLoroErrorDecodeChecksumMismatchError ¶
func NewLoroErrorDecodeChecksumMismatchError() *LoroError
func NewLoroErrorDecodeDataCorruptionError ¶
func NewLoroErrorDecodeDataCorruptionError() *LoroError
func NewLoroErrorDecodeError ¶
func NewLoroErrorDecodeError() *LoroError
func NewLoroErrorDecodeVersionVectorError ¶
func NewLoroErrorDecodeVersionVectorError() *LoroError
func NewLoroErrorDuplicatedTransactionError ¶
func NewLoroErrorDuplicatedTransactionError() *LoroError
func NewLoroErrorEditWhenDetached ¶
func NewLoroErrorEditWhenDetached() *LoroError
func NewLoroErrorEndIndexLessThanStartIndex ¶
func NewLoroErrorEndIndexLessThanStartIndex() *LoroError
func NewLoroErrorFrontiersNotFound ¶
func NewLoroErrorFrontiersNotFound() *LoroError
func NewLoroErrorImportUnsupportedEncodingMode ¶ added in v0.2.0
func NewLoroErrorImportUnsupportedEncodingMode() *LoroError
func NewLoroErrorImportUpdatesThatDependsOnOutdatedVersion ¶
func NewLoroErrorImportUpdatesThatDependsOnOutdatedVersion() *LoroError
func NewLoroErrorImportWhenInTxn ¶
func NewLoroErrorImportWhenInTxn() *LoroError
func NewLoroErrorIncompatibleFutureEncodingError ¶
func NewLoroErrorIncompatibleFutureEncodingError() *LoroError
func NewLoroErrorInvalidJsonSchema ¶
func NewLoroErrorInvalidJsonSchema() *LoroError
func NewLoroErrorInvalidPeerId ¶
func NewLoroErrorInvalidPeerId() *LoroError
func NewLoroErrorInvalidRootContainerName ¶
func NewLoroErrorInvalidRootContainerName() *LoroError
func NewLoroErrorJsError ¶
func NewLoroErrorJsError() *LoroError
func NewLoroErrorLockError ¶
func NewLoroErrorLockError() *LoroError
func NewLoroErrorMisuseDetachedContainer ¶
func NewLoroErrorMisuseDetachedContainer() *LoroError
func NewLoroErrorNotFoundError ¶
func NewLoroErrorNotFoundError() *LoroError
func NewLoroErrorNotImplemented ¶
func NewLoroErrorNotImplemented() *LoroError
func NewLoroErrorOutOfBound ¶
func NewLoroErrorOutOfBound() *LoroError
func NewLoroErrorReattachAttachedContainer ¶
func NewLoroErrorReattachAttachedContainer() *LoroError
func NewLoroErrorStyleConfigMissing ¶
func NewLoroErrorStyleConfigMissing() *LoroError
func NewLoroErrorSwitchToVersionBeforeShallowRoot ¶
func NewLoroErrorSwitchToVersionBeforeShallowRoot() *LoroError
func NewLoroErrorTransactionError ¶
func NewLoroErrorTransactionError() *LoroError
func NewLoroErrorTreeError ¶
func NewLoroErrorTreeError() *LoroError
func NewLoroErrorUndoGroupAlreadyStarted ¶
func NewLoroErrorUndoGroupAlreadyStarted() *LoroError
func NewLoroErrorUndoInvalidIdSpan ¶
func NewLoroErrorUndoInvalidIdSpan() *LoroError
func NewLoroErrorUndoWithDifferentPeerId ¶
func NewLoroErrorUndoWithDifferentPeerId() *LoroError
func NewLoroErrorUnknown ¶
func NewLoroErrorUnknown() *LoroError
func NewLoroErrorUnmatchedContext ¶
func NewLoroErrorUnmatchedContext() *LoroError
func NewLoroErrorUsedOpId ¶
func NewLoroErrorUsedOpId() *LoroError
func NewLoroErrorUtf8InUnicodeCodePoint ¶
func NewLoroErrorUtf8InUnicodeCodePoint() *LoroError
func NewLoroErrorUtf16InUnicodeCodePoint ¶
func NewLoroErrorUtf16InUnicodeCodePoint() *LoroError
type LoroErrorArgErr ¶
type LoroErrorArgErr struct {
// contains filtered or unexported fields
}
func (LoroErrorArgErr) Error ¶
func (err LoroErrorArgErr) Error() string
func (LoroErrorArgErr) Is ¶
func (self LoroErrorArgErr) Is(target error) bool
type LoroErrorAutoCommitNotStarted ¶
type LoroErrorAutoCommitNotStarted struct {
// contains filtered or unexported fields
}
func (LoroErrorAutoCommitNotStarted) Error ¶
func (err LoroErrorAutoCommitNotStarted) Error() string
func (LoroErrorAutoCommitNotStarted) Is ¶
func (self LoroErrorAutoCommitNotStarted) Is(target error) bool
type LoroErrorConcurrentOpsWithSamePeerId ¶
type LoroErrorConcurrentOpsWithSamePeerId struct {
// contains filtered or unexported fields
}
func (LoroErrorConcurrentOpsWithSamePeerId) Error ¶
func (err LoroErrorConcurrentOpsWithSamePeerId) Error() string
func (LoroErrorConcurrentOpsWithSamePeerId) Is ¶
func (self LoroErrorConcurrentOpsWithSamePeerId) Is(target error) bool
type LoroErrorContainerDeleted ¶
type LoroErrorContainerDeleted struct {
// contains filtered or unexported fields
}
func (LoroErrorContainerDeleted) Error ¶
func (err LoroErrorContainerDeleted) Error() string
func (LoroErrorContainerDeleted) Is ¶
func (self LoroErrorContainerDeleted) Is(target error) bool
type LoroErrorContainersNotFound ¶
type LoroErrorContainersNotFound struct {
// contains filtered or unexported fields
}
func (LoroErrorContainersNotFound) Error ¶
func (err LoroErrorContainersNotFound) Error() string
func (LoroErrorContainersNotFound) Is ¶
func (self LoroErrorContainersNotFound) Is(target error) bool
type LoroErrorDecodeChecksumMismatchError ¶
type LoroErrorDecodeChecksumMismatchError struct {
// contains filtered or unexported fields
}
func (LoroErrorDecodeChecksumMismatchError) Error ¶
func (err LoroErrorDecodeChecksumMismatchError) Error() string
func (LoroErrorDecodeChecksumMismatchError) Is ¶
func (self LoroErrorDecodeChecksumMismatchError) Is(target error) bool
type LoroErrorDecodeDataCorruptionError ¶
type LoroErrorDecodeDataCorruptionError struct {
// contains filtered or unexported fields
}
func (LoroErrorDecodeDataCorruptionError) Error ¶
func (err LoroErrorDecodeDataCorruptionError) Error() string
func (LoroErrorDecodeDataCorruptionError) Is ¶
func (self LoroErrorDecodeDataCorruptionError) Is(target error) bool
type LoroErrorDecodeError ¶
type LoroErrorDecodeError struct {
// contains filtered or unexported fields
}
func (LoroErrorDecodeError) Error ¶
func (err LoroErrorDecodeError) Error() string
func (LoroErrorDecodeError) Is ¶
func (self LoroErrorDecodeError) Is(target error) bool
type LoroErrorDecodeVersionVectorError ¶
type LoroErrorDecodeVersionVectorError struct {
// contains filtered or unexported fields
}
func (LoroErrorDecodeVersionVectorError) Error ¶
func (err LoroErrorDecodeVersionVectorError) Error() string
func (LoroErrorDecodeVersionVectorError) Is ¶
func (self LoroErrorDecodeVersionVectorError) Is(target error) bool
type LoroErrorDuplicatedTransactionError ¶
type LoroErrorDuplicatedTransactionError struct {
// contains filtered or unexported fields
}
func (LoroErrorDuplicatedTransactionError) Error ¶
func (err LoroErrorDuplicatedTransactionError) Error() string
func (LoroErrorDuplicatedTransactionError) Is ¶
func (self LoroErrorDuplicatedTransactionError) Is(target error) bool
type LoroErrorEditWhenDetached ¶
type LoroErrorEditWhenDetached struct {
// contains filtered or unexported fields
}
func (LoroErrorEditWhenDetached) Error ¶
func (err LoroErrorEditWhenDetached) Error() string
func (LoroErrorEditWhenDetached) Is ¶
func (self LoroErrorEditWhenDetached) Is(target error) bool
type LoroErrorEndIndexLessThanStartIndex ¶
type LoroErrorEndIndexLessThanStartIndex struct {
// contains filtered or unexported fields
}
func (LoroErrorEndIndexLessThanStartIndex) Error ¶
func (err LoroErrorEndIndexLessThanStartIndex) Error() string
func (LoroErrorEndIndexLessThanStartIndex) Is ¶
func (self LoroErrorEndIndexLessThanStartIndex) Is(target error) bool
type LoroErrorFrontiersNotFound ¶
type LoroErrorFrontiersNotFound struct {
// contains filtered or unexported fields
}
func (LoroErrorFrontiersNotFound) Error ¶
func (err LoroErrorFrontiersNotFound) Error() string
func (LoroErrorFrontiersNotFound) Is ¶
func (self LoroErrorFrontiersNotFound) Is(target error) bool
type LoroErrorImportUnsupportedEncodingMode ¶ added in v0.2.0
type LoroErrorImportUnsupportedEncodingMode struct {
// contains filtered or unexported fields
}
func (LoroErrorImportUnsupportedEncodingMode) Error ¶ added in v0.2.0
func (err LoroErrorImportUnsupportedEncodingMode) Error() string
func (LoroErrorImportUnsupportedEncodingMode) Is ¶ added in v0.2.0
func (self LoroErrorImportUnsupportedEncodingMode) Is(target error) bool
type LoroErrorImportUpdatesThatDependsOnOutdatedVersion ¶
type LoroErrorImportUpdatesThatDependsOnOutdatedVersion struct {
// contains filtered or unexported fields
}
func (LoroErrorImportUpdatesThatDependsOnOutdatedVersion) Error ¶
func (err LoroErrorImportUpdatesThatDependsOnOutdatedVersion) Error() string
func (LoroErrorImportUpdatesThatDependsOnOutdatedVersion) Is ¶
func (self LoroErrorImportUpdatesThatDependsOnOutdatedVersion) Is(target error) bool
type LoroErrorImportWhenInTxn ¶
type LoroErrorImportWhenInTxn struct {
// contains filtered or unexported fields
}
func (LoroErrorImportWhenInTxn) Error ¶
func (err LoroErrorImportWhenInTxn) Error() string
func (LoroErrorImportWhenInTxn) Is ¶
func (self LoroErrorImportWhenInTxn) Is(target error) bool
type LoroErrorIncompatibleFutureEncodingError ¶
type LoroErrorIncompatibleFutureEncodingError struct {
// contains filtered or unexported fields
}
func (LoroErrorIncompatibleFutureEncodingError) Error ¶
func (err LoroErrorIncompatibleFutureEncodingError) Error() string
func (LoroErrorIncompatibleFutureEncodingError) Is ¶
func (self LoroErrorIncompatibleFutureEncodingError) Is(target error) bool
type LoroErrorInvalidJsonSchema ¶
type LoroErrorInvalidJsonSchema struct {
// contains filtered or unexported fields
}
func (LoroErrorInvalidJsonSchema) Error ¶
func (err LoroErrorInvalidJsonSchema) Error() string
func (LoroErrorInvalidJsonSchema) Is ¶
func (self LoroErrorInvalidJsonSchema) Is(target error) bool
type LoroErrorInvalidPeerId ¶
type LoroErrorInvalidPeerId struct {
// contains filtered or unexported fields
}
func (LoroErrorInvalidPeerId) Error ¶
func (err LoroErrorInvalidPeerId) Error() string
func (LoroErrorInvalidPeerId) Is ¶
func (self LoroErrorInvalidPeerId) Is(target error) bool
type LoroErrorInvalidRootContainerName ¶
type LoroErrorInvalidRootContainerName struct {
// contains filtered or unexported fields
}
func (LoroErrorInvalidRootContainerName) Error ¶
func (err LoroErrorInvalidRootContainerName) Error() string
func (LoroErrorInvalidRootContainerName) Is ¶
func (self LoroErrorInvalidRootContainerName) Is(target error) bool
type LoroErrorJsError ¶
type LoroErrorJsError struct {
// contains filtered or unexported fields
}
func (LoroErrorJsError) Error ¶
func (err LoroErrorJsError) Error() string
func (LoroErrorJsError) Is ¶
func (self LoroErrorJsError) Is(target error) bool
type LoroErrorLockError ¶
type LoroErrorLockError struct {
// contains filtered or unexported fields
}
func (LoroErrorLockError) Error ¶
func (err LoroErrorLockError) Error() string
func (LoroErrorLockError) Is ¶
func (self LoroErrorLockError) Is(target error) bool
type LoroErrorMisuseDetachedContainer ¶
type LoroErrorMisuseDetachedContainer struct {
// contains filtered or unexported fields
}
func (LoroErrorMisuseDetachedContainer) Error ¶
func (err LoroErrorMisuseDetachedContainer) Error() string
func (LoroErrorMisuseDetachedContainer) Is ¶
func (self LoroErrorMisuseDetachedContainer) Is(target error) bool
type LoroErrorNotFoundError ¶
type LoroErrorNotFoundError struct {
// contains filtered or unexported fields
}
func (LoroErrorNotFoundError) Error ¶
func (err LoroErrorNotFoundError) Error() string
func (LoroErrorNotFoundError) Is ¶
func (self LoroErrorNotFoundError) Is(target error) bool
type LoroErrorNotImplemented ¶
type LoroErrorNotImplemented struct {
// contains filtered or unexported fields
}
func (LoroErrorNotImplemented) Error ¶
func (err LoroErrorNotImplemented) Error() string
func (LoroErrorNotImplemented) Is ¶
func (self LoroErrorNotImplemented) Is(target error) bool
type LoroErrorOutOfBound ¶
type LoroErrorOutOfBound struct {
// contains filtered or unexported fields
}
func (LoroErrorOutOfBound) Error ¶
func (err LoroErrorOutOfBound) Error() string
func (LoroErrorOutOfBound) Is ¶
func (self LoroErrorOutOfBound) Is(target error) bool
type LoroErrorReattachAttachedContainer ¶
type LoroErrorReattachAttachedContainer struct {
// contains filtered or unexported fields
}
func (LoroErrorReattachAttachedContainer) Error ¶
func (err LoroErrorReattachAttachedContainer) Error() string
func (LoroErrorReattachAttachedContainer) Is ¶
func (self LoroErrorReattachAttachedContainer) Is(target error) bool
type LoroErrorStyleConfigMissing ¶
type LoroErrorStyleConfigMissing struct {
// contains filtered or unexported fields
}
func (LoroErrorStyleConfigMissing) Error ¶
func (err LoroErrorStyleConfigMissing) Error() string
func (LoroErrorStyleConfigMissing) Is ¶
func (self LoroErrorStyleConfigMissing) Is(target error) bool
type LoroErrorSwitchToVersionBeforeShallowRoot ¶
type LoroErrorSwitchToVersionBeforeShallowRoot struct {
// contains filtered or unexported fields
}
func (LoroErrorSwitchToVersionBeforeShallowRoot) Error ¶
func (err LoroErrorSwitchToVersionBeforeShallowRoot) Error() string
func (LoroErrorSwitchToVersionBeforeShallowRoot) Is ¶
func (self LoroErrorSwitchToVersionBeforeShallowRoot) Is(target error) bool
type LoroErrorTransactionError ¶
type LoroErrorTransactionError struct {
// contains filtered or unexported fields
}
func (LoroErrorTransactionError) Error ¶
func (err LoroErrorTransactionError) Error() string
func (LoroErrorTransactionError) Is ¶
func (self LoroErrorTransactionError) Is(target error) bool
type LoroErrorTreeError ¶
type LoroErrorTreeError struct {
// contains filtered or unexported fields
}
func (LoroErrorTreeError) Error ¶
func (err LoroErrorTreeError) Error() string
func (LoroErrorTreeError) Is ¶
func (self LoroErrorTreeError) Is(target error) bool
type LoroErrorUndoGroupAlreadyStarted ¶
type LoroErrorUndoGroupAlreadyStarted struct {
// contains filtered or unexported fields
}
func (LoroErrorUndoGroupAlreadyStarted) Error ¶
func (err LoroErrorUndoGroupAlreadyStarted) Error() string
func (LoroErrorUndoGroupAlreadyStarted) Is ¶
func (self LoroErrorUndoGroupAlreadyStarted) Is(target error) bool
type LoroErrorUndoInvalidIdSpan ¶
type LoroErrorUndoInvalidIdSpan struct {
// contains filtered or unexported fields
}
func (LoroErrorUndoInvalidIdSpan) Error ¶
func (err LoroErrorUndoInvalidIdSpan) Error() string
func (LoroErrorUndoInvalidIdSpan) Is ¶
func (self LoroErrorUndoInvalidIdSpan) Is(target error) bool
type LoroErrorUndoWithDifferentPeerId ¶
type LoroErrorUndoWithDifferentPeerId struct {
// contains filtered or unexported fields
}
func (LoroErrorUndoWithDifferentPeerId) Error ¶
func (err LoroErrorUndoWithDifferentPeerId) Error() string
func (LoroErrorUndoWithDifferentPeerId) Is ¶
func (self LoroErrorUndoWithDifferentPeerId) Is(target error) bool
type LoroErrorUnknown ¶
type LoroErrorUnknown struct {
// contains filtered or unexported fields
}
func (LoroErrorUnknown) Error ¶
func (err LoroErrorUnknown) Error() string
func (LoroErrorUnknown) Is ¶
func (self LoroErrorUnknown) Is(target error) bool
type LoroErrorUnmatchedContext ¶
type LoroErrorUnmatchedContext struct {
// contains filtered or unexported fields
}
Variant structs
func (LoroErrorUnmatchedContext) Error ¶
func (err LoroErrorUnmatchedContext) Error() string
func (LoroErrorUnmatchedContext) Is ¶
func (self LoroErrorUnmatchedContext) Is(target error) bool
type LoroErrorUsedOpId ¶
type LoroErrorUsedOpId struct {
// contains filtered or unexported fields
}
func (LoroErrorUsedOpId) Error ¶
func (err LoroErrorUsedOpId) Error() string
func (LoroErrorUsedOpId) Is ¶
func (self LoroErrorUsedOpId) Is(target error) bool
type LoroErrorUtf8InUnicodeCodePoint ¶
type LoroErrorUtf8InUnicodeCodePoint struct {
// contains filtered or unexported fields
}
func (LoroErrorUtf8InUnicodeCodePoint) Error ¶
func (err LoroErrorUtf8InUnicodeCodePoint) Error() string
func (LoroErrorUtf8InUnicodeCodePoint) Is ¶
func (self LoroErrorUtf8InUnicodeCodePoint) Is(target error) bool
type LoroErrorUtf16InUnicodeCodePoint ¶
type LoroErrorUtf16InUnicodeCodePoint struct {
// contains filtered or unexported fields
}
func (LoroErrorUtf16InUnicodeCodePoint) Error ¶
func (err LoroErrorUtf16InUnicodeCodePoint) Error() string
func (LoroErrorUtf16InUnicodeCodePoint) Is ¶
func (self LoroErrorUtf16InUnicodeCodePoint) Is(target error) bool
type LoroList ¶
type LoroList struct {
// contains filtered or unexported fields
}
func GetLoroListContainer ¶
func GetLoroListContainer(v **ValueOrContainer) (*LoroList, bool)
GetLoroListContainer takes a pointer to a ValueOrContainer and returns the LoroList value if it is a LoroList.
func LiftFromExternalLoroList ¶ added in v0.3.0
func NewLoroList ¶
func NewLoroList() *LoroList
Create a new container that is detached from the document.
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroList) All ¶ added in v0.4.0
func (l *LoroList) All() iter.Seq2[int, *ValueOrContainer]
All yields each (index, element) pair in order. The element is a *ValueOrContainer so nested containers are reachable without a second lookup. Len is sampled once at the start.
for i, v := range list.All() {
// use v
}
func (*LoroList) At ¶ added in v0.4.0
func (l *LoroList) At(index uint32) *ValueOrContainer
At returns the value at index, or nil if the index is out of bounds.
func (*LoroList) Attached ¶ added in v0.4.0
Attached returns the live attached version of this container, or nil if the container has been detached and has no attached counterpart.
func (*LoroList) Cursor ¶ added in v0.4.0
Cursor creates a stable cursor at pos with the given side, or nil if a cursor cannot be created at that position.
func (*LoroList) Get ¶
func (_self *LoroList) Get(index uint32) **ValueOrContainer
Get the value at the given position.
func (*LoroList) GetAny ¶ added in v0.4.0
GetAny returns the value at index as an any, or (nil, false) if the index is out of bounds. Nested containers are returned as their *LoroX wrapper.
func (*LoroList) GetAttached ¶
If a detached container is attached, this method will return its corresponding attached handler.
func (*LoroList) GetBool ¶ added in v0.4.0
GetBool returns the bool value at index, or (false, false) if the index is out of bounds or the value is not a bool.
func (*LoroList) GetDeepValue ¶
Get the deep value of the container.
func (*LoroList) GetFloat64 ¶ added in v0.4.0
GetFloat64 returns the float64 value at index, or (0, false) if the index is out of bounds or the value is not a float64.
func (*LoroList) GetInt64 ¶ added in v0.4.0
GetInt64 returns the int64 value at index, or (0, false) if the index is out of bounds or the value is not an int64.
func (*LoroList) GetList ¶ added in v0.4.0
GetList returns the list value at index as []LoroValue, or (nil, false) if the index is out of bounds or the value is not a list.
func (*LoroList) GetListOfAny ¶ added in v0.4.0
GetListOfAny returns the list value at index as []any, or (nil, false) if the index is out of bounds or the value is not a list.
func (*LoroList) GetLoroCounter ¶ added in v0.4.0
func (l *LoroList) GetLoroCounter(index uint32) (*LoroCounter, bool)
GetLoroCounter returns the LoroCounter at index, or (nil, false) if the index is out of bounds or the value is not a counter container.
func (*LoroList) GetLoroList ¶ added in v0.4.0
GetLoroList returns the LoroList at index, or (nil, false) if the index is out of bounds or the value is not a list container.
func (*LoroList) GetLoroMap ¶ added in v0.4.0
GetLoroMap returns the LoroMap at index, or (nil, false) if the index is out of bounds or the value is not a map container.
func (*LoroList) GetLoroMovableList ¶ added in v0.4.0
func (l *LoroList) GetLoroMovableList(index uint32) (*LoroMovableList, bool)
GetLoroMovableList returns the LoroMovableList at index, or (nil, false) if the index is out of bounds or the value is not a movable list container.
func (*LoroList) GetLoroText ¶ added in v0.4.0
GetLoroText returns the LoroText at index, or (nil, false) if the index is out of bounds or the value is not a text container.
func (*LoroList) GetLoroTree ¶ added in v0.4.0
GetLoroTree returns the LoroTree at index, or (nil, false) if the index is out of bounds or the value is not a tree container.
func (*LoroList) GetMap ¶ added in v0.4.0
GetMap returns the map value at index as map[string]LoroValue, or (nil, false) if the index is out of bounds or the value is not a map.
func (*LoroList) GetMapOfAny ¶ added in v0.4.0
GetMapOfAny returns the map value at index as map[string]any, or (nil, false) if the index is out of bounds or the value is not a map.
func (*LoroList) GetString ¶ added in v0.4.0
GetString returns the string value at index, or ("", false) if the index is out of bounds or the value is not a string.
func (*LoroList) GetValue ¶
Get the shallow value of the container.
This does not convert the state of sub-containers; instead, it represents them as [LoroValue::Container].
func (*LoroList) Insert ¶
func (_self *LoroList) Insert(pos uint32, v LoroValueLike) error
Insert a value at the given position.
func (*LoroList) InsertAny ¶ added in v0.4.0
InsertAny inserts a plain Go value at pos. The value is converted via AsValue; passing an unsupported type returns an error without modifying the list.
func (*LoroList) InsertCounterContainer ¶
func (_self *LoroList) InsertCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
func (*LoroList) InsertListContainer ¶
func (*LoroList) InsertLoroCounter ¶ added in v0.4.0
func (l *LoroList) InsertLoroCounter(pos uint32) (*LoroCounter, error)
InsertLoroCounter inserts a fresh attached LoroCounter at pos and returns it.
func (*LoroList) InsertLoroList ¶ added in v0.4.0
InsertLoroList inserts a fresh attached LoroList at pos and returns it.
func (*LoroList) InsertLoroMap ¶ added in v0.4.0
InsertLoroMap inserts a fresh attached LoroMap at pos and returns it.
func (*LoroList) InsertLoroMovableList ¶ added in v0.4.0
func (l *LoroList) InsertLoroMovableList(pos uint32) (*LoroMovableList, error)
InsertLoroMovableList inserts a fresh attached LoroMovableList at pos and returns it.
func (*LoroList) InsertLoroText ¶ added in v0.4.0
InsertLoroText inserts a fresh attached LoroText at pos and returns it.
func (*LoroList) InsertLoroTree ¶ added in v0.4.0
InsertLoroTree inserts a fresh attached LoroTree at pos and returns it.
func (*LoroList) InsertMapContainer ¶
func (*LoroList) InsertMovableListContainer ¶
func (_self *LoroList) InsertMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
func (*LoroList) InsertTextContainer ¶
func (*LoroList) InsertTreeContainer ¶
func (*LoroList) IsAttached ¶
Whether the container is attached to a document
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroList) IsExplicitlyNil ¶ added in v0.4.0
IsExplicitlyNil reports whether the value at index is set to an explicit nil (LoroValueNull), as opposed to the index being out of bounds.
func (*LoroList) OwnerDoc ¶ added in v0.4.0
OwnerDoc returns the LoroDoc this container is attached to, or nil if it is detached.
func (*LoroList) Push ¶
func (_self *LoroList) Push(v LoroValueLike) error
func (*LoroList) PushAny ¶ added in v0.4.0
PushAny appends a plain Go value. The value is converted via AsValue; passing an unsupported type returns an error without modifying the list.
func (*LoroList) Subscribe ¶
func (_self *LoroList) Subscribe(subscriber Subscriber) **Subscription
Subscribe the events of a container.
The callback will be invoked when the container is changed. Returns a subscription that can be used to unsubscribe.
The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroList) SubscribeFn ¶ added in v0.4.0
func (l *LoroList) SubscribeFn(fn func(diff DiffEvent)) *Subscription
SubscribeFn is a convenience wrapper around LoroList.Subscribe that accepts a plain function instead of a Subscriber interface. Returns nil if the container is detached.
sub := list.SubscribeFn(func(diff loro.DiffEvent) {
fmt.Println("list changed")
})
if sub != nil {
defer sub.Unsubscribe()
}
type LoroListInterface ¶
type LoroListInterface interface {
// Delete all elements in the list.
Clear() error
// Delete values at the given position.
Delete(pos uint32, len uint32) error
// Get the LoroDoc from this container
Doc() **LoroDoc
// Get the value at the given position.
Get(index uint32) **ValueOrContainer
// If a detached container is attached, this method will return its corresponding attached handler.
GetAttached() **LoroList
GetCursor(pos uint32, side Side) **Cursor
// Get the deep value of the container.
GetDeepValue() LoroValue
// Get the ID of the list item at the given position.
GetIdAt(pos uint32) *Id
// Get the shallow value of the container.
//
// This does not convert the state of sub-containers; instead, it represents them as [LoroValue::Container].
GetValue() LoroValue
// Get the ID of the container.
Id() ContainerId
// Insert a value at the given position.
Insert(pos uint32, v LoroValueLike) error
InsertCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
InsertListContainer(pos uint32, child *LoroList) (*LoroList, error)
InsertMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
InsertMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
InsertTextContainer(pos uint32, child *LoroText) (*LoroText, error)
InsertTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
// Whether the container is attached to a document
//
// The edits on a detached container will not be persisted.
// To attach the container to the document, please insert it into an attached container.
IsAttached() bool
// Whether the container is deleted.
IsDeleted() bool
IsEmpty() bool
Len() uint32
// Pop the last element of the list.
Pop() (*LoroValue, error)
Push(v LoroValueLike) error
// Subscribe the events of a container.
//
// The callback will be invoked when the container is changed.
// Returns a subscription that can be used to unsubscribe.
//
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Subscribe(subscriber Subscriber) **Subscription
// Converts the LoroList to a Vec of LoroValue.
//
// This method unwraps the internal Arc and clones the data if necessary,
// returning a Vec containing all the elements of the LoroList as LoroValue.
ToVec() []LoroValue
}
type LoroMap ¶
type LoroMap struct {
// contains filtered or unexported fields
}
func GetLoroMapContainer ¶
func GetLoroMapContainer(v **ValueOrContainer) (*LoroMap, bool)
GetLoroMapContainer takes a pointer to a ValueOrContainer and returns the LoroMap value if it is a LoroMap.
func LiftFromExternalLoroMap ¶ added in v0.3.0
func NewLoroMap ¶
func NewLoroMap() *LoroMap
Create a new container that is detached from the document.
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroMap) All ¶ added in v0.4.0
func (m *LoroMap) All() iter.Seq2[string, *ValueOrContainer]
All yields each (key, value) pair. Iteration order matches the underlying Keys() result; a separate FFI lookup is issued per key, so breaking out early avoids the remaining lookups.
for k, v := range m.All() {
// use k, v
}
func (*LoroMap) Attached ¶ added in v0.4.0
Attached returns the live attached version of this container, or nil if the container has been detached and has no attached counterpart.
func (*LoroMap) Get ¶
func (_self *LoroMap) Get(key string) **ValueOrContainer
Get the value of the map with the given key.
func (*LoroMap) GetAny ¶ added in v0.4.0
GetAny returns the value at key as an any, or (nil, false) if the key is absent. Nested containers are returned as their *LoroX wrapper.
func (*LoroMap) GetAttached ¶
If a detached container is attached, this method will return its corresponding attached handler.
func (*LoroMap) GetBool ¶ added in v0.4.0
GetBool returns the bool value at key, or (false, false) if the key is absent or the value is not a bool.
func (*LoroMap) GetDeepValue ¶
Get the deep value of the map.
It will convert the state of sub-containers into a nested JSON value.
func (*LoroMap) GetFloat64 ¶ added in v0.4.0
GetFloat64 returns the float64 value at key, or (0, false) if the key is absent or the value is not a float64.
func (*LoroMap) GetInt64 ¶ added in v0.4.0
GetInt64 returns the int64 value at key, or (0, false) if the key is absent or the value is not an int64.
func (*LoroMap) GetLastEditor ¶
Get the peer id of the last editor on the given entry
func (*LoroMap) GetList ¶ added in v0.4.0
GetList returns the list value at key as []LoroValue, or (nil, false) if the key is absent or the value is not a list.
func (*LoroMap) GetListOfAny ¶ added in v0.4.0
GetListOfAny returns the list value at key as []any, or (nil, false) if the key is absent or the value is not a list.
func (*LoroMap) GetLoroCounter ¶ added in v0.4.0
func (m *LoroMap) GetLoroCounter(key string) (*LoroCounter, bool)
GetLoroCounter returns the LoroCounter at key, or (nil, false) if the key is absent or the value is not a counter container.
func (*LoroMap) GetLoroList ¶ added in v0.4.0
GetLoroList returns the LoroList at key, or (nil, false) if the key is absent or the value is not a list container.
func (*LoroMap) GetLoroMap ¶ added in v0.4.0
GetLoroMap returns the LoroMap at key, or (nil, false) if the key is absent or the value is not a map container.
func (*LoroMap) GetLoroMovableList ¶ added in v0.4.0
func (m *LoroMap) GetLoroMovableList(key string) (*LoroMovableList, bool)
GetLoroMovableList returns the LoroMovableList at key, or (nil, false) if the key is absent or the value is not a movable list container.
func (*LoroMap) GetLoroText ¶ added in v0.4.0
GetLoroText returns the LoroText at key, or (nil, false) if the key is absent or the value is not a text container.
func (*LoroMap) GetLoroTree ¶ added in v0.4.0
GetLoroTree returns the LoroTree at key, or (nil, false) if the key is absent or the value is not a tree container.
func (*LoroMap) GetMap ¶ added in v0.4.0
GetMap returns the map value at key as map[string]LoroValue, or (nil, false) if the key is absent or the value is not a map.
func (*LoroMap) GetMapOfAny ¶ added in v0.4.0
GetMapOfAny returns the map value at key as map[string]any, or (nil, false) if the key is absent or the value is not a map.
func (*LoroMap) GetOrCreateCounterContainer ¶
func (_self *LoroMap) GetOrCreateCounterContainer(key string, child *LoroCounter) (*LoroCounter, error)
func (*LoroMap) GetOrCreateListContainer ¶
func (*LoroMap) GetOrCreateLoroCounter ¶ added in v0.4.0
func (m *LoroMap) GetOrCreateLoroCounter(key string) (*LoroCounter, error)
GetOrCreateLoroCounter returns the LoroCounter child at key, creating an attached zero-valued one if absent.
func (*LoroMap) GetOrCreateLoroList ¶ added in v0.4.0
GetOrCreateLoroList returns the LoroList child at key, creating an attached empty one if absent.
func (*LoroMap) GetOrCreateLoroMap ¶ added in v0.4.0
GetOrCreateLoroMap returns the LoroMap child at key, creating an attached empty one if absent.
func (*LoroMap) GetOrCreateLoroMovableList ¶ added in v0.4.0
func (m *LoroMap) GetOrCreateLoroMovableList(key string) (*LoroMovableList, error)
GetOrCreateLoroMovableList returns the LoroMovableList child at key, creating an attached empty one if absent.
func (*LoroMap) GetOrCreateLoroText ¶ added in v0.4.0
GetOrCreateLoroText returns the LoroText child at key, creating an attached empty one if absent.
func (*LoroMap) GetOrCreateLoroTree ¶ added in v0.4.0
GetOrCreateLoroTree returns the LoroTree child at key, creating an attached empty one if absent.
func (*LoroMap) GetOrCreateMapContainer ¶
func (*LoroMap) GetOrCreateMovableListContainer ¶
func (_self *LoroMap) GetOrCreateMovableListContainer(key string, child *LoroMovableList) (*LoroMovableList, error)
func (*LoroMap) GetOrCreateTextContainer ¶
func (*LoroMap) GetOrCreateTreeContainer ¶
func (*LoroMap) GetString ¶ added in v0.4.0
GetString returns the string value at key, or ("", false) if the key is absent or the value is not a string.
func (*LoroMap) GetValue ¶
Get the shallow value of the map.
It will not convert the state of sub-containers, but represent them as [LoroValue::Container].
func (*LoroMap) Insert ¶
func (_self *LoroMap) Insert(key string, v LoroValueLike) error
Insert a key-value pair into the map.
> **Note**: When calling `map.set(key, value)` on a LoroMap, if `map.get(key)` already returns `value`, > the operation will be a no-op (no operation recorded) to avoid unnecessary updates.
func (*LoroMap) InsertAny ¶ added in v0.4.0
InsertAny inserts a plain Go value at key. The value is converted via AsValue; passing an unsupported type returns an error without modifying the map.
func (*LoroMap) InsertCounterContainer ¶
func (_self *LoroMap) InsertCounterContainer(key string, child *LoroCounter) (*LoroCounter, error)
func (*LoroMap) InsertListContainer ¶
func (*LoroMap) InsertMapContainer ¶
func (*LoroMap) InsertMovableListContainer ¶
func (_self *LoroMap) InsertMovableListContainer(key string, child *LoroMovableList) (*LoroMovableList, error)
func (*LoroMap) InsertTextContainer ¶
func (*LoroMap) InsertTreeContainer ¶
func (*LoroMap) IsAttached ¶
Whether the container is attached to a document.
func (*LoroMap) IsExplicitlyNil ¶ added in v0.4.0
IsExplicitlyNil reports whether the value at key is set to an explicit nil (LoroValueNull), as opposed to the key being absent.
func (*LoroMap) Lookup ¶ added in v0.4.0
func (m *LoroMap) Lookup(key string) *ValueOrContainer
Lookup returns the value at key, or nil if the key is absent.
if v := m.Lookup("name"); v != nil {
// use v
}
func (*LoroMap) OwnerDoc ¶ added in v0.4.0
OwnerDoc returns the LoroDoc this container is attached to, or nil if it is detached.
func (*LoroMap) Subscribe ¶
func (_self *LoroMap) Subscribe(subscriber Subscriber) **Subscription
Subscribe the events of a container.
The callback will be invoked when the container is changed. Returns a subscription that can be used to unsubscribe.
The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroMap) SubscribeFn ¶ added in v0.4.0
func (m *LoroMap) SubscribeFn(fn func(diff DiffEvent)) *Subscription
SubscribeFn is a convenience wrapper around LoroMap.Subscribe that accepts a plain function instead of a Subscriber interface. Returns nil if the container is detached.
sub := m.SubscribeFn(func(diff loro.DiffEvent) {
fmt.Println("map changed")
})
if sub != nil {
defer sub.Unsubscribe()
}
func (*LoroMap) Values ¶
func (_self *LoroMap) Values() []*ValueOrContainer
Get the values of the map.
type LoroMapInterface ¶
type LoroMapInterface interface {
// Delete all key-value pairs in the map.
Clear() error
// Delete a key-value pair from the map.
Delete(key string) error
// Get the LoroDoc from this container
Doc() **LoroDoc
// Get the value of the map with the given key.
Get(key string) **ValueOrContainer
// If a detached container is attached, this method will return its corresponding attached handler.
GetAttached() **LoroMap
// Get the deep value of the map.
//
// It will convert the state of sub-containers into a nested JSON value.
GetDeepValue() LoroValue
// Get the peer id of the last editor on the given entry
GetLastEditor(key string) *uint64
GetOrCreateCounterContainer(key string, child *LoroCounter) (*LoroCounter, error)
GetOrCreateListContainer(key string, child *LoroList) (*LoroList, error)
GetOrCreateMapContainer(key string, child *LoroMap) (*LoroMap, error)
GetOrCreateMovableListContainer(key string, child *LoroMovableList) (*LoroMovableList, error)
GetOrCreateTextContainer(key string, child *LoroText) (*LoroText, error)
GetOrCreateTreeContainer(key string, child *LoroTree) (*LoroTree, error)
// Get the shallow value of the map.
//
// It will not convert the state of sub-containers, but represent them as [LoroValue::Container].
GetValue() LoroValue
// Get the ID of the map.
Id() ContainerId
// Insert a key-value pair into the map.
//
// > **Note**: When calling `map.set(key, value)` on a LoroMap, if `map.get(key)` already returns `value`,
// > the operation will be a no-op (no operation recorded) to avoid unnecessary updates.
Insert(key string, v LoroValueLike) error
InsertCounterContainer(key string, child *LoroCounter) (*LoroCounter, error)
InsertListContainer(key string, child *LoroList) (*LoroList, error)
InsertMapContainer(key string, child *LoroMap) (*LoroMap, error)
InsertMovableListContainer(key string, child *LoroMovableList) (*LoroMovableList, error)
InsertTextContainer(key string, child *LoroText) (*LoroText, error)
InsertTreeContainer(key string, child *LoroTree) (*LoroTree, error)
// Whether the container is attached to a document.
IsAttached() bool
// Whether the container is deleted.
IsDeleted() bool
// Whether the map is empty.
IsEmpty() bool
// Get the keys of the map.
Keys() []string
// Get the length of the map.
Len() uint32
// Subscribe the events of a container.
//
// The callback will be invoked when the container is changed.
// Returns a subscription that can be used to unsubscribe.
//
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Subscribe(subscriber Subscriber) **Subscription
// Get the values of the map.
Values() []*ValueOrContainer
}
type LoroMovableList ¶
type LoroMovableList struct {
// contains filtered or unexported fields
}
func GetLoroMovableListContainer ¶
func GetLoroMovableListContainer(v **ValueOrContainer) (*LoroMovableList, bool)
GetLoroMovableListContainer takes a pointer to a ValueOrContainer and returns the LoroMovableList value if it is a LoroMovableList.
func LiftFromExternalLoroMovableList ¶ added in v0.3.0
func LiftFromExternalLoroMovableList(handle uint64) *LoroMovableList
func NewLoroMovableList ¶
func NewLoroMovableList() *LoroMovableList
Create a new container that is detached from the document.
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroMovableList) All ¶ added in v0.4.0
func (ml *LoroMovableList) All() iter.Seq2[int, *ValueOrContainer]
All yields each (index, element) pair in order. The element is a *ValueOrContainer so nested containers are reachable without a second lookup. Len is sampled once at the start.
func (*LoroMovableList) At ¶ added in v0.4.0
func (ml *LoroMovableList) At(index uint32) *ValueOrContainer
At returns the value at index, or nil if the index is out of bounds.
func (*LoroMovableList) Attached ¶ added in v0.4.0
func (ml *LoroMovableList) Attached() *LoroMovableList
Attached returns the live attached version of this container, or nil if the container has been detached and has no attached counterpart.
func (*LoroMovableList) Clear ¶
func (_self *LoroMovableList) Clear() error
Delete all elements in the list.
func (*LoroMovableList) Cursor ¶ added in v0.4.0
func (ml *LoroMovableList) Cursor(pos uint32, side Side) *Cursor
Cursor creates a stable cursor at pos with the given side, or nil if a cursor cannot be created at that position.
func (*LoroMovableList) Delete ¶
func (_self *LoroMovableList) Delete(pos uint32, len uint32) error
Delete values at the given position.
func (*LoroMovableList) Destroy ¶
func (object *LoroMovableList) Destroy()
func (*LoroMovableList) Doc ¶
func (_self *LoroMovableList) Doc() **LoroDoc
Get the LoroDoc from this container
func (*LoroMovableList) Get ¶
func (_self *LoroMovableList) Get(index uint32) **ValueOrContainer
Get the value at the given position.
func (*LoroMovableList) GetAny ¶ added in v0.4.0
func (ml *LoroMovableList) GetAny(index uint32) (any, bool)
GetAny returns the value at index as an any, or (nil, false) if the index is out of bounds. Nested containers are returned as their *LoroX wrapper.
func (*LoroMovableList) GetAttached ¶
func (_self *LoroMovableList) GetAttached() **LoroMovableList
If a detached container is attached, this method will return its corresponding attached handler.
func (*LoroMovableList) GetBool ¶ added in v0.4.0
func (ml *LoroMovableList) GetBool(index uint32) (bool, bool)
GetBool returns the bool value at index, or (false, false) if the index is out of bounds or the value is not a bool.
func (*LoroMovableList) GetCreatorAt ¶
func (_self *LoroMovableList) GetCreatorAt(pos uint32) *uint64
func (*LoroMovableList) GetCursor ¶
func (_self *LoroMovableList) GetCursor(pos uint32, side Side) **Cursor
Get the cursor at the given position.
Using "index" to denote cursor positions can be unstable, as positions may shift with document edits. To reliably represent a position or range within a document, it is more effective to leverage the unique ID of each item/character in a List CRDT or Text CRDT.
Loro optimizes State metadata by not storing the IDs of deleted elements. This approach complicates tracking cursors since they rely on these IDs. The solution recalculates position by replaying relevant history to update stable positions accurately. To minimize the performance impact of history replay, the system updates cursor info to reference only the IDs of currently present elements, thereby reducing the need for replay.
func (*LoroMovableList) GetDeepValue ¶
func (_self *LoroMovableList) GetDeepValue() LoroValue
Get the deep value of the container.
func (*LoroMovableList) GetFloat64 ¶ added in v0.4.0
func (ml *LoroMovableList) GetFloat64(index uint32) (float64, bool)
GetFloat64 returns the float64 value at index, or (0, false) if the index is out of bounds or the value is not a float64.
func (*LoroMovableList) GetInt64 ¶ added in v0.4.0
func (ml *LoroMovableList) GetInt64(index uint32) (int64, bool)
GetInt64 returns the int64 value at index, or (0, false) if the index is out of bounds or the value is not an int64.
func (*LoroMovableList) GetLastEditorAt ¶
func (_self *LoroMovableList) GetLastEditorAt(pos uint32) *uint64
Get the last editor of the list item at the given position.
func (*LoroMovableList) GetLastMoverAt ¶
func (_self *LoroMovableList) GetLastMoverAt(pos uint32) *uint64
Get the last mover of the list item at the given position.
func (*LoroMovableList) GetList ¶ added in v0.4.0
func (ml *LoroMovableList) GetList(index uint32) ([]LoroValue, bool)
GetList returns the list value at index as []LoroValue, or (nil, false) if the index is out of bounds or the value is not a list.
func (*LoroMovableList) GetListOfAny ¶ added in v0.4.0
func (ml *LoroMovableList) GetListOfAny(index uint32) ([]any, bool)
GetListOfAny returns the list value at index as []any, or (nil, false) if the index is out of bounds or the value is not a list.
func (*LoroMovableList) GetLoroCounter ¶ added in v0.4.0
func (ml *LoroMovableList) GetLoroCounter(index uint32) (*LoroCounter, bool)
GetLoroCounter returns the LoroCounter at index, or (nil, false) if the index is out of bounds or the value is not a counter container.
func (*LoroMovableList) GetLoroList ¶ added in v0.4.0
func (ml *LoroMovableList) GetLoroList(index uint32) (*LoroList, bool)
GetLoroList returns the LoroList at index, or (nil, false) if the index is out of bounds or the value is not a list container.
func (*LoroMovableList) GetLoroMap ¶ added in v0.4.0
func (ml *LoroMovableList) GetLoroMap(index uint32) (*LoroMap, bool)
GetLoroMap returns the LoroMap at index, or (nil, false) if the index is out of bounds or the value is not a map container.
func (*LoroMovableList) GetLoroMovableList ¶ added in v0.4.0
func (ml *LoroMovableList) GetLoroMovableList(index uint32) (*LoroMovableList, bool)
GetLoroMovableList returns the LoroMovableList at index, or (nil, false) if the index is out of bounds or the value is not a movable list container.
func (*LoroMovableList) GetLoroText ¶ added in v0.4.0
func (ml *LoroMovableList) GetLoroText(index uint32) (*LoroText, bool)
GetLoroText returns the LoroText at index, or (nil, false) if the index is out of bounds or the value is not a text container.
func (*LoroMovableList) GetLoroTree ¶ added in v0.4.0
func (ml *LoroMovableList) GetLoroTree(index uint32) (*LoroTree, bool)
GetLoroTree returns the LoroTree at index, or (nil, false) if the index is out of bounds or the value is not a tree container.
func (*LoroMovableList) GetMap ¶ added in v0.4.0
func (ml *LoroMovableList) GetMap(index uint32) (map[string]LoroValue, bool)
GetMap returns the map value at index as map[string]LoroValue, or (nil, false) if the index is out of bounds or the value is not a map.
func (*LoroMovableList) GetMapOfAny ¶ added in v0.4.0
func (ml *LoroMovableList) GetMapOfAny(index uint32) (map[string]any, bool)
GetMapOfAny returns the map value at index as map[string]any, or (nil, false) if the index is out of bounds or the value is not a map.
func (*LoroMovableList) GetString ¶ added in v0.4.0
func (ml *LoroMovableList) GetString(index uint32) (string, bool)
GetString returns the string value at index, or ("", false) if the index is out of bounds or the value is not a string.
func (*LoroMovableList) GetValue ¶
func (_self *LoroMovableList) GetValue() LoroValue
Get the shallow value of the container.
This does not convert the state of sub-containers; instead, it represents them as [LoroValue::Container].
func (*LoroMovableList) Insert ¶
func (_self *LoroMovableList) Insert(pos uint32, v LoroValueLike) error
Insert a value at the given position.
func (*LoroMovableList) InsertAny ¶ added in v0.4.0
func (ml *LoroMovableList) InsertAny(pos uint32, v any) error
InsertAny inserts a plain Go value at pos. The value is converted via AsValue; passing an unsupported type returns an error without modifying the list.
func (*LoroMovableList) InsertCounterContainer ¶
func (_self *LoroMovableList) InsertCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
func (*LoroMovableList) InsertListContainer ¶
func (_self *LoroMovableList) InsertListContainer(pos uint32, child *LoroList) (*LoroList, error)
func (*LoroMovableList) InsertLoroCounter ¶ added in v0.4.0
func (ml *LoroMovableList) InsertLoroCounter(pos uint32) (*LoroCounter, error)
InsertLoroCounter inserts a fresh attached LoroCounter at pos and returns it.
func (*LoroMovableList) InsertLoroList ¶ added in v0.4.0
func (ml *LoroMovableList) InsertLoroList(pos uint32) (*LoroList, error)
InsertLoroList inserts a fresh attached LoroList at pos and returns it.
func (*LoroMovableList) InsertLoroMap ¶ added in v0.4.0
func (ml *LoroMovableList) InsertLoroMap(pos uint32) (*LoroMap, error)
InsertLoroMap inserts a fresh attached LoroMap at pos and returns it.
func (*LoroMovableList) InsertLoroMovableList ¶ added in v0.4.0
func (ml *LoroMovableList) InsertLoroMovableList(pos uint32) (*LoroMovableList, error)
InsertLoroMovableList inserts a fresh attached LoroMovableList at pos and returns it.
func (*LoroMovableList) InsertLoroText ¶ added in v0.4.0
func (ml *LoroMovableList) InsertLoroText(pos uint32) (*LoroText, error)
InsertLoroText inserts a fresh attached LoroText at pos and returns it.
func (*LoroMovableList) InsertLoroTree ¶ added in v0.4.0
func (ml *LoroMovableList) InsertLoroTree(pos uint32) (*LoroTree, error)
InsertLoroTree inserts a fresh attached LoroTree at pos and returns it.
func (*LoroMovableList) InsertMapContainer ¶
func (_self *LoroMovableList) InsertMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
func (*LoroMovableList) InsertMovableListContainer ¶
func (_self *LoroMovableList) InsertMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
func (*LoroMovableList) InsertTextContainer ¶
func (_self *LoroMovableList) InsertTextContainer(pos uint32, child *LoroText) (*LoroText, error)
func (*LoroMovableList) InsertTreeContainer ¶
func (_self *LoroMovableList) InsertTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
func (*LoroMovableList) IsAttached ¶
func (_self *LoroMovableList) IsAttached() bool
Whether the container is attached to a document
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroMovableList) IsDeleted ¶
func (_self *LoroMovableList) IsDeleted() bool
Whether the container is deleted.
func (*LoroMovableList) IsEmpty ¶
func (_self *LoroMovableList) IsEmpty() bool
func (*LoroMovableList) IsExplicitlyNil ¶ added in v0.4.0
func (ml *LoroMovableList) IsExplicitlyNil(index uint32) bool
IsExplicitlyNil reports whether the value at index is set to an explicit nil (LoroValueNull), as opposed to the index being out of bounds.
func (*LoroMovableList) Len ¶
func (_self *LoroMovableList) Len() uint32
func (*LoroMovableList) Mov ¶
func (_self *LoroMovableList) Mov(from uint32, to uint32) error
Move the value at the given position to the given position.
func (*LoroMovableList) OwnerDoc ¶ added in v0.4.0
func (ml *LoroMovableList) OwnerDoc() *LoroDoc
OwnerDoc returns the LoroDoc this container is attached to, or nil if it is detached.
func (*LoroMovableList) Pop ¶
func (_self *LoroMovableList) Pop() (**ValueOrContainer, error)
Pop the last element of the list.
func (*LoroMovableList) Push ¶
func (_self *LoroMovableList) Push(v LoroValueLike) error
func (*LoroMovableList) PushAny ¶ added in v0.4.0
func (ml *LoroMovableList) PushAny(v any) error
PushAny appends a plain Go value. The value is converted via AsValue; passing an unsupported type returns an error without modifying the list.
func (*LoroMovableList) Set ¶
func (_self *LoroMovableList) Set(pos uint32, value LoroValueLike) error
Set the value at the given position.
func (*LoroMovableList) SetAny ¶ added in v0.4.0
func (ml *LoroMovableList) SetAny(pos uint32, v any) error
SetAny replaces the value at pos with a plain Go value. The value is converted via AsValue; passing an unsupported type returns an error without modifying the list.
func (*LoroMovableList) SetCounterContainer ¶
func (_self *LoroMovableList) SetCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
func (*LoroMovableList) SetListContainer ¶
func (_self *LoroMovableList) SetListContainer(pos uint32, child *LoroList) (*LoroList, error)
func (*LoroMovableList) SetMapContainer ¶
func (_self *LoroMovableList) SetMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
func (*LoroMovableList) SetMovableListContainer ¶
func (_self *LoroMovableList) SetMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
func (*LoroMovableList) SetTextContainer ¶
func (_self *LoroMovableList) SetTextContainer(pos uint32, child *LoroText) (*LoroText, error)
func (*LoroMovableList) SetTreeContainer ¶
func (_self *LoroMovableList) SetTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
func (*LoroMovableList) Subscribe ¶
func (_self *LoroMovableList) Subscribe(subscriber Subscriber) **Subscription
Subscribe the events of a container.
The callback will be invoked when the container is changed. Returns a subscription that can be used to unsubscribe.
The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroMovableList) SubscribeFn ¶ added in v0.4.0
func (ml *LoroMovableList) SubscribeFn(fn func(diff DiffEvent)) *Subscription
SubscribeFn is a convenience wrapper around LoroMovableList.Subscribe that accepts a plain function instead of a Subscriber interface. Returns nil if the container is detached.
sub := ml.SubscribeFn(func(diff loro.DiffEvent) {
fmt.Println("movable list changed")
})
if sub != nil {
defer sub.Unsubscribe()
}
func (*LoroMovableList) ToVec ¶
func (_self *LoroMovableList) ToVec() []LoroValue
Get the elements of the list as a vector of LoroValues.
This method returns a vector containing all the elements in the list as LoroValues. It provides a convenient way to access the entire contents of the LoroMovableList as a standard Rust vector.
type LoroMovableListInterface ¶
type LoroMovableListInterface interface {
// Delete all elements in the list.
Clear() error
// Delete values at the given position.
Delete(pos uint32, len uint32) error
// Get the LoroDoc from this container
Doc() **LoroDoc
// Get the value at the given position.
Get(index uint32) **ValueOrContainer
// If a detached container is attached, this method will return its corresponding attached handler.
GetAttached() **LoroMovableList
GetCreatorAt(pos uint32) *uint64
// Get the cursor at the given position.
//
// Using "index" to denote cursor positions can be unstable, as positions may
// shift with document edits. To reliably represent a position or range within
// a document, it is more effective to leverage the unique ID of each item/character
// in a List CRDT or Text CRDT.
//
// Loro optimizes State metadata by not storing the IDs of deleted elements. This
// approach complicates tracking cursors since they rely on these IDs. The solution
// recalculates position by replaying relevant history to update stable positions
// accurately. To minimize the performance impact of history replay, the system
// updates cursor info to reference only the IDs of currently present elements,
// thereby reducing the need for replay.
GetCursor(pos uint32, side Side) **Cursor
// Get the deep value of the container.
GetDeepValue() LoroValue
// Get the last editor of the list item at the given position.
GetLastEditorAt(pos uint32) *uint64
// Get the last mover of the list item at the given position.
GetLastMoverAt(pos uint32) *uint64
// Get the shallow value of the container.
//
// This does not convert the state of sub-containers; instead, it represents them as [LoroValue::Container].
GetValue() LoroValue
// Get the container id.
Id() ContainerId
// Insert a value at the given position.
Insert(pos uint32, v LoroValueLike) error
InsertCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
InsertListContainer(pos uint32, child *LoroList) (*LoroList, error)
InsertMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
InsertMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
InsertTextContainer(pos uint32, child *LoroText) (*LoroText, error)
InsertTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
// Whether the container is attached to a document
//
// The edits on a detached container will not be persisted.
// To attach the container to the document, please insert it into an attached container.
IsAttached() bool
// Whether the container is deleted.
IsDeleted() bool
IsEmpty() bool
Len() uint32
// Move the value at the given position to the given position.
Mov(from uint32, to uint32) error
// Pop the last element of the list.
Pop() (**ValueOrContainer, error)
Push(v LoroValueLike) error
// Set the value at the given position.
Set(pos uint32, value LoroValueLike) error
SetCounterContainer(pos uint32, child *LoroCounter) (*LoroCounter, error)
SetListContainer(pos uint32, child *LoroList) (*LoroList, error)
SetMapContainer(pos uint32, child *LoroMap) (*LoroMap, error)
SetMovableListContainer(pos uint32, child *LoroMovableList) (*LoroMovableList, error)
SetTextContainer(pos uint32, child *LoroText) (*LoroText, error)
SetTreeContainer(pos uint32, child *LoroTree) (*LoroTree, error)
// Subscribe the events of a container.
//
// The callback will be invoked when the container is changed.
// Returns a subscription that can be used to unsubscribe.
//
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Subscribe(subscriber Subscriber) **Subscription
// Get the elements of the list as a vector of LoroValues.
//
// This method returns a vector containing all the elements in the list as LoroValues.
// It provides a convenient way to access the entire contents of the LoroMovableList
// as a standard Rust vector.
ToVec() []LoroValue
}
type LoroText ¶
type LoroText struct {
// contains filtered or unexported fields
}
func GetLoroTextContainer ¶
func GetLoroTextContainer(v **ValueOrContainer) (*LoroText, bool)
GetLoroTextContainer takes a pointer to a ValueOrContainer and returns the LoroText value if it is a LoroText.
func LiftFromExternalLoroText ¶ added in v0.3.0
func NewLoroText ¶
func NewLoroText() *LoroText
Create a new container that is detached from the document.
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroText) ApplyDelta ¶
Apply a [delta](https://quilljs.com/docs/delta/) to the text container.
func (*LoroText) Attached ¶ added in v0.4.0
Attached returns the live attached version of this container, or nil if the container has been detached and has no attached counterpart.
func (*LoroText) ConvertPos ¶ added in v0.2.0
Convert a position between coordinate systems (Unicode, UTF-16, UTF-8 bytes, Event).
func (*LoroText) Cursor ¶ added in v0.4.0
Cursor creates a stable cursor at pos with the given side, or nil if a cursor cannot be created at that position.
func (*LoroText) DeleteUtf8 ¶
Delete a range of text at the given utf-8 position with utf-8 length.
func (*LoroText) DeleteUtf16 ¶ added in v0.2.0
Delete a range of text at the given utf-16 position with utf-16 length.
func (*LoroText) GetAttached ¶
If a detached container is attached, this method will return its corresponding attached handler.
func (*LoroText) GetCursor ¶
Get the cursor at the given position in the given Unicode position..
Using "index" to denote cursor positions can be unstable, as positions may shift with document edits. To reliably represent a position or range within a document, it is more effective to leverage the unique ID of each item/character in a List CRDT or Text CRDT.
Loro optimizes State metadata by not storing the IDs of deleted elements. This approach complicates tracking cursors since they rely on these IDs. The solution recalculates position by replaying relevant history to update stable positions accurately. To minimize the performance impact of history replay, the system updates cursor info to reference only the IDs of currently present elements, thereby reducing the need for replay.
func (*LoroText) GetEditorAtUnicodePos ¶
Get the editor of the text at the given position.
func (*LoroText) GetRichtextValue ¶
Get the text in [Delta](https://quilljs.com/docs/delta/) format.
func (*LoroText) Id ¶
func (_self *LoroText) Id() ContainerId
Get the [ContainerID] of the text container.
func (*LoroText) InsertUtf8 ¶
Insert a string at the given utf-8 position.
func (*LoroText) InsertUtf16 ¶ added in v0.2.0
Insert a string at the given utf-16 position.
func (*LoroText) IsAttached ¶
Whether the container is attached to a document
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroText) LenUnicode ¶
Get the length of the text container in Unicode.
func (*LoroText) Mark ¶
Mark a range of text with a key-value pair.
You can use it to create a highlight, make a range of text bold, or add a link to a range of text.
You can specify the `expand` option to set the behavior when inserting text at the boundary of the range.
- `after`(default): when inserting text right after the given range, the mark will be expanded to include the inserted text - `before`: when inserting text right before the given range, the mark will be expanded to include the inserted text - `none`: the mark will not be expanded to include the inserted text at the boundaries - `both`: when inserting text either right before or right after the given range, the mark will be expanded to include the inserted text
*You should make sure that a key is always associated with the same expand type.*
Note: this is not suitable for unmergeable annotations like comments.
func (*LoroText) MarkAny ¶ added in v0.4.0
MarkAny applies a mark with a plain Go value over [from, to). The value is converted via AsValue; passing an unsupported type returns an error without applying the mark.
func (*LoroText) MarkUtf8Any ¶ added in v0.4.0
MarkUtf8Any applies a mark with a plain Go value over a UTF-8 range. The value is converted via AsValue; passing an unsupported type returns an error without applying the mark.
func (*LoroText) MarkUtf16Any ¶ added in v0.4.0
MarkUtf16Any applies a mark with a plain Go value over a UTF-16 range. The value is converted via AsValue; passing an unsupported type returns an error without applying the mark.
func (*LoroText) OwnerDoc ¶ added in v0.4.0
OwnerDoc returns the LoroDoc this container is attached to, or nil if it is detached.
func (*LoroText) SliceDelta ¶ added in v0.2.0
func (_self *LoroText) SliceDelta(startIndex uint32, endIndex uint32, posType PosType) ([]TextDelta, error)
Get the rich-text delta within a range.
func (*LoroText) SliceUtf16 ¶ added in v0.2.0
Get a string slice at the given UTF-16 range
func (*LoroText) Splice ¶
Delete specified character and insert string at the same position at given unicode position.
func (*LoroText) SpliceUtf16 ¶ added in v0.2.0
Delete specified range and insert a string at the same UTF-16 position.
func (*LoroText) Subscribe ¶
func (_self *LoroText) Subscribe(subscriber Subscriber) **Subscription
Subscribe the events of a container.
The callback will be invoked when the container is changed. Returns a subscription that can be used to unsubscribe.
The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroText) SubscribeFn ¶ added in v0.4.0
func (t *LoroText) SubscribeFn(fn func(diff DiffEvent)) *Subscription
SubscribeFn is a convenience wrapper around LoroText.Subscribe that accepts a plain function instead of a Subscriber interface. Returns nil if the container is detached.
sub := text.SubscribeFn(func(diff loro.DiffEvent) {
fmt.Println("text changed")
})
if sub != nil {
defer sub.Unsubscribe()
}
func (*LoroText) ToDelta ¶
Get the text in [Delta](https://quilljs.com/docs/delta/) format.
func (*LoroText) Unmark ¶
Unmark a range of text with a key and a value.
You can use it to remove highlights, bolds or links ¶
You can specify the `expand` option to set the behavior when inserting text at the boundary of the range.
**Note: You should specify the same expand type as when you mark the text.**
- `after`(default): when inserting text right after the given range, the mark will be expanded to include the inserted text - `before`: when inserting text right before the given range, the mark will be expanded to include the inserted text - `none`: the mark will not be expanded to include the inserted text at the boundaries - `both`: when inserting text either right before or right after the given range, the mark will be expanded to include the inserted text
*You should make sure that a key is always associated with the same expand type.*
Note: you cannot delete unmergeable annotations like comments by this method.
func (*LoroText) UnmarkUtf16 ¶ added in v0.2.0
Unmark a UTF-16 range of text with a key.
func (*LoroText) Update ¶
func (_self *LoroText) Update(s string, options UpdateOptions) error
Update the current text based on the provided text.
It will calculate the minimal difference and apply it to the current text. It uses Myers' diff algorithm to compute the optimal difference.
This could take a long time for large texts (e.g. > 50_000 characters). In that case, you should use `updateByLine` instead.
func (*LoroText) UpdateByLine ¶
func (_self *LoroText) UpdateByLine(s string, options UpdateOptions) error
Update the current text based on the provided text.
This update calculation is line-based, which will be more efficient but less precise.
type LoroTextInterface ¶
type LoroTextInterface interface {
// Apply a [delta](https://quilljs.com/docs/delta/) to the text container.
ApplyDelta(delta []TextDelta) error
// Get the characters at given unicode position.
CharAt(pos uint32) (string, error)
// Convert a position between coordinate systems (Unicode, UTF-16, UTF-8 bytes, Event).
ConvertPos(index uint32, from PosType, to PosType) *uint32
// Delete a range of text at the given unicode position with unicode length.
Delete(pos uint32, len uint32) error
// Delete a range of text at the given utf-16 position with utf-16 length.
DeleteUtf16(pos uint32, len uint32) error
// Delete a range of text at the given utf-8 position with utf-8 length.
DeleteUtf8(pos uint32, len uint32) error
// Get the LoroDoc from this container
Doc() **LoroDoc
// If a detached container is attached, this method will return its corresponding attached handler.
GetAttached() **LoroText
// Get the cursor at the given position in the given Unicode position..
//
// Using "index" to denote cursor positions can be unstable, as positions may
// shift with document edits. To reliably represent a position or range within
// a document, it is more effective to leverage the unique ID of each item/character
// in a List CRDT or Text CRDT.
//
// Loro optimizes State metadata by not storing the IDs of deleted elements. This
// approach complicates tracking cursors since they rely on these IDs. The solution
// recalculates position by replaying relevant history to update stable positions
// accurately. To minimize the performance impact of history replay, the system
// updates cursor info to reference only the IDs of currently present elements,
// thereby reducing the need for replay.
GetCursor(pos uint32, side Side) **Cursor
// Get the editor of the text at the given position.
GetEditorAtUnicodePos(pos uint32) *uint64
// Get the text in [Delta](https://quilljs.com/docs/delta/) format.
GetRichtextValue() LoroValue
// Get the [ContainerID] of the text container.
Id() ContainerId
// Insert a string at the given unicode position.
Insert(pos uint32, s string) error
// Insert a string at the given utf-16 position.
InsertUtf16(pos uint32, s string) error
// Insert a string at the given utf-8 position.
InsertUtf8(pos uint32, s string) error
// Whether the container is attached to a document
//
// The edits on a detached container will not be persisted.
// To attach the container to the document, please insert it into an attached container.
IsAttached() bool
// Whether the container is deleted.
IsDeleted() bool
// Whether the text container is empty.
IsEmpty() bool
// Get the length of the text container in Unicode.
LenUnicode() uint32
// Get the length of the text container in UTF-16.
LenUtf16() uint32
// Get the length of the text container in UTF-8.
LenUtf8() uint32
// Mark a range of text with a key-value pair.
//
// You can use it to create a highlight, make a range of text bold, or add a link to a range of text.
//
// You can specify the `expand` option to set the behavior when inserting text at the boundary of the range.
//
// - `after`(default): when inserting text right after the given range, the mark will be expanded to include the inserted text
// - `before`: when inserting text right before the given range, the mark will be expanded to include the inserted text
// - `none`: the mark will not be expanded to include the inserted text at the boundaries
// - `both`: when inserting text either right before or right after the given range, the mark will be expanded to include the inserted text
//
// *You should make sure that a key is always associated with the same expand type.*
//
// Note: this is not suitable for unmergeable annotations like comments.
Mark(from uint32, to uint32, key string, value LoroValueLike) error
// Mark a range of text with UTF-16 offsets.
MarkUtf16(from uint32, to uint32, key string, value LoroValueLike) error
// Mark a range of text with UTF-8 offsets.
MarkUtf8(from uint32, to uint32, key string, value LoroValueLike) error
// Push a string to the end of the text container.
PushStr(s string) error
// Get a string slice at the given Unicode range
Slice(startIndex uint32, endIndex uint32) (string, error)
// Get the rich-text delta within a range.
SliceDelta(startIndex uint32, endIndex uint32, posType PosType) ([]TextDelta, error)
// Get a string slice at the given UTF-16 range
SliceUtf16(startIndex uint32, endIndex uint32) (string, error)
// Delete specified character and insert string at the same position at given unicode position.
Splice(pos uint32, len uint32, s string) (string, error)
// Delete specified range and insert a string at the same UTF-16 position.
SpliceUtf16(pos uint32, len uint32, s string) error
// Subscribe the events of a container.
//
// The callback will be invoked when the container is changed.
// Returns a subscription that can be used to unsubscribe.
//
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Subscribe(subscriber Subscriber) **Subscription
// Get the text in [Delta](https://quilljs.com/docs/delta/) format.
ToDelta() []TextDelta
// Unmark a range of text with a key and a value.
//
// You can use it to remove highlights, bolds or links
//
// You can specify the `expand` option to set the behavior when inserting text at the boundary of the range.
//
// **Note: You should specify the same expand type as when you mark the text.**
//
// - `after`(default): when inserting text right after the given range, the mark will be expanded to include the inserted text
// - `before`: when inserting text right before the given range, the mark will be expanded to include the inserted text
// - `none`: the mark will not be expanded to include the inserted text at the boundaries
// - `both`: when inserting text either right before or right after the given range, the mark will be expanded to include the inserted text
//
// *You should make sure that a key is always associated with the same expand type.*
//
// Note: you cannot delete unmergeable annotations like comments by this method.
Unmark(from uint32, to uint32, key string) error
// Unmark a UTF-16 range of text with a key.
UnmarkUtf16(from uint32, to uint32, key string) error
// Update the current text based on the provided text.
//
// It will calculate the minimal difference and apply it to the current text.
// It uses Myers' diff algorithm to compute the optimal difference.
//
// This could take a long time for large texts (e.g. > 50_000 characters).
// In that case, you should use `updateByLine` instead.
Update(s string, options UpdateOptions) error
// Update the current text based on the provided text.
//
// This update calculation is line-based, which will be more efficient but less precise.
UpdateByLine(s string, options UpdateOptions) error
}
type LoroTree ¶
type LoroTree struct {
// contains filtered or unexported fields
}
func GetLoroTreeContainer ¶
func GetLoroTreeContainer(v **ValueOrContainer) (*LoroTree, bool)
GetLoroTreeContainer takes a pointer to a ValueOrContainer and returns the LoroTree value if it is a LoroTree.
func LiftFromExternalLoroTree ¶ added in v0.3.0
func NewLoroTree ¶
func NewLoroTree() *LoroTree
Create a new container that is detached from the document.
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroTree) AllChildren ¶ added in v0.4.0
func (t *LoroTree) AllChildren(parent TreeParentId) iter.Seq[TreeId]
AllChildren yields each direct child of parent. Yields nothing if parent is unknown or has no children.
func (*LoroTree) AllNodes ¶ added in v0.4.0
AllNodes yields every node id in the tree, in the order returned by Nodes.
func (*LoroTree) AllRoots ¶ added in v0.4.0
AllRoots yields every root node id, in the order returned by Roots.
func (*LoroTree) Attached ¶ added in v0.4.0
Attached returns the live attached version of this container, or nil if the container has been detached and has no attached counterpart.
func (*LoroTree) Children ¶
func (_self *LoroTree) Children(parent TreeParentId) *[]TreeId
Return all children of the target node.
If the parent node does not exist, return `None`.
func (*LoroTree) ChildrenNum ¶
func (_self *LoroTree) ChildrenNum(parent TreeParentId) *uint32
Return the number of children of the target node.
func (*LoroTree) Create ¶
func (_self *LoroTree) Create(parent TreeParentId) (TreeId, error)
Create a new tree node and return the [`TreeID`].
If the `parent` is `None`, the created node is the root of a tree. Otherwise, the created node is a child of the parent tree node.
func (*LoroTree) CreateAt ¶
func (_self *LoroTree) CreateAt(parent TreeParentId, index uint32) (TreeId, error)
Create a new tree node at the given index and return the [`TreeID`].
If the `parent` is `None`, the created node is the root of a tree. If the `index` is greater than the number of children of the parent, error will be returned.
func (*LoroTree) Delete ¶
Delete a tree node.
Note: If the deleted node has children, the children do not appear in the state rather than actually being deleted.
func (*LoroTree) DisableFractionalIndex ¶
func (_self *LoroTree) DisableFractionalIndex()
Disable the fractional index generation when you don't need the Tree's siblings to be sorted. The fractional index will always be set to the same default value 0.
After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`, and `tree.createAt()`.
func (*LoroTree) EnableFractionalIndex ¶
Enable fractional index for Tree Position.
The jitter is used to avoid conflicts when multiple users are creating the node at the same position. value 0 is default, which means no jitter, any value larger than 0 will enable jitter.
Generally speaking, jitter will affect the growth rate of document size. [Read more about it](https://www.loro.dev/blog/movable-tree#implementation-and-encoding-size)
func (*LoroTree) FractionalIndex ¶
Return the fractional index of the target node with hex format.
func (*LoroTree) GetAttached ¶
If a detached container is attached, this method will return its corresponding attached handler.
func (*LoroTree) GetLastMoveId ¶
Get the last move id of the target node.
func (*LoroTree) GetValue ¶
Return the flat array of the forest.
Note: the metadata will be not resolved. So if you don't only care about hierarchy but also the metadata, you should use `get_value_with_meta()`.
func (*LoroTree) GetValueWithMeta ¶
Return the flat array of the forest, each node is with metadata.
func (*LoroTree) IsAttached ¶
Whether the container is attached to a document
The edits on a detached container will not be persisted. To attach the container to the document, please insert it into an attached container.
func (*LoroTree) IsFractionalIndexEnabled ¶
Whether the fractional index is enabled.
func (*LoroTree) IsNodeDeleted ¶
Return whether target node is deleted.
# Errors - If the target node does not exist, return `LoroTreeError::TreeNodeNotExist`.
func (*LoroTree) Mov ¶
func (_self *LoroTree) Mov(target TreeId, parent TreeParentId) error
Move the `target` node to be a child of the `parent` node.
If the `parent` is `None`, the `target` node will be a root.
func (*LoroTree) MovAfter ¶
Move the `target` node to be a child after the `after` node with the same parent.
func (*LoroTree) MovBefore ¶
Move the `target` node to be a child before the `before` node with the same parent.
func (*LoroTree) MovTo ¶
func (_self *LoroTree) MovTo(target TreeId, parent TreeParentId, to uint32) error
Move the `target` node to be a child of the `parent` node at the given index. If the `parent` is `None`, the `target` node will be a root.
func (*LoroTree) OwnerDoc ¶ added in v0.4.0
OwnerDoc returns the LoroDoc this container is attached to, or nil if it is detached.
func (*LoroTree) Parent ¶
func (_self *LoroTree) Parent(target TreeId) (TreeParentId, error)
Return the parent of target node.
- If the target node does not exist, throws Error. - If the target node is a root node, return nil.
func (*LoroTree) Subscribe ¶
func (_self *LoroTree) Subscribe(subscriber Subscriber) **Subscription
Subscribe the events of a container.
The callback will be invoked when the container is changed. Returns a subscription that can be used to unsubscribe.
The events will be emitted after a transaction is committed. A transaction is committed when:
- `doc.commit()` is called. - `doc.export(mode)` is called. - `doc.import(data)` is called. - `doc.checkout(version)` is called.
func (*LoroTree) SubscribeFn ¶ added in v0.4.0
func (tr *LoroTree) SubscribeFn(fn func(diff DiffEvent)) *Subscription
SubscribeFn is a convenience wrapper around LoroTree.Subscribe that accepts a plain function instead of a Subscriber interface. Returns nil if the container is detached.
sub := tree.SubscribeFn(func(diff loro.DiffEvent) {
fmt.Println("tree changed")
})
if sub != nil {
defer sub.Unsubscribe()
}
type LoroTreeInterface ¶
type LoroTreeInterface interface {
// Return all children of the target node.
//
// If the parent node does not exist, return `None`.
Children(parent TreeParentId) *[]TreeId
// Return the number of children of the target node.
ChildrenNum(parent TreeParentId) *uint32
// Return whether target node exists.
Contains(target TreeId) bool
// Create a new tree node and return the [`TreeID`].
//
// If the `parent` is `None`, the created node is the root of a tree.
// Otherwise, the created node is a child of the parent tree node.
Create(parent TreeParentId) (TreeId, error)
// Create a new tree node at the given index and return the [`TreeID`].
//
// If the `parent` is `None`, the created node is the root of a tree.
// If the `index` is greater than the number of children of the parent, error will be returned.
CreateAt(parent TreeParentId, index uint32) (TreeId, error)
// Delete a tree node.
//
// Note: If the deleted node has children, the children do not appear in the state
// rather than actually being deleted.
Delete(target TreeId) error
// Disable the fractional index generation when you don't need the Tree's siblings to be sorted.
// The fractional index will always be set to the same default value 0.
//
// After calling this, you cannot use `tree.moveTo()`, `tree.moveBefore()`, `tree.moveAfter()`,
// and `tree.createAt()`.
DisableFractionalIndex()
// Get the LoroDoc from this container
Doc() **LoroDoc
// Enable fractional index for Tree Position.
//
// The jitter is used to avoid conflicts when multiple users are creating the node at the same position.
// value 0 is default, which means no jitter, any value larger than 0 will enable jitter.
//
// Generally speaking, jitter will affect the growth rate of document size.
// [Read more about it](https://www.loro.dev/blog/movable-tree#implementation-and-encoding-size)
EnableFractionalIndex(jitter uint8)
// Return the fractional index of the target node with hex format.
FractionalIndex(target TreeId) *string
// If a detached container is attached, this method will return its corresponding attached handler.
GetAttached() **LoroTree
// Get the last move id of the target node.
GetLastMoveId(target TreeId) *Id
// Get the associated metadata map handler of a tree node.
GetMeta(target TreeId) (*LoroMap, error)
// Return the flat array of the forest.
//
// Note: the metadata will be not resolved. So if you don't only care about hierarchy
// but also the metadata, you should use `get_value_with_meta()`.
GetValue() LoroValue
// Return the flat array of the forest, each node is with metadata.
GetValueWithMeta() LoroValue
// Return container id of the tree.
Id() ContainerId
// Whether the container is attached to a document
//
// The edits on a detached container will not be persisted.
// To attach the container to the document, please insert it into an attached container.
IsAttached() bool
// Whether the container is deleted.
IsDeleted() bool
// Whether the fractional index is enabled.
IsFractionalIndexEnabled() bool
// Return whether target node is deleted.
//
// # Errors
// - If the target node does not exist, return `LoroTreeError::TreeNodeNotExist`.
IsNodeDeleted(target TreeId) (bool, error)
// Move the `target` node to be a child of the `parent` node.
//
// If the `parent` is `None`, the `target` node will be a root.
Mov(target TreeId, parent TreeParentId) error
// Move the `target` node to be a child after the `after` node with the same parent.
MovAfter(target TreeId, after TreeId) error
// Move the `target` node to be a child before the `before` node with the same parent.
MovBefore(target TreeId, before TreeId) error
// Move the `target` node to be a child of the `parent` node at the given index.
// If the `parent` is `None`, the `target` node will be a root.
MovTo(target TreeId, parent TreeParentId, to uint32) error
// Return all nodes, including deleted nodes
Nodes() []TreeId
// Return the parent of target node.
//
// - If the target node does not exist, throws Error.
// - If the target node is a root node, return nil.
Parent(target TreeId) (TreeParentId, error)
// Get the root nodes of the forest.
Roots() []TreeId
// Subscribe the events of a container.
//
// The callback will be invoked when the container is changed.
// Returns a subscription that can be used to unsubscribe.
//
// The events will be emitted after a transaction is committed. A transaction is committed when:
//
// - `doc.commit()` is called.
// - `doc.export(mode)` is called.
// - `doc.import(data)` is called.
// - `doc.checkout(version)` is called.
Subscribe(subscriber Subscriber) **Subscription
}
type LoroUnknown ¶
type LoroUnknown struct {
// contains filtered or unexported fields
}
func LiftFromExternalLoroUnknown ¶ added in v0.3.0
func LiftFromExternalLoroUnknown(handle uint64) *LoroUnknown
func (*LoroUnknown) Destroy ¶
func (object *LoroUnknown) Destroy()
type LoroUnknownInterface ¶
type LoroUnknownInterface interface {
// Get the container id.
Id() ContainerId
}
type LoroValue ¶
type LoroValue interface {
Destroy()
}
func GetListValue ¶
func GetListValue(v **ValueOrContainer) ([]LoroValue, bool)
GetListValue takes a pointer to a ValueOrContainer and returns the list value if it is a list.
func GetValue ¶
func GetValue(v **ValueOrContainer) (LoroValue, bool)
GetValue takes ValueOrContainer and returns the LoroValue if it is a value.
func ValueAsList ¶ added in v0.4.0
ValueAsList returns the list contents of a LoroValue if it holds a list.
type LoroValueBinary ¶
type LoroValueBinary struct {
Value []byte
}
func (LoroValueBinary) Destroy ¶
func (e LoroValueBinary) Destroy()
func (LoroValueBinary) String ¶ added in v0.4.0
func (e LoroValueBinary) String() string
type LoroValueBool ¶
type LoroValueBool struct {
Value bool
}
func (LoroValueBool) Destroy ¶
func (e LoroValueBool) Destroy()
func (LoroValueBool) String ¶ added in v0.4.0
func (e LoroValueBool) String() string
type LoroValueContainer ¶
type LoroValueContainer struct {
Value ContainerId
}
func (LoroValueContainer) Destroy ¶
func (e LoroValueContainer) Destroy()
func (LoroValueContainer) String ¶ added in v0.4.0
func (e LoroValueContainer) String() string
type LoroValueDouble ¶
type LoroValueDouble struct {
Value float64
}
func (LoroValueDouble) Destroy ¶
func (e LoroValueDouble) Destroy()
func (LoroValueDouble) String ¶ added in v0.4.0
func (e LoroValueDouble) String() string
type LoroValueI64 ¶
type LoroValueI64 struct {
Value int64
}
func (LoroValueI64) Destroy ¶
func (e LoroValueI64) Destroy()
func (LoroValueI64) String ¶ added in v0.4.0
func (e LoroValueI64) String() string
type LoroValueLike ¶
type LoroValueLike interface {
AsLoroValue() LoroValue
}
func AsBinaryValue ¶ added in v0.4.0
func AsBinaryValue(v []byte) LoroValueLike
AsBinaryValue converts a byte slice to a LoroValueLike which can be used in most places that expect a value.
func AsBoolValue ¶
func AsBoolValue(v bool) LoroValueLike
AsBoolValue converts a bool to a LoroValueLike which can be used in most places that expect a value.
func AsFloat64Value ¶
func AsFloat64Value(v float64) LoroValueLike
AsFloat64Value converts a float64 to a LoroValueLike which can be used in most places that expect a value.
func AsInt64Value ¶
func AsInt64Value(v int64) LoroValueLike
AsInt64Value converts an int64 to a LoroValueLike which can be used in most places that expect a value.
func AsListValue ¶
func AsListValue(v []LoroValueLike) LoroValueLike
AsListValue converts a list of LoroValueLike to a LoroValueLike which can be used in most places that expect a value.
func AsListValueFromAny ¶
func AsListValueFromAny(v []any) (LoroValueLike, error)
AsListValueFromAny converts a vector of any to a LoroValueLike which can be used in most places that expect a value.
func AsListValueFromValue ¶
func AsListValueFromValue(v []LoroValue) LoroValueLike
AsListValueFromValue converts a vector of LoroValue to a LoroValueLike which can be used in most places that expect a value.
func AsMapValue ¶
func AsMapValue(v map[string]LoroValueLike) LoroValueLike
AsMapValue converts a map of string to LoroValueLike to a LoroValueLike which can be used in most places that expect a value.
func AsMapValueFromAny ¶
func AsMapValueFromAny(v map[string]any) (LoroValueLike, error)
AsMapValueFromAny converts a map of string to any to a LoroValueLike which can be used in most places that expect a value.
func AsMapValueFromValue ¶
func AsMapValueFromValue(v map[string]LoroValue) LoroValueLike
AsMapValueFromValue converts a map of string to LoroValue to a LoroValueLike which can be used in most places that expect a value.
func AsNilValue ¶
func AsNilValue() LoroValueLike
AsNilValue converts a null value to a LoroValueLike which can be used in most places that expect a value.
func AsStringValue ¶
func AsStringValue(v string) LoroValueLike
AsStringValue converts a string to a LoroValueLike which can be used in most places that expect a value.
func AsValue ¶
func AsValue(v any) (LoroValueLike, error)
AsValue converts an any to a LoroValueLike which can be used in most places that expect a value.
func LiftFromExternalLoroValueLike ¶ added in v0.3.0
func LiftFromExternalLoroValueLike(handle uint64) LoroValueLike
type LoroValueLikeImpl ¶
type LoroValueLikeImpl struct {
// contains filtered or unexported fields
}
func (*LoroValueLikeImpl) AsLoroValue ¶
func (_self *LoroValueLikeImpl) AsLoroValue() LoroValue
func (*LoroValueLikeImpl) Destroy ¶
func (object *LoroValueLikeImpl) Destroy()
type LoroValueList ¶
type LoroValueList struct {
Value []LoroValue
}
func (LoroValueList) Destroy ¶
func (e LoroValueList) Destroy()
func (LoroValueList) String ¶ added in v0.4.0
func (e LoroValueList) String() string
type LoroValueMap ¶
func (LoroValueMap) Destroy ¶
func (e LoroValueMap) Destroy()
func (LoroValueMap) String ¶ added in v0.4.0
func (e LoroValueMap) String() string
type LoroValueNull ¶
type LoroValueNull struct {
}
func (LoroValueNull) Destroy ¶
func (e LoroValueNull) Destroy()
func (LoroValueNull) String ¶ added in v0.4.0
func (LoroValueNull) String() string
type LoroValueString ¶
type LoroValueString struct {
Value string
}
func (LoroValueString) Destroy ¶
func (e LoroValueString) Destroy()
func (LoroValueString) String ¶ added in v0.4.0
func (e LoroValueString) String() string
type MapDelta ¶
type MapDelta struct {
Updated map[string]**ValueOrContainer
}
type NativeError ¶
type NativeError interface {
AsError() error
}
type OnPop ¶
type OnPop interface {
OnPop(undoOrRedo UndoOrRedo, span CounterSpan, undoMeta UndoItemMeta)
}
func LiftFromExternalOnPop ¶ added in v0.3.0
type OnPopFn ¶ added in v0.4.0
type OnPopFn func(undoOrRedo UndoOrRedo, span CounterSpan, undoMeta UndoItemMeta)
OnPopFn adapts a function to the OnPop interface.
Use with UndoManager.SetOnPop to be notified when an item is popped from the undo or redo stack (i.e. when an undo or redo is performed). The callback receives the metadata that was attached when the item was pushed.
pop := loro.OnPopFn(func(
undoOrRedo loro.UndoOrRedo,
span loro.CounterSpan,
undoMeta loro.UndoItemMeta,
) {
// restore cursor position from the saved metadata
restoreCursors(undoMeta.CursorsPos)
})
undoManager.SetOnPop(&pop)
func (OnPopFn) OnPop ¶ added in v0.4.0
func (fn OnPopFn) OnPop(undoOrRedo UndoOrRedo, span CounterSpan, undoMeta UndoItemMeta)
type OnPopImpl ¶
type OnPopImpl struct {
// contains filtered or unexported fields
}
func (*OnPopImpl) OnPop ¶
func (_self *OnPopImpl) OnPop(undoOrRedo UndoOrRedo, span CounterSpan, undoMeta UndoItemMeta)
type OnPush ¶
type OnPush interface {
OnPush(undoOrRedo UndoOrRedo, span CounterSpan, diffEvent *DiffEvent) UndoItemMeta
}
func LiftFromExternalOnPush ¶ added in v0.3.0
type OnPushFn ¶ added in v0.4.0
type OnPushFn func(undoOrRedo UndoOrRedo, span CounterSpan, diffEvent *DiffEvent) UndoItemMeta
OnPushFn adapts a function to the OnPush interface.
Use with UndoManager.SetOnPush to be notified when a new item is pushed onto the undo or redo stack. Return UndoItemMeta to attach custom metadata (e.g. cursor position) that will be available when the item is later popped.
push := loro.OnPushFn(func(
undoOrRedo loro.UndoOrRedo,
span loro.CounterSpan,
diffEvent *loro.DiffEvent,
) loro.UndoItemMeta {
return loro.UndoItemMeta{CursorsPos: cursorMap}
})
undoManager.SetOnPush(&push)
func (OnPushFn) OnPush ¶ added in v0.4.0
func (fn OnPushFn) OnPush(undoOrRedo UndoOrRedo, span CounterSpan, diffEvent *DiffEvent) UndoItemMeta
type OnPushImpl ¶
type OnPushImpl struct {
// contains filtered or unexported fields
}
func (*OnPushImpl) Destroy ¶
func (object *OnPushImpl) Destroy()
func (*OnPushImpl) OnPush ¶
func (_self *OnPushImpl) OnPush(undoOrRedo UndoOrRedo, span CounterSpan, diffEvent *DiffEvent) UndoItemMeta
type PathItem ¶
type PathItem struct {
Container ContainerId
Index Index
}
type PosQueryResult ¶
type PosQueryResult struct {
Update **Cursor
Current AbsolutePosition
}
func (*PosQueryResult) Destroy ¶
func (r *PosQueryResult) Destroy()
type PreCommitCallback ¶
type PreCommitCallback interface {
OnPreCommit(payload PreCommitCallbackPayload)
}
func AsPreCommitCallback ¶
func AsPreCommitCallback(fn PreCommitCallbackFn) PreCommitCallback
AsPreCommitCallback adapts a function to the PreCommitCallback interface.
func LiftFromExternalPreCommitCallback ¶ added in v0.3.0
func LiftFromExternalPreCommitCallback(handle uint64) PreCommitCallback
type PreCommitCallbackFn ¶
type PreCommitCallbackFn func(payload PreCommitCallbackPayload)
PreCommitCallbackFn adapts a function to the PreCommitCallback interface.
Use with LoroDoc.SubscribePreCommit to intercept commits before they are finalized. The callback receives a payload with change metadata and a ChangeModifier that lets you set a commit message or timestamp.
sub := doc.SubscribePreCommit(loro.PreCommitCallbackFn(
func(payload loro.PreCommitCallbackPayload) {
payload.Modifier.SetMessage("auto-tagged commit")
},
))
defer sub.Unsubscribe()
func (PreCommitCallbackFn) OnPreCommit ¶
func (fn PreCommitCallbackFn) OnPreCommit(payload PreCommitCallbackPayload)
type PreCommitCallbackImpl ¶
type PreCommitCallbackImpl struct {
// contains filtered or unexported fields
}
func (*PreCommitCallbackImpl) Destroy ¶
func (object *PreCommitCallbackImpl) Destroy()
func (*PreCommitCallbackImpl) OnPreCommit ¶
func (_self *PreCommitCallbackImpl) OnPreCommit(payload PreCommitCallbackPayload)
type PreCommitCallbackPayload ¶
type PreCommitCallbackPayload struct {
ChangeMeta ChangeMeta
Origin string
Modifier *ChangeModifier
}
func (*PreCommitCallbackPayload) Destroy ¶
func (r *PreCommitCallbackPayload) Destroy()
type RustBufferI ¶
type StringContainerId ¶
type StringContainerId string
StringContainerId is a string that can be used to get maps, lists, etc from a document.
func AsContainerId ¶
func AsContainerId(v string) StringContainerId
AsContainerId converts a string to a ContainerIDLike, which can be used to get maps, lists, etc from a document.
func (StringContainerId) AsContainerId ¶
func (c StringContainerId) AsContainerId(containerType ContainerType) ContainerId
type StyleConfig ¶
type StyleConfig struct {
Expand ExpandType
}
func (*StyleConfig) Destroy ¶
func (r *StyleConfig) Destroy()
type StyleConfigMap ¶
type StyleConfigMap struct {
// contains filtered or unexported fields
}
func LiftFromExternalStyleConfigMap ¶ added in v0.3.0
func LiftFromExternalStyleConfigMap(handle uint64) *StyleConfigMap
func NewStyleConfigMap ¶
func NewStyleConfigMap() *StyleConfigMap
func StyleConfigMapDefaultRichTextConfig ¶
func StyleConfigMapDefaultRichTextConfig() *StyleConfigMap
func (*StyleConfigMap) Destroy ¶
func (object *StyleConfigMap) Destroy()
func (*StyleConfigMap) Get ¶
func (_self *StyleConfigMap) Get(key string) *StyleConfig
func (*StyleConfigMap) Insert ¶
func (_self *StyleConfigMap) Insert(key string, value StyleConfig)
type StyleConfigMapInterface ¶
type StyleConfigMapInterface interface {
Get(key string) *StyleConfig
Insert(key string, value StyleConfig)
}
type Subscriber ¶
type Subscriber interface {
OnDiff(diff DiffEvent)
}
func AsSubscriber ¶
func AsSubscriber(fn SubscriberFn) Subscriber
AsSubscriber adapts a function to the Subscriber interface.
func LiftFromExternalSubscriber ¶ added in v0.3.0
func LiftFromExternalSubscriber(handle uint64) Subscriber
type SubscriberFn ¶
type SubscriberFn func(diff DiffEvent)
SubscriberFn adapts a function to the Subscriber interface.
Use with LoroDoc.Subscribe, LoroDoc.SubscribeRoot, or any container's Subscribe method (LoroMap, LoroList, LoroText, etc.) to observe document or container changes.
sub := doc.SubscribeRoot(loro.SubscriberFn(func(diff loro.DiffEvent) {
fmt.Println("changed by:", diff.TriggeredBy)
for _, event := range diff.Events {
fmt.Println("container:", event.CurrentTarget)
}
}))
defer sub.Unsubscribe()
func (SubscriberFn) OnDiff ¶
func (fn SubscriberFn) OnDiff(diff DiffEvent)
type SubscriberImpl ¶
type SubscriberImpl struct {
// contains filtered or unexported fields
}
func (*SubscriberImpl) Destroy ¶
func (object *SubscriberImpl) Destroy()
func (*SubscriberImpl) OnDiff ¶
func (_self *SubscriberImpl) OnDiff(diff DiffEvent)
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
A handle to a subscription created by GPUI. When dropped, the subscription is cancelled and the callback will no longer be invoked.
func LiftFromExternalSubscription ¶ added in v0.3.0
func LiftFromExternalSubscription(handle uint64) *Subscription
func (*Subscription) Destroy ¶
func (object *Subscription) Destroy()
func (*Subscription) Detach ¶
func (_self *Subscription) Detach()
Detaches the subscription from this handle. The callback will continue to be invoked until the views or models it has been subscribed to are dropped
func (*Subscription) Unsubscribe ¶
func (_self *Subscription) Unsubscribe()
Unsubscribes the subscription.
type SubscriptionInterface ¶
type SubscriptionInterface interface {
// Detaches the subscription from this handle. The callback will
// continue to be invoked until the views or models it has been
// subscribed to are dropped
Detach()
// Unsubscribes the subscription.
Unsubscribe()
}
A handle to a subscription created by GPUI. When dropped, the subscription is cancelled and the callback will no longer be invoked.
type TextDeltaDelete ¶
type TextDeltaDelete struct {
Delete uint32
}
func (TextDeltaDelete) Destroy ¶
func (e TextDeltaDelete) Destroy()
func (TextDeltaDelete) String ¶ added in v0.4.0
func (e TextDeltaDelete) String() string
type TextDeltaInsert ¶
func (TextDeltaInsert) Destroy ¶
func (e TextDeltaInsert) Destroy()
func (TextDeltaInsert) String ¶ added in v0.4.0
func (e TextDeltaInsert) String() string
type TextDeltaRetain ¶
func (TextDeltaRetain) Destroy ¶
func (e TextDeltaRetain) Destroy()
func (TextDeltaRetain) String ¶ added in v0.4.0
func (e TextDeltaRetain) String() string
type TreeDiff ¶
type TreeDiff struct {
Diff []TreeDiffItem
}
type TreeDiffItem ¶
type TreeDiffItem struct {
Target TreeId
Action TreeExternalDiff
}
func (*TreeDiffItem) Destroy ¶
func (r *TreeDiffItem) Destroy()
type TreeExternalDiff ¶
type TreeExternalDiff interface {
Destroy()
}
type TreeExternalDiffCreate ¶
type TreeExternalDiffCreate struct {
Parent TreeParentId
Index uint32
FractionalIndex string
}
func (TreeExternalDiffCreate) Destroy ¶
func (e TreeExternalDiffCreate) Destroy()
func (TreeExternalDiffCreate) String ¶ added in v0.4.0
func (e TreeExternalDiffCreate) String() string
type TreeExternalDiffDelete ¶
type TreeExternalDiffDelete struct {
OldParent TreeParentId
OldIndex uint32
}
func (TreeExternalDiffDelete) Destroy ¶
func (e TreeExternalDiffDelete) Destroy()
func (TreeExternalDiffDelete) String ¶ added in v0.4.0
func (e TreeExternalDiffDelete) String() string
type TreeExternalDiffMove ¶
type TreeExternalDiffMove struct {
Parent TreeParentId
Index uint32
FractionalIndex string
OldParent TreeParentId
OldIndex uint32
}
func (TreeExternalDiffMove) Destroy ¶
func (e TreeExternalDiffMove) Destroy()
func (TreeExternalDiffMove) String ¶ added in v0.4.0
func (e TreeExternalDiffMove) String() string
type TreeParentId ¶
type TreeParentId interface {
Destroy()
}
var ( TreeParentRoot TreeParentId = TreeParentIdRoot{} TreeParentDeleted TreeParentId = TreeParentIdDeleted{} TreeParentUnexist TreeParentId = TreeParentIdUnexist{} )
TreeParentId singletons. Use these instead of the zero-value struct literals (e.g. TreeParentIdRoot{}) when calling tree APIs that take a TreeParentId.
root, err := tree.Create(loro.TreeParentRoot) child, err := tree.Create(loro.TreeParentNode(root))
TreeParentRoot is the conceptual root of a tree (a node has no parent). It is distinct from TreeRoot(name), which returns a ContainerId for a tree root container in the document.
func TreeParentNode ¶ added in v0.4.0
func TreeParentNode(id TreeId) TreeParentId
TreeParentNode returns a TreeParentId that points at the given tree node. It replaces the verbose TreeParentIdNode{Id: id} struct literal.
child, err := tree.Create(loro.TreeParentNode(parent))
type TreeParentIdDeleted ¶
type TreeParentIdDeleted struct {
}
func (TreeParentIdDeleted) Destroy ¶
func (e TreeParentIdDeleted) Destroy()
func (TreeParentIdDeleted) String ¶ added in v0.4.0
func (TreeParentIdDeleted) String() string
type TreeParentIdNode ¶
type TreeParentIdNode struct {
Id TreeId
}
func (TreeParentIdNode) Destroy ¶
func (e TreeParentIdNode) Destroy()
func (TreeParentIdNode) String ¶ added in v0.4.0
func (e TreeParentIdNode) String() string
type TreeParentIdRoot ¶
type TreeParentIdRoot struct {
}
func (TreeParentIdRoot) Destroy ¶
func (e TreeParentIdRoot) Destroy()
func (TreeParentIdRoot) String ¶ added in v0.4.0
func (TreeParentIdRoot) String() string
type TreeParentIdUnexist ¶
type TreeParentIdUnexist struct {
}
func (TreeParentIdUnexist) Destroy ¶
func (e TreeParentIdUnexist) Destroy()
func (TreeParentIdUnexist) String ¶ added in v0.4.0
func (TreeParentIdUnexist) String() string
type UndoItemMeta ¶
type UndoItemMeta struct {
Value LoroValue
Cursors []CursorWithPos
}
func (*UndoItemMeta) Destroy ¶
func (r *UndoItemMeta) Destroy()
type UndoManager ¶
type UndoManager struct {
// contains filtered or unexported fields
}
func LiftFromExternalUndoManager ¶ added in v0.3.0
func LiftFromExternalUndoManager(handle uint64) *UndoManager
func (*UndoManager) AddExcludeOriginPrefix ¶
func (_self *UndoManager) AddExcludeOriginPrefix(prefix string)
If a local event's origin matches the given prefix, it will not be recorded in the undo stack.
func (*UndoManager) CanRedo ¶
func (_self *UndoManager) CanRedo() bool
Whether the undo manager can redo.
func (*UndoManager) CanUndo ¶
func (_self *UndoManager) CanUndo() bool
Whether the undo manager can undo.
func (*UndoManager) Destroy ¶
func (object *UndoManager) Destroy()
func (*UndoManager) GroupEnd ¶
func (_self *UndoManager) GroupEnd()
Ends the current group, calling UndoManager::undo() after this will undo all changes that occurred during the group.
func (*UndoManager) GroupStart ¶
func (_self *UndoManager) GroupStart() error
Will start a new group of changes, all subsequent changes will be merged into a new item on the undo stack. If we receive remote changes, we determine wether or not they are conflicting. If the remote changes are conflicting we split the undo item and close the group. If there are no conflict in changed container ids we continue the group merge.
func (*UndoManager) Peer ¶
func (_self *UndoManager) Peer() uint64
Get the peer id of the undo manager
func (*UndoManager) RecordNewCheckpoint ¶
func (_self *UndoManager) RecordNewCheckpoint() error
Record a new checkpoint.
func (*UndoManager) Redo ¶
func (_self *UndoManager) Redo() (bool, error)
Redo the last change made by the peer.
func (*UndoManager) RedoCount ¶
func (_self *UndoManager) RedoCount() uint32
How many times the undo manager can redo.
func (*UndoManager) SetMaxUndoSteps ¶
func (_self *UndoManager) SetMaxUndoSteps(size uint32)
Set the maximum number of undo steps. The default value is 100.
func (*UndoManager) SetMergeInterval ¶
func (_self *UndoManager) SetMergeInterval(interval int64)
Set the merge interval in ms. The default value is 0, which means no merge.
func (*UndoManager) SetOnPop ¶
func (_self *UndoManager) SetOnPop(onPop *OnPop)
Set the listener for pop events. The listener will be called when an undo/redo item is popped from the stack.
func (*UndoManager) SetOnPopFn ¶ added in v0.4.0
func (um *UndoManager) SetOnPopFn(fn func(undoOrRedo UndoOrRedo, span CounterSpan, undoMeta UndoItemMeta))
SetOnPopFn is a convenience wrapper around UndoManager.SetOnPop that accepts a plain function instead of an OnPop interface.
undoManager.SetOnPopFn(func(
undoOrRedo loro.UndoOrRedo,
span loro.CounterSpan,
undoMeta loro.UndoItemMeta,
) {
restoreCursors(undoMeta.CursorsPos)
})
func (*UndoManager) SetOnPush ¶
func (_self *UndoManager) SetOnPush(onPush *OnPush)
Set the listener for push events. The listener will be called when a new undo/redo item is pushed into the stack.
func (*UndoManager) SetOnPushFn ¶ added in v0.4.0
func (um *UndoManager) SetOnPushFn(fn func(undoOrRedo UndoOrRedo, span CounterSpan, diffEvent *DiffEvent) UndoItemMeta)
SetOnPushFn is a convenience wrapper around UndoManager.SetOnPush that accepts a plain function instead of an OnPush interface.
undoManager.SetOnPushFn(func(
undoOrRedo loro.UndoOrRedo,
span loro.CounterSpan,
diffEvent *loro.DiffEvent,
) loro.UndoItemMeta {
return loro.UndoItemMeta{CursorsPos: cursorMap}
})
func (*UndoManager) TopRedoMeta ¶
func (_self *UndoManager) TopRedoMeta() *UndoItemMeta
Get the metadata of the top redo stack item, if any.
func (*UndoManager) TopRedoValue ¶
func (_self *UndoManager) TopRedoValue() *LoroValue
Get the value associated with the top redo stack item, if any.
func (*UndoManager) TopUndoMeta ¶
func (_self *UndoManager) TopUndoMeta() *UndoItemMeta
Get the metadata of the top undo stack item, if any.
func (*UndoManager) TopUndoValue ¶
func (_self *UndoManager) TopUndoValue() *LoroValue
Get the value associated with the top undo stack item, if any.
func (*UndoManager) Undo ¶
func (_self *UndoManager) Undo() (bool, error)
Undo the last change made by the peer.
func (*UndoManager) UndoCount ¶
func (_self *UndoManager) UndoCount() uint32
How many times the undo manager can undo.
type UndoManagerInterface ¶
type UndoManagerInterface interface {
// If a local event's origin matches the given prefix, it will not be recorded in the
// undo stack.
AddExcludeOriginPrefix(prefix string)
// Whether the undo manager can redo.
CanRedo() bool
// Whether the undo manager can undo.
CanUndo() bool
// Ends the current group, calling UndoManager::undo() after this will
// undo all changes that occurred during the group.
GroupEnd()
// Will start a new group of changes, all subsequent changes will be merged
// into a new item on the undo stack. If we receive remote changes, we determine
// wether or not they are conflicting. If the remote changes are conflicting
// we split the undo item and close the group. If there are no conflict
// in changed container ids we continue the group merge.
GroupStart() error
// Get the peer id of the undo manager
Peer() uint64
// Record a new checkpoint.
RecordNewCheckpoint() error
// Redo the last change made by the peer.
Redo() (bool, error)
// How many times the undo manager can redo.
RedoCount() uint32
// Set the maximum number of undo steps. The default value is 100.
SetMaxUndoSteps(size uint32)
// Set the merge interval in ms. The default value is 0, which means no merge.
SetMergeInterval(interval int64)
// Set the listener for pop events.
// The listener will be called when an undo/redo item is popped from the stack.
SetOnPop(onPop *OnPop)
// Set the listener for push events.
// The listener will be called when a new undo/redo item is pushed into the stack.
SetOnPush(onPush *OnPush)
// Get the metadata of the top redo stack item, if any.
TopRedoMeta() *UndoItemMeta
// Get the value associated with the top redo stack item, if any.
TopRedoValue() *LoroValue
// Get the metadata of the top undo stack item, if any.
TopUndoMeta() *UndoItemMeta
// Get the value associated with the top undo stack item, if any.
TopUndoValue() *LoroValue
// Undo the last change made by the peer.
Undo() (bool, error)
// How many times the undo manager can undo.
UndoCount() uint32
}
type UndoOrRedo ¶
type UndoOrRedo uint
const ( UndoOrRedoUndo UndoOrRedo = 1 UndoOrRedoRedo UndoOrRedo = 2 )
func (UndoOrRedo) String ¶ added in v0.4.0
func (u UndoOrRedo) String() string
type Unsubscriber ¶
type Unsubscriber interface {
OnUnsubscribe()
}
func LiftFromExternalUnsubscriber ¶ added in v0.3.0
func LiftFromExternalUnsubscriber(handle uint64) Unsubscriber
type UnsubscriberImpl ¶
type UnsubscriberImpl struct {
// contains filtered or unexported fields
}
func (*UnsubscriberImpl) Destroy ¶
func (object *UnsubscriberImpl) Destroy()
func (*UnsubscriberImpl) OnUnsubscribe ¶
func (_self *UnsubscriberImpl) OnUnsubscribe()
type UpdateOptions ¶
func (*UpdateOptions) Destroy ¶
func (r *UpdateOptions) Destroy()
type UpdateTimeoutError ¶
type UpdateTimeoutError struct {
// contains filtered or unexported fields
}
func NewUpdateTimeoutErrorTimeout ¶
func NewUpdateTimeoutErrorTimeout() *UpdateTimeoutError
func (*UpdateTimeoutError) AsError ¶
func (err *UpdateTimeoutError) AsError() error
Convenience method to turn *UpdateTimeoutError into error Avoiding treating nil pointer as non nil error interface
func (UpdateTimeoutError) Error ¶
func (err UpdateTimeoutError) Error() string
func (UpdateTimeoutError) Unwrap ¶
func (err UpdateTimeoutError) Unwrap() error
type UpdateTimeoutErrorTimeout ¶
type UpdateTimeoutErrorTimeout struct {
// contains filtered or unexported fields
}
Variant structs
func (UpdateTimeoutErrorTimeout) Error ¶
func (err UpdateTimeoutErrorTimeout) Error() string
func (UpdateTimeoutErrorTimeout) Is ¶
func (self UpdateTimeoutErrorTimeout) Is(target error) bool
type ValueOrContainer ¶
type ValueOrContainer struct {
// contains filtered or unexported fields
}
func LiftFromExternalValueOrContainer ¶ added in v0.3.0
func LiftFromExternalValueOrContainer(handle uint64) *ValueOrContainer
func (*ValueOrContainer) AsContainer ¶
func (_self *ValueOrContainer) AsContainer() *ContainerId
func (*ValueOrContainer) AsLoroCounter ¶
func (_self *ValueOrContainer) AsLoroCounter() **LoroCounter
func (*ValueOrContainer) AsLoroList ¶
func (_self *ValueOrContainer) AsLoroList() **LoroList
func (*ValueOrContainer) AsLoroMap ¶
func (_self *ValueOrContainer) AsLoroMap() **LoroMap
func (*ValueOrContainer) AsLoroMovableList ¶
func (_self *ValueOrContainer) AsLoroMovableList() **LoroMovableList
func (*ValueOrContainer) AsLoroText ¶
func (_self *ValueOrContainer) AsLoroText() **LoroText
func (*ValueOrContainer) AsLoroTree ¶
func (_self *ValueOrContainer) AsLoroTree() **LoroTree
func (*ValueOrContainer) AsLoroUnknown ¶
func (_self *ValueOrContainer) AsLoroUnknown() **LoroUnknown
func (*ValueOrContainer) AsValue ¶
func (_self *ValueOrContainer) AsValue() *LoroValue
func (*ValueOrContainer) ContainerType ¶
func (_self *ValueOrContainer) ContainerType() *ContainerType
func (*ValueOrContainer) Destroy ¶
func (object *ValueOrContainer) Destroy()
func (*ValueOrContainer) IsContainer ¶
func (_self *ValueOrContainer) IsContainer() bool
func (*ValueOrContainer) IsValue ¶
func (_self *ValueOrContainer) IsValue() bool
type ValueOrContainerInterface ¶
type ValueOrContainerInterface interface {
AsContainer() *ContainerId
AsLoroCounter() **LoroCounter
AsLoroList() **LoroList
AsLoroMap() **LoroMap
AsLoroMovableList() **LoroMovableList
AsLoroText() **LoroText
AsLoroTree() **LoroTree
AsLoroUnknown() **LoroUnknown
AsValue() *LoroValue
ContainerType() *ContainerType
IsContainer() bool
IsValue() bool
}
type VersionRange ¶
type VersionRange struct {
// contains filtered or unexported fields
}
func LiftFromExternalVersionRange ¶ added in v0.3.0
func LiftFromExternalVersionRange(handle uint64) *VersionRange
func NewVersionRange ¶
func NewVersionRange() *VersionRange
func VersionRangeFromVv ¶
func VersionRangeFromVv(vv *VersionVector) *VersionRange
Create a VersionRange from a VersionVector
func (*VersionRange) Clear ¶
func (_self *VersionRange) Clear()
Clear all ranges in the VersionRange
func (*VersionRange) ContainsId ¶
func (_self *VersionRange) ContainsId(id Id) bool
Check if this VersionRange contains a specific ID
func (*VersionRange) ContainsIdSpan ¶
func (_self *VersionRange) ContainsIdSpan(span IdSpan) bool
Check if this VersionRange contains a specific ID span
func (*VersionRange) ContainsOpsBetween ¶
func (_self *VersionRange) ContainsOpsBetween(vvA *VersionVector, vvB *VersionVector) bool
Check if this VersionRange contains operations between two VersionVectors
func (*VersionRange) Destroy ¶
func (object *VersionRange) Destroy()
func (*VersionRange) ExtendsToIncludeIdSpan ¶
func (_self *VersionRange) ExtendsToIncludeIdSpan(span IdSpan)
Extend this VersionRange to include the given ID span
func (*VersionRange) Get ¶
func (_self *VersionRange) Get(peer uint64) *CounterSpan
Get the counter range for a specific peer Returns the counter range if the peer exists, null otherwise
func (*VersionRange) GetAllRanges ¶
func (_self *VersionRange) GetAllRanges() []VersionRangeItem
Get all ranges as a list of (peer, start, end) tuples
func (*VersionRange) GetPeers ¶
func (_self *VersionRange) GetPeers() []uint64
Get all peer IDs in this VersionRange
func (*VersionRange) HasOverlapWith ¶
func (_self *VersionRange) HasOverlapWith(span IdSpan) bool
Check if this VersionRange has overlap with the given ID span
func (*VersionRange) Insert ¶
func (_self *VersionRange) Insert(peer uint64, start int32, end int32)
Insert a counter range for a specific peer
func (*VersionRange) IsEmpty ¶
func (_self *VersionRange) IsEmpty() bool
Check if the VersionRange is empty
type VersionRangeInterface ¶
type VersionRangeInterface interface {
// Clear all ranges in the VersionRange
Clear()
// Check if this VersionRange contains a specific ID
ContainsId(id Id) bool
// Check if this VersionRange contains a specific ID span
ContainsIdSpan(span IdSpan) bool
// Check if this VersionRange contains operations between two VersionVectors
ContainsOpsBetween(vvA *VersionVector, vvB *VersionVector) bool
// Extend this VersionRange to include the given ID span
ExtendsToIncludeIdSpan(span IdSpan)
// Get the counter range for a specific peer
// Returns the counter range if the peer exists, null otherwise
Get(peer uint64) *CounterSpan
// Get all ranges as a list of (peer, start, end) tuples
GetAllRanges() []VersionRangeItem
// Get all peer IDs in this VersionRange
GetPeers() []uint64
// Check if this VersionRange has overlap with the given ID span
HasOverlapWith(span IdSpan) bool
// Insert a counter range for a specific peer
Insert(peer uint64, start int32, end int32)
// Check if the VersionRange is empty
IsEmpty() bool
}
type VersionRangeItem ¶
func (*VersionRangeItem) Destroy ¶
func (r *VersionRangeItem) Destroy()
type VersionVector ¶
type VersionVector struct {
// contains filtered or unexported fields
}
func LiftFromExternalVersionVector ¶ added in v0.3.0
func LiftFromExternalVersionVector(handle uint64) *VersionVector
func NewVersionVector ¶
func NewVersionVector() *VersionVector
func VersionVectorDecode ¶
func VersionVectorDecode(bytes []byte) (*VersionVector, error)
func (*VersionVector) Destroy ¶
func (object *VersionVector) Destroy()
func (*VersionVector) Diff ¶
func (_self *VersionVector) Diff(rhs *VersionVector) VersionVectorDiff
func (*VersionVector) Encode ¶
func (_self *VersionVector) Encode() []byte
func (*VersionVector) Eq ¶
func (_self *VersionVector) Eq(other *VersionVector) bool
func (*VersionVector) ExtendToIncludeVv ¶
func (_self *VersionVector) ExtendToIncludeVv(other *VersionVector)
func (*VersionVector) GetLast ¶
func (_self *VersionVector) GetLast(peer uint64) *int32
func (*VersionVector) GetMissingSpan ¶
func (_self *VersionVector) GetMissingSpan(target *VersionVector) []IdSpan
func (*VersionVector) IncludesId ¶
func (_self *VersionVector) IncludesId(id Id) bool
func (*VersionVector) IncludesVv ¶
func (_self *VersionVector) IncludesVv(other *VersionVector) bool
func (*VersionVector) IntersectSpan ¶
func (_self *VersionVector) IntersectSpan(target IdSpan) *CounterSpan
func (*VersionVector) Merge ¶
func (_self *VersionVector) Merge(other *VersionVector)
func (*VersionVector) PartialCmp ¶
func (_self *VersionVector) PartialCmp(other *VersionVector) *Ordering
func (*VersionVector) SetEnd ¶
func (_self *VersionVector) SetEnd(id Id)
func (*VersionVector) SetLast ¶
func (_self *VersionVector) SetLast(id Id)
func (*VersionVector) String ¶ added in v0.4.0
func (v *VersionVector) String() string
func (*VersionVector) ToHashmap ¶
func (_self *VersionVector) ToHashmap() map[uint64]int32
func (*VersionVector) TryUpdateLast ¶
func (_self *VersionVector) TryUpdateLast(id Id) bool
Update the end counter of the given client if the end is greater. Return whether updated
type VersionVectorDiff ¶
type VersionVectorDiff struct {
// need to add these spans to move from right to left
Retreat map[uint64]CounterSpan
// need to add these spans to move from left to right
Forward map[uint64]CounterSpan
}
func (*VersionVectorDiff) Destroy ¶
func (r *VersionVectorDiff) Destroy()
type VersionVectorInterface ¶
type VersionVectorInterface interface {
Diff(rhs *VersionVector) VersionVectorDiff
Encode() []byte
Eq(other *VersionVector) bool
ExtendToIncludeVv(other *VersionVector)
GetLast(peer uint64) *int32
GetMissingSpan(target *VersionVector) []IdSpan
IncludesId(id Id) bool
IncludesVv(other *VersionVector) bool
IntersectSpan(target IdSpan) *CounterSpan
Merge(other *VersionVector)
PartialCmp(other *VersionVector) *Ordering
SetEnd(id Id)
SetLast(id Id)
ToHashmap() map[uint64]int32
// Update the end counter of the given client if the end is greater. Return whether updated
TryUpdateLast(id Id) bool
}