Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/MongoShake
/ functions
Functions
933 in github.com/alibaba/MongoShake
⨍
Functions
933
◇
Types & classes
171
↓ 1 callers
Method
Id
()
modules/compress.go:35
↓ 1 callers
Method
Incr
(table string, n uint64)
common/metric.go:411
↓ 1 callers
Method
Init
()
collector/syncer.go:164
↓ 1 callers
Method
Init
()
collector/worker.go:69
↓ 1 callers
Method
Init
()
collector/docsyncer/doc_syncer.go:379
↓ 1 callers
Function
InitPrometheus
()
common/metric_prom.go:172
↓ 1 callers
Method
Insert
Insert save checkpoint
collector/ckpt/ckpt_operation.go:52
↓ 1 callers
Method
Install
** * Module install and initialize. return false on failed * and only invocation on WriteController is preparing */
collector/write_controller.go:31
↓ 1 callers
Method
IsAllAcked
()
collector/worker.go:83
↓ 1 callers
Method
IsCommitOp
IsCommitOp is commitTransaction oplog
oplog/txn_meta.go:120
↓ 1 callers
Method
IsCompatible
(int)
common/fcv.go:36
↓ 1 callers
Function
IsNeedFilterCommand
(operation string)
oplog/cmd_oplog.go:62
↓ 1 callers
Method
IsNotNil
()
common/change_stream.go:133
↓ 1 callers
Method
IsRegistered
()
collector/write_controller.go:25
↓ 1 callers
Method
IsShardCluster
()
collector/configure/configure.go:130
↓ 1 callers
Function
IsShardingToSharding
(fromIsSharding bool, toConn *utils.MongoCommunityConn)
collector/docsyncer/doc_syncer.go:28
↓ 1 callers
Method
Link
** * Bridge of tunnel reader and aggregater(replayer) * */
tunnel/tunnel.go:210
↓ 1 callers
Function
LogParsed
(logs []*GenericOplog)
oplog/oplog.go:78
↓ 1 callers
Method
Machine
()
tools/mongo_id.go:26
↓ 1 callers
Method
MakeCopy
()
common/metric.go:417
↓ 1 callers
Function
Mkdirs
(dirs ...string)
common/mix.go:136
↓ 1 callers
Method
Name
()
modules/compress.go:34
↓ 1 callers
Function
NewBarrierMatrix
()
executor/collision_matrix.go:338
↓ 1 callers
Function
NewCollectionExecutor
(id int, mongoUrl string, ns utils.NS, syncer *DBSyncer, sslRootFile string)
collector/docsyncer/doc_executor.go:49
↓ 1 callers
Function
NewConfig
(rootCaFile string)
tunnel/kafka/common.go:38
↓ 1 callers
Function
NewDeflateCompressor
()
modules/compress.go:239
↓ 1 callers
Function
NewDocumentSplitter
(src, sslRootCaFile string, ns utils.NS)
collector/docsyncer/doc_reader.go:36
↓ 1 callers
Function
NewExampleReplayer
(id int)
receiver/replayer.go:36
↓ 1 callers
Function
NewExecutor
(id int, batchExecutor *BatchGroupExecutor, MongoUrl string)
executor/executor.go:209
↓ 1 callers
Function
NewGZipCompressor
()
modules/compress.go:139
↓ 1 callers
Function
NewOplogReader
NewOplogReader creates reader with mongodb url
collector/reader/oplog_reader.go:66
↓ 1 callers
Function
NewOplogSyncer
NewOplogSyncer return a new OplogSyncer. OplogSyncer is used to fetch oplog from source MongoDB and then send to different workers which can be seen a
collector/syncer.go:104
↓ 1 callers
Function
NewReader
(address string)
tunnel/kafka/reader.go:16
↓ 1 callers
Function
NewSnappyCompressor
()
modules/compress.go:177
↓ 1 callers
Function
NewSyncWriter
(rootCaFile, address string, partitionId int)
tunnel/kafka/sync_writer.go:19
↓ 1 callers
Function
NewTableOps
()
common/metric.go:407
↓ 1 callers
Function
NewWorker
(syncer *OplogSyncer, id uint32)
collector/worker.go:54
↓ 1 callers
Function
NewWriteController
(worker *Worker)
collector/write_controller.go:51
↓ 1 callers
Function
NewZlibCompressor
()
modules/compress.go:201
↓ 1 callers
Method
Next
Next returns an oplog by raw bytes which is []byte
collector/reader/oplog_reader.go:105
↓ 1 callers
Method
Next
Next returns an oplog by raw bytes which is []byte
collector/reader/event_reader.go:92
↓ 1 callers
Method
NextDoc
NextDoc returns a document by raw bytes which is []byte reader.docCursor.Current is valid only before next docCursor.Next(), So must be copy
collector/docsyncer/doc_reader.go:351
↓ 1 callers
Function
ObjectIdHex
(s string)
tools/mongo_id.go:14
↓ 1 callers
Method
Offer
(batch []*oplog.GenericOplog)
collector/worker.go:102
↓ 1 callers
Method
Pid
()
tools/mongo_id.go:29
↓ 1 callers
Method
Prepare
** * prepare stage of the tunnel such as create the network connection or initialize * something etc before the Send() invocation. * return true
tunnel/tunnel.go:130
↓ 1 callers
Method
ReadHeader
()
tunnel/file_writer.go:73
↓ 1 callers
Method
RestAPI
()
collector/worker.go:317
↓ 1 callers
Method
RestAPI
RestAPI restful api
collector/docsyncer/doc_syncer.go:578
↓ 1 callers
Method
RestAPI
()
executor/executor.go:409
↓ 1 callers
Method
Run
()
collector/docsyncer/doc_reader.go:101
↓ 1 callers
Function
RunCommand
RunCommand is synced from executor.RunCommand
oplog/change_stream_event_test.go:112
↓ 1 callers
Function
RunExtraJob
(RealSourceIncrSync []*utils.MongoSource)
collector/coordinator/extra_job.go:43
↓ 1 callers
Function
RunStatusMessage
(status uint64)
common/common.go:48
↓ 1 callers
Function
SanitizeOptions
()
cmd/collector/sanitize.go:40
↓ 1 callers
Method
SetFetchMethod
(method string)
collector/ckpt/ckpt_manager.go:133
↓ 1 callers
Method
SetInitSyncFinishTs
(fullSyncFinishPosition int64)
collector/worker.go:79
↓ 1 callers
Method
SetOplogAvg
(size int64)
common/metric.go:289
↓ 1 callers
Method
SetOplogMax
(max int64)
common/metric.go:284
↓ 1 callers
Method
SetOplogPutDelay
(delay int64)
common/metric.go:333
↓ 1 callers
Method
SimpleWrite
(input []byte)
tunnel/kafka/sync_writer.go:49
↓ 1 callers
Method
SourceIsSharding
()
collector/coordinator/full.go:245
↓ 1 callers
Method
Start
Start to polling oplog
collector/syncer.go:198
↓ 1 callers
Method
Start
()
collector/docsyncer/doc_syncer.go:390
↓ 1 callers
Method
Start
()
collector/docsyncer/doc_executor.go:60
↓ 1 callers
Method
StartDiskApply
()
collector/syncer.go:193
↓ 1 callers
Method
StartFetcher
reader name
collector/reader/reader.go:11
↓ 1 callers
Method
StartFetcher
StartFetcher start fetcher if not exist
collector/reader/event_reader.go:106
↓ 1 callers
Function
StartNamespaceSpecSyncForSharding
(csUrl string, toConn *utils.MongoCommunityConn, nsTrans *transform.NamespaceTransform)
collector/docsyncer/doc_syncer.go:106
↓ 1 callers
Method
StartWorker
()
collector/worker.go:144
↓ 1 callers
Method
Stop
Stop shuts down processing and cleans up. Subsequent calls to Stop() will return nil. All other methods error after this is called.
oplog/txn_buffer.go:267
↓ 1 callers
Method
Success
()
common/metric.go:231
↓ 1 callers
Method
SyncToDisk
()
tunnel/file_writer.go:99
↓ 1 callers
Method
ToBytes
(order binary.ByteOrder)
tunnel/tunnel.go:61
↓ 1 callers
Method
Tps
()
common/metric.go:235
↓ 1 callers
Function
TxnOpTimeIsEmpty
TxnOpTimeIsEmpty returns true if opTime is uninitialized, false otherwise.
oplog/txn_optime.go:39
↓ 1 callers
Function
TxnOpTimeLessThan
TxnOpTimeLessThan returns true if lhs comes before rhs, false otherwise. We first check if both the terms exist. If they don't or they're equal, we co
oplog/txn_optime.go:69
↓ 1 callers
Method
UpdateQueryTimestamp
(ts int64)
collector/reader/oplog_reader.go:95
↓ 1 callers
Method
WriteHeader
()
tunnel/file_writer.go:57
↓ 1 callers
Function
WritePid
(id string)
common/common.go:92
↓ 1 callers
Function
YieldInMs
(n int64)
common/mix.go:18
↓ 1 callers
Function
_Open
(path string)
tunnel/file_writer.go:131
↓ 1 callers
Function
addCACertFromFile
(cfg *tls.Config, file string)
common/community_client.go:31
↓ 1 callers
Function
bsonDocToOplog
(doc bson.D)
oplog/txn_buffer.go:395
↓ 1 callers
Method
bufferInput
(input []byte)
collector/persister.go:188
↓ 1 callers
Function
buildMetadata
(oplog *oplog.PartialLog)
executor/operation.go:253
↓ 1 callers
Function
captureStdout
(t *testing.T, run func())
pkg/log/logger_test.go:16
↓ 1 callers
Function
check
(src, dst)
tools/mongodb-schema.py:64
↓ 1 callers
Function
check
(src, dst)
scripts/comparison_3x.py:55
↓ 1 callers
Function
check
(src, dst)
scripts/comparison.py:54
↓ 1 callers
Function
checkConnection
()
cmd/collector/sanitize.go:350
↓ 1 callers
Function
checkMasterQuorumOptions
()
cmd/collector/sanitize.go:316
↓ 1 callers
Method
checkShutdown
()
collector/syncer.go:669
↓ 1 callers
Method
collectionSync
start sync single collection
collector/docsyncer/doc_syncer.go:466
↓ 1 callers
Function
competeMaster
(coll *mongo.Collection)
quorum/quorum.go:171
↓ 1 callers
Method
consume
(pipe <-chan *TMessage)
tunnel/file_reader.go:48
↓ 1 callers
Function
covertToWhiteDBRule
(input []string)
collector/filter/oplog_filter.go:252
↓ 1 callers
Function
data_comparison
(srcColl, dstColl, mode)
scripts/comparison_3x.py:178
↓ 1 callers
Function
data_comparison
(srcColl, dstColl, mode)
scripts/comparison.py:148
↓ 1 callers
Method
deserializer
(index int)
collector/syncer.go:455
← previous
next →
401–500 of 933, ranked by callers