yjs

package module
v0.0.0-...-479073d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	// contains filtered or unexported fields
}

func NewComplexDocument

func NewComplexDocument(initialObjectJson *string) *Document

func NewTextDocument

func NewTextDocument(initialText *string) *Document

func (*Document) ApplyUpdate

func (d *Document) ApplyUpdate(encodedUpdate string) error

func (*Document) Close

func (d *Document) Close()

func (*Document) EncodeStateAsUpdate

func (d *Document) EncodeStateAsUpdate(targetStateVector string) (string, error)

func (*Document) Insert

func (d *Document) Insert(position uint, content string) error

func (*Document) StateVector

func (d *Document) StateVector() (string, error)

func (*Document) ToString

func (d *Document) ToString() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL