Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dotchain/dot
/ types & classes
Types & classes
213 in github.com/dotchain/dot
⨍
Functions
1,359
◇
Types & classes
213
↓ 219 callers
TypeAlias
S8
S8 implements a string whose offsets are UTF8 bytes
changes/types/string.go:14
↓ 187 callers
TypeAlias
S16
S16 implements string with offsets and counts referring to utf16 runes. The UTF16 offsets map to native Javascript string offsets.
changes/types/string.go:61
↓ 21 callers
TypeAlias
Path
Path represents a reference to a value at a specific path. A nil or empty path refers to the root value. This is an immutable type -- none of the met
refs/path.go:20
↓ 20 callers
TypeAlias
Counter
Counter implements a 32-bit counter that can be incremented, decremented or replaced. Counter implements the changes.Value interface.
changes/types/counter.go:12
↓ 13 callers
TypeAlias
ChangeSet
ChangeSet represents a collection of changes. It implements the Change interface thereby allowing merging groups of changes against each other.
changes/changes.go:177
↓ 9 callers
FuncType
Callable
Callable wraps a function into a value type that can be called
x/rich/eval/callable.go:13
↓ 7 callers
TypeAlias
FontWeight
FontWeight is CSS font-weight
x/rich/data/font_weight.go:12
↓ 7 callers
TypeAlias
myInt32
ops/sjson/sjson_test.go:51
↓ 6 callers
TypeAlias
mySlice2
x/dotc/testdata/myslice/input.go:10
↓ 6 callers
TypeAlias
mySlice2P
x/dotc/testdata/myslice/input.go:15
↓ 4 callers
TypeAlias
mySlice3P
x/dotc/testdata/myslice/input.go:16
↓ 3 callers
TypeAlias
MySlice
MySlice is public
x/dotc/testdata/myslice/input.go:9
↓ 3 callers
TypeAlias
MySliceP
MySliceP is public
x/dotc/testdata/myslice/input.go:14
↓ 3 callers
FuncType
Scope
Scope is any scope lookup function. Scope lookups are expected to return evaluated values but nested fields may contain unevaluated values.
x/rich/eval/eval.go:91
↓ 3 callers
Struct
Slice
Slice has the type information of a slice for code generation of the Apply(), ApplyCollection() and Splice() methods
x/dotc/slice.go:14
↓ 3 callers
TypeAlias
TodoList
TodoList tracks a collection of todo items
example/todo.go:30
↓ 3 callers
TypeAlias
mySlice3
x/dotc/testdata/myslice/input.go:11
↓ 2 callers
TypeAlias
A
The A type represents a slice of arbitrary values. It implements the changes.Value interface. The actual elements can be nil (unlike the regular requi
changes/types/array.go:13
↓ 2 callers
Interface
Change
Change represents an OT-compatible mutation The methods provided here are the core methods. Custom changes should implement the Custom interface in
changes/changes.go:81
↓ 2 callers
TypeAlias
NoAttribute
NoAttribute specified that a specific attribute should be nullified. This is used with Editor.SetAttribute to specify that the override is actively re
x/rich/riched/no_attribute.go:14
↓ 2 callers
TypeAlias
SliceStream
SliceStream implements code generation for streams of slices
x/dotc/slices.go:13
↓ 2 callers
TypeAlias
StructStream
StructStream implements code generation for streams of structs
x/dotc/structs.go:13
↓ 2 callers
TypeAlias
UnionStream
UnionStream implements stream functionality for unions
x/dotc/unions.go:13
↓ 2 callers
TypeAlias
delContainer
changes/crdt/container.go:112
↓ 2 callers
TypeAlias
strError
ops/nw/common.go:96
↓ 2 callers
TypeAlias
subsuite
streams/substream_test.go:16
↓ 1 callers
TypeAlias
Text
Text represents a rich text
x/rich/text.go:30
↓ 1 callers
Interface
Value
Value represents an immutable JSON object that can apply changes. Array like values should also implement Collection
changes/changes.go:149
↓ 1 callers
TypeAlias
array
x/rich/eval/array.go:14
↓ 1 callers
TypeAlias
dict
x/rich/eval/dict.go:14
↓ 1 callers
TypeAlias
mckey
changes/meta.go:59
↓ 1 callers
TypeAlias
myTime
ops/sjson/sjson_test.go:69
↓ 1 callers
TypeAlias
str
x/rich/eval/string.go:13
Struct
Atomic
Atomic is an atomic Value. It can wrap any particular value and can be used in the Before, After fields of Replace or Splice.
changes/atomic.go:9
Interface
Attr
Attr is a single attribute value
x/rich/attrs.go:13
TypeAlias
Attrs
Attrs is a collection of attribute name value pairs
x/rich/attrs.go:19
Struct
BlockQuote
BlockQuote represents a block quote with any embedded content
x/rich/data/blockquote.go:14
Struct
Bolt
Bolt represents a local file (bolt db) storage Path is the path to the file to write snapshots Initial is the initial app state. This can be nil if
x/snapshot/snapshot.go:33
Struct
Bool
Bool implements a bool stream.
streams/bool.go:10
Interface
Cache
Cache holds transformation state for each operation. The transformed op is a version of the original op but one which can be applied directly on top
ops/cache.go:18
Struct
Call
Call represents a "call" expression. The first element of the array is expected to be "Callable" which can be called with the rest as args. All error
x/rich/eval/call.go:17
Struct
Caret
Caret is a reference to a specific position in an array-like object. This is an immutable type This only handles the standard set of changes. Custom
refs/caret.go:28
Struct
Client
Client implements the ops.Store interface by making network calls to the provided Url. All other fields of the Client are optional.
ops/nw/clientjs.go:22
Struct
Client
Client implements the ops.Store interface by making network calls to the provided Url. All other fields of the Client are optional.
ops/nw/client.go:21
Interface
Codec
Codec is the interface codecs will have to implement to marshal and unmarshal requests and responses
ops/nw/common.go:21
Struct
Codec
Codec exposes both the encoder and decoder
ops/sjson/sjson.go:69
Struct
Col
Col represents the information about the column. The ID field is immutable. The Ord field is meant to help sort the columns and is not meant to be d
x/rich/data/col.go:22
Interface
Collection
Collection represents an immutable array-like value
changes/changes.go:156
TypeAlias
Cols
Cols represents all the columns in the table
x/rich/data/cols.go:13
Struct
Config
Config defines the configuration options for synchronization
ops/sync/config.go:15
Struct
Container
Container holds a single CRDT value. This is implemented as a map of unique rank to values. Every update creates a new entry in this map. Undo of an
changes/crdt/container.go:18
Struct
Container
Container wraps a Value and a set of references into the value. It implements the changes.Value interface. It acts like a "map-like" object with the
refs/container.go:16
Interface
Context
Context defines the context in which a change is being applied. This is useful to capture data such as the "current user" or "virtual time" etc. For
changes/changes.go:251
Struct
Counter
Counter implements a counter stream.
streams/counter.go:13
Interface
Custom
Custom is the interface that custom change types should implement. This allows the "known" types to interact with custom types. Custom changes might
changes/changes.go:111
Struct
Decoder
Decoder decodes any value
ops/sjson/decoder.go:18
Struct
Dict
Dict implements a CRDT-style dictionary
changes/crdt/dict.go:10
Interface
Differ
Differ is the general Diff interface for computing changes in values as a changes.Change (which when applied to the old value is guaranteed to result
changes/diff/diff.go:16
Struct
Dir
Dir wraps a value along with a map of objects. The contents of the value can refer to entries in the map using Ref
x/rich/data/dir.go:14
Struct
Editor
Editor wraps rich.Text with selection state and richer APIs The current cursor position is stored in Focus and Achor, both of which must have atleast
x/rich/riched/editor.go:35
Struct
Encoder
Encoder encodes any value
ops/sjson/encoder.go:17
Struct
Entry
Entry is a heap entry
x/heap/heap.go:18
Struct
Field
Field holds info for a struct field
x/dotc/field.go:45
TypeAlias
FontStyle
FontStyle is CSS font-style
x/rich/data/font_style.go:12
FuncType
Formatter
Formatter is a generic html formatter
x/rich/html/format.go:19
Struct
Generic
Generic is a helper to build value and collection types
changes/types/generic.go:10
Struct
Handler
Handler implements ServerHTTP using the provided store and codecs map. If no codecs map is provided, DefaultCodecs is used instead.
ops/nw/server.go:21
Struct
Heading
Heading represents h1 to h6. Note that the contents of the heading tag can be any rich text.
x/rich/data/heading.go:16
Struct
Heap
Heap implements a heap of keys
x/heap/heap.go:24
Struct
Image
Image represents an image url
x/rich/data/image.go:13
Struct
Info
Info tracks all information used for code generation
x/dotc/info.go:16
Struct
Int
Int implements an int stream.
streams/int.go:10
Struct
Link
Link represents a url link
x/rich/data/link.go:13
Struct
List
List represents an ordered or unordered list The type can be one of the string values defined here: https://developer.mozilla.org/en-US/docs/Web/CSS/
x/rich/data/list.go:18
Interface
Log
Log is the default interface for logging used through out the DOT project. This allows callers to provide their implementation if needed.
log/log.go:14
TypeAlias
M
The M type represents a map of arbitrary key/values. It implements the changes.Value interface. As with all values, a nil value should be expressed v
changes/types/map.go:13
Struct
MergeResult
MergeResult contains the result of calling Merge on a path. If the path is invalidated by the change, the whole result is nil. Otherwise the field P s
refs/refs.go:56
Struct
Meta
Meta wraps a change with some metadata that is maintained as the change is merged. This is useful for carrying contexts with changes. One example is t
changes/meta.go:10
Struct
Move
Move represents a shuffling of some elements (specified by Offset and Count) over to a different spot (specified by Distance, which can be negative t
changes/move.go:10
Struct
MySlicePStream
MySlicePStream implements a stream of *MySliceP values
x/dotc/testdata/myslice/generated.go:485
Struct
MySliceStream
MySliceStream implements a stream of MySlice values
x/dotc/testdata/myslice/generated.go:305
Struct
MyStruct
MyStruct is public
x/dotc/testdata/mystruct/input.go:24
Struct
MyStructStream
MyStructStream implements a stream of MyStruct values
x/dotc/testdata/mystruct/generated3.go:69
Interface
Op
Op represents a collection of changes, like a git-commit. The ID of the op uniquely identifies it. All operations are effectively ordered sequentual
ops/op.go:28
Struct
Operation
Operation holds the basic info needed for Op with string IDs
ops/op.go:77
FuncType
Option
Option can be used to configure Sync behavior See WithSession and WithCloseNotify
ops/sync/config.go:49
Struct
ParseError
ParseError captures the error state
x/rich/eval/errors.go:20
TypeAlias
Path
changes/path_test.go:14
Struct
PathChange
PathChange represents a change at the provided "path" which can consist of strings (for map-like objects) and integers for array-like objects. In part
changes/path.go:12
Interface
PathMerger
PathMerger is the interface that custom Change types should implement.
refs/refs.go:44
Struct
Range
Range is a reference to a specific selection of elements in an array-like object. Ranges can be "collapsed" when they behave the same as Caret. This
refs/range.go:27
Struct
Rank
Rank implements a unique ID that can be used for sorting. The Epoch field is meant to track the time when the rank was created, so this can be used f
changes/crdt/rank.go:19
Interface
Ref
Ref represents the core Reference type
refs/refs.go:17
Struct
Ref
Ref represents a refereence to an embedded object storeed in a Dir. The Dir must be an ancestor of the Ref
x/rich/data/ref.go:11
Struct
Replace
Replace represents create, delete and update of a value based on whether Before is Nil, After is Nil and both are non-Nil respectively.
changes/replace.go:10
Struct
Row
Row represents the information about a row The ID field is immutable. The Ord field is meant to help sort the rows and is not meant to be directly m
x/rich/data/row.go:20
TypeAlias
Rows
Rows represents all the rows in the table
x/rich/data/rows.go:13
Struct
Run
Run implements a custom change type which applies a provided inner change to a run of items in an array. This is particularly useful for rich text op
changes/run/run.go:17
Struct
S16
S16 implements an UFT16 string stream
streams/s16.go:13
Struct
S8
S8 implements an UFT8 string stream
streams/s8.go:13
next →
1–100 of 213, ranked by callers