Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dotchain/dot
/ functions
Functions
1,359 in github.com/dotchain/dot
⨍
Functions
1,359
◇
Types & classes
213
↓ 351 callers
Method
Error
Error implements the Error interface
x/rich/eval/errors.go:26
↓ 338 callers
Method
Error
()
ops/nw/common.go:98
↓ 196 callers
Method
Apply
Apply applies the specified change on the object and returns the updated value.
changes/changes.go:152
↓ 127 callers
Method
Fatal
(v ...interface{})
log/log.go:17
↓ 110 callers
Method
Append
Append a sequence of operations. If the operation IDs already exist, those operations are ignored but do not generate an error.
ops/store.go:28
↓ 91 callers
Function
New
New returns a new Stream
streams/stream.go:136
↓ 86 callers
Method
Next
Next returns the change and the next stream. If no further changes exist, it returns nil for both. All related stream instances are guaranateed to con
streams/stream.go:116
↓ 78 callers
Function
NewText
NewText initializes a new rich text value
x/rich/text.go:13
↓ 76 callers
Method
Append
Append adds a change on top of the current change. If the current change has a Next, this is merged with the next and applied to the Next instead. T
streams/stream.go:101
↓ 75 callers
Method
Println
(v ...interface{})
log/log.go:16
↓ 71 callers
Method
Count
Count should noly be called on collection-like objects such as the Before/After fields of a Splice. It returns the size of the collection.
changes/changes.go:171
↓ 59 callers
Method
Slice
Slice should only be called on collection-like objects such as the Before/After fields of a Splice. Note that unlike Go's slice notation, the argument
changes/changes.go:166
↓ 47 callers
Method
Close
Close releases all resources. Any ongoing calls should not be canceled unless the caller cancels them via the context.
ops/store.go:44
↓ 43 callers
Method
GetSince
GetSince returns all operations with version atleast equal to the specified parameter. If the number of operations is larger than the limit, it is tru
ops/store.go:40
↓ 36 callers
Function
Format
Format converts any value to HTML
x/rich/html/format.go:22
↓ 36 callers
Function
Substream
Substream creates a child stream The sequence of keys are used as paths into the logical value and work for both array indices and object-like keys.
streams/substream.go:33
↓ 34 callers
Function
must
(err error)
ops/sjson/catch.go:17
↓ 31 callers
Method
Merge
Merge takes the current change and another change that were both applied to the same virtual JSON and returns transformed versions such that: c + oth
changes/changes.go:98
↓ 31 callers
Method
Merge
Merge updates the caret index based on the change. Note that it always returns a nil change as there is no way for a change to affect the caret.
refs/caret.go:37
↓ 31 callers
Method
SetAttribute
SetAttribute returns a change which when applied would set all the attributes in the range [offset, offset+count] to the provided value.
x/rich/text.go:86
↓ 27 callers
Method
Merge
Merge takes a change and returns an Ref that reflects the effect of the change. If the change affects the item specified by the Ref, it returns a mod
refs/refs.go:22
↓ 27 callers
Function
testMerge
(t *testing.T, s *rich.Text, c1, c2 changes.Change)
x/rich/setattr_test.go:230
↓ 26 callers
Method
Get
Get returns the current value or nil if there is no value available.
changes/crdt/dict.go:29
↓ 26 callers
Function
Simplify
Simplify converts a change to a simpler form if possible
changes/changes.go:280
↓ 24 callers
Method
ApplyCollection
ApplyCollection is just strongly typed Apply
changes/changes.go:161
↓ 24 callers
Method
check
(s string, r *bufio.Reader)
ops/sjson/decoder.go:259
↓ 23 callers
Method
Apply
Apply implements changes.Value
x/rich/data/table.go:211
↓ 23 callers
Method
Merge
Merge implements Ref.Merge
refs/path.go:23
↓ 23 callers
Function
testReverseMerge
(t *testing.T, s *rich.Text, c1, c2 changes.Change)
x/rich/setattr_test.go:240
↓ 22 callers
Function
Eval
Eval evaluates a value within a particular scope Values of type CallExpr evaluate to the corresponding call. All other values are simply the same va
x/rich/eval/eval.go:101
↓ 21 callers
Method
Move
(initial string, offset, count, distance int)
test/seqtest/seqtest.go:57
↓ 21 callers
Method
Revert
Revert returns the opposite effect of the current change. If applied directly after the current change it should undo the effect of the current change
changes/changes.go:103
↓ 19 callers
Method
Items
Items returns the seq as an array
changes/crdt/seq.go:20
↓ 19 callers
Method
Push
Push pushes all local change up to any remote stream. Does nothing if not connected to a remote stream
streams/stream.go:120
↓ 18 callers
Function
must
(err error)
x/dotc/info.go:136
↓ 17 callers
Method
Elem
Elem returns a field version of the element
x/dotc/slice.go:28
↓ 17 callers
Method
Name
()
x/rich/attrs.go:15
↓ 17 callers
Function
validateMerge
(t *testing.T, l, r changes.Change)
changes/run/run_test.go:189
↓ 16 callers
Method
Pull
Pull pulls all changes from a remote stream. Does nothing if not connected to a remote stream
streams/stream.go:124
↓ 15 callers
Method
Equal
Equal tests if two refs are the same.
refs/refs.go:25
↓ 15 callers
Function
Latest
Latest returns the latest stream instance and the set of changes that have taken place until then
streams/stream.go:201
↓ 15 callers
Function
MemStore
MemStore returns an in-memory implementation of the Store interface
test/testops/store.go:15
↓ 15 callers
Method
ReverseAppend
ReverseAppend is just like Append except ReverseMerge is used instead of Merge. ReverseAppend is used to when a remote change is being appended -- wi
streams/stream.go:108
↓ 14 callers
Method
Apply
Apply implements changes.Value:Apply
refs/container.go:48
↓ 14 callers
Function
LessOrd
LessOrd returns true if a < b
changes/crdt/ord.go:28
↓ 14 callers
Method
Revert
()
changes/crdt/wrapper.go:11
↓ 14 callers
Method
Set
Set creates or updates the value for a key
changes/crdt/dict.go:15
↓ 14 callers
Method
Splice
(initial string, offset, count int, replacement string)
test/seqtest/seqtest.go:56
↓ 14 callers
Method
dest
()
changes/move.go:221
↓ 13 callers
Function
NextOrd
NextOrd returns the next ordinal. Less(key, next(key)) is guaranteed to always be true
changes/crdt/ord.go:16
↓ 13 callers
Method
PlainText
PlainText returns the plain text version of the rich text.
x/rich/text.go:48
↓ 12 callers
Method
Encode
(value interface{}, writer io.Writer)
ops/nw/common.go:22
↓ 12 callers
Method
Error
()
ops/sync/session.go:95
↓ 12 callers
Function
Transform
Transform creates a new stream where changes are modified before being appended or before being fetched. Both next and append are optional. Note tha
streams/transform.go:16
↓ 12 callers
Function
Transformed
Transformed takes a store of raw operations and converts them to a transformed version that can be applied in sequence. The transformed Store only mo
ops/transformer.go:32
↓ 12 callers
Method
Update
(val *bool)
x/dotc/testdata/mystruct/input.go:37
↓ 11 callers
Method
Apply
Apply applies the change and returns the updated value Note: deleting an element via changes.Replace simply replaces it with nil. It does not actual
changes/types/array.go:57
↓ 11 callers
Method
ApplyTo
(ctx changes.Context, v changes.Value)
changes/crdt/wrapper.go:10
↓ 11 callers
Function
FormatBuilder
FormatBuilder converts any value to HTML If a formatter is provided, it is used for embedded objects
x/rich/html/format.go:31
↓ 11 callers
Method
ID
ID is the unique identifier for the operation. It should be of any type that can be compared for equality
ops/op.go:31
↓ 11 callers
Method
Normalize
Normalize ensures that distance is always positive
changes/move.go:289
↓ 11 callers
Method
Parent
Parent is the ID of the local operation this particular operation is based upon. If this operaiton is based upon an operation that has a version at t
ops/op.go:46
↓ 11 callers
Function
Polled
Polled implements a low-latency in memory poller. Any append will effectively trigger any pending polls to return. It can be used to wrap a store tha
ops/poller.go:18
↓ 11 callers
Method
ReverseMerge
ReverseMerge is used when a "known" change type is merged with a custom type: move.Merge(myType) The known type has no way of figuring out how to me
changes/changes.go:138
↓ 10 callers
Method
Basis
Basis is the last "stored" operation (i.e. with non-negative version) that has been factored in before the current operation. Example: If a client m
ops/op.go:65
↓ 10 callers
Method
Concat
Concat joins two rich text values
x/rich/text.go:78
↓ 10 callers
Function
NullCache
NullCache implements ops.Cache but does not save anything
test/testops/cache.go:12
↓ 10 callers
Method
Simplify
()
changes/changes.go:288
↓ 10 callers
Function
simpleCall
(op string)
x/rich/eval/parse.go:149
↓ 9 callers
Method
ApplyTo
ApplyTo allows custom change types to implement a method to apply their changes onto known "values". This allows Value implementations to be written
changes/changes.go:144
↓ 9 callers
Method
Diff
Diff implemnets Differ.Diff for standard types
changes/diff/diff.go:29
↓ 9 callers
Function
NewEmbed
NewEmbed creates a text with an embedded object (such as data.link)
x/rich/text.go:22
↓ 9 callers
Method
encodeValue
(v reflect.Value, w *bufio.Writer)
ops/sjson/encoder.go:42
↓ 9 callers
Function
formatPath
(path []interface{}, s string)
x/cmd/dotls/dotls.go:152
↓ 9 callers
Function
must
(err error)
ops/sync/sync_test.go:226
↓ 8 callers
Method
Append
Append proxies the Append call over to the url
ops/nw/request.go:66
↓ 8 callers
Method
Apply
Apply implements changes.Value
x/rich/text.go:101
↓ 8 callers
Function
Branch
Branch returns a new stream based on the provided stream. All changes made on the branch are only merged upstream when Push is called explicitly and a
streams/branch.go:13
↓ 8 callers
Method
Changes
Changes is the changes associated with this operation. It can be nil.
ops/op.go:69
↓ 8 callers
Method
ColIDs
ColIDs returns all the column IDs sorted in order
x/rich/data/table.go:37
↓ 8 callers
Method
Decode
(value interface{}, reader io.Reader)
ops/nw/common.go:23
↓ 8 callers
Method
GetStr16
()
x/dotc/testdata/myunion/generated.go:118
↓ 8 callers
Method
Iterate
Iterate calls the provided function for each Entry in the heap in descending order of Rank value.
x/heap/heap.go:68
↓ 8 callers
Function
Register
Register registers the values with all the default codecs
ops/nw/common.go:81
↓ 8 callers
Method
Register
(v interface{})
ops/nw/common.go:24
↓ 8 callers
Method
RowIDs
RowIDs returns all the row IDs sorted in order
x/rich/data/table.go:50
↓ 8 callers
Method
String
()
ops/sjson/sjson_test.go:58
↓ 8 callers
Method
Update
(val *bool)
x/dotc/testdata/myunion/input.go:31
↓ 8 callers
Method
Version
Version is the index of the operation in the sequential store. For operations that have not yet been stored (such as client operations), this must be
ops/op.go:37
↓ 8 callers
Method
getBoo
()
x/dotc/testdata/myunion/generated.go:76
↓ 8 callers
Method
getBoop
()
x/dotc/testdata/myunion/generated.go:90
↓ 8 callers
Function
getContext
()
ops/nw/nw_test.go:141
↓ 8 callers
Method
getStr
()
x/dotc/testdata/myunion/generated.go:104
↓ 8 callers
Function
randS
()
changes/diff/string_test.go:62
↓ 8 callers
Function
validateMergeResults
(t *testing.T, l, r, lexpected, rexpected changes.Change)
changes/path_test.go:150
↓ 7 callers
Method
Apply
Apply applies the change and returns the updated value
changes/types/map.go:36
↓ 7 callers
Method
ApplyTo
(ctx changes.Context, v changes.Value)
changes/crdt/wrapper.go:32
↓ 7 callers
Function
BetweenOrd
BetweenOrd returns keys between the two provided keys.
changes/crdt/ord.go:33
↓ 7 callers
Method
Latest
Latest returns the latest non-nil entry in the stream
streams/s16.go:37
↓ 7 callers
Method
MapIndex
MapIndex maps a particular index to the new location of the index after the move
changes/move.go:199
next →
1–100 of 1,359, ranked by callers