MCPcopy Create free account

hub / github.com/bytewatch/dolphinbeat / functions

Functions510 in github.com/bytewatch/dolphinbeat

↓ 1 callersMethodDumpAndParse
Dump MySQL and parse immediately
dump/dump.go:226
↓ 1 callersMethodExecAndPersist
Exec ddl statement, and persistent the schema info into storage
schema/tracker.go:110
↓ 1 callersMethodExecDDL
(db string, statement string)
canal/canal.go:345
↓ 1 callersMethodFatalf
(format string, args ...interface{})
sink/logger.go:18
↓ 1 callersMethodFlushBinlog
()
canal/sync.go:294
↓ 1 callersMethodGetDatabases
()
canal/canal.go:337
↓ 1 callersMethodGetIntCtx
(key string, defValue int64)
ckp/checkpoint.go:92
↓ 1 callersMethodGetMasterGTIDSet
()
canal/sync.go:339
↓ 1 callersMethodGetTables
(db string)
canal/canal.go:341
↓ 1 callersMethodGetUintCtx
(key string, defValue uint64)
ckp/checkpoint.go:109
↓ 1 callersMethodGtid
(gtid string)
dump/parser.go:41
↓ 1 callersMethodInitialize
Initialize will be called at process start, you need to recover state from the point that checkpointed last time
sink/sink.go:34
↓ 1 callersMethodIsDdl
Check whether the SQL statement is DDL, means not DML/DCL
schema/tracker.go:85
↓ 1 callersFunctionIsDdlOrDclStatement
(statement string)
canal/sync.go:400
↓ 1 callersMethodIsDdlStatement
(statement string)
canal/sync.go:384
↓ 1 callersMethodIsIgnored
IsIgnored tells whether this handler need to ignore the data of specified table
canal/handler_mux.go:49
↓ 1 callersMethodLoad
Load read data from storage, return nil data when read empty content and no error happened
ckp/storage.go:27
↓ 1 callersMethodLoadLastSnapshot
LoadLastSnapshot will be called when schema tracker need to restore snapshot, as base data
schema/storage.go:29
↓ 1 callersFunctionNewApplication
()
cmd/dolphinbeat/app.go:67
↓ 1 callersFunctionNewBoltdbStorage
(path string)
schema/storage_boltdb.go:44
↓ 1 callersFunctionNewConfig
(data string)
canal/config.go:124
↓ 1 callersFunctionNewHandlerMux
()
canal/handler_mux.go:112
↓ 1 callersFunctionNewHttpServer
(cfg *HttpServerConfig, app *Application)
cmd/dolphinbeat/http.go:56
↓ 1 callersFunctionNewMockStorage
()
ckp/storage_mock.go:26
↓ 1 callersFunctionNewMysqlStorage
(addr string, user string, password string, database string)
schema/storage_mysql.go:43
↓ 1 callersFunctionNewSchemaTracker
New a schema tracker that can track DDL statements, making a schema mirror.
schema/tracker.go:37
↓ 1 callersFunctionNewSinkLogger
(name string, logger *log.Logger)
cmd/dolphinbeat/sink_logger.go:28
↓ 1 callersFunctionNewZookeeperStorage
(hosts string, path string)
ckp/storage_zookeeper.go:30
↓ 1 callersMethodOnQuery
(h *replication.EventHeader, e *replication.QueryEvent)
canal/handler.go:31
↓ 1 callersMethodPersist
Persistent the schema info into storage. Before Persist is called, must ensure the binlog DML events previous is synced.
schema/tracker.go:91
↓ 1 callersMethodRegisterBeforeSchemaChangeHook
Register a hook that will be called before schema change
canal/hook.go:24
↓ 1 callersMethodRegisterBeforeServerIDChangeHook
Register a hook that will be called before server_id change
canal/hook.go:34
↓ 1 callersMethodRegisterEventHandler
(h EventHandler, cfg EventHandlerConfig)
canal/handler_mux.go:118
↓ 1 callersMethodRegisterOnSchemaChangeFailedHook
Register a hook that will be called on DDL failed
canal/hook.go:29
↓ 1 callersMethodSave
Save syncs data into one of two file, alternately.
ckp/storage_file.go:70
↓ 1 callersMethodSaveStatement
SaveSnapshot will be called when schema tracker decides to save a ddl statement
schema/storage.go:26
↓ 1 callersMethodSetAlignedProgress
(p prog.Progress)
ckp/manager.go:143
↓ 1 callersMethodSetGtidEnabled
(v bool)
dump/dump.go:101
↓ 1 callersMethodSetHexBlob
(v bool)
dump/dump.go:114
↓ 1 callersMethodSetMaxAllowedPacket
(i int)
dump/dump.go:110
↓ 1 callersMethodSetOpts
(m map[string]interface{})
cmd/dolphinbeat/app.go:92
↓ 1 callersMethodSetStringCtx
(key string, value string)
ckp/checkpoint.go:121
↓ 1 callersMethodSetUintCtx
(key string, value uint64)
ckp/checkpoint.go:104
↓ 1 callersMethodSetWhere
(where string)
dump/dump.go:93
↓ 1 callersMethodSkipMasterData
In some cloud MySQL, we have no privilege to use `--master-data`.
dump/dump.go:106
↓ 1 callersMethodWaitDumpDone
()
canal/canal.go:282
↓ 1 callersMethodWaitUntilPos
(pos prog.Position, timeout time.Duration)
canal/sync.go:299
↓ 1 callersMethodcheckBinlogRowFormat
()
canal/canal.go:368
↓ 1 callersMethodcheckTableMatch
(key string)
canal/canal.go:290
↓ 1 callersMethodclean
Clean any ckp in the o.ckps that is not in use
ckp/manager.go:119
↓ 1 callersFunctioncreateNodeIfNotExists
(conn *zk.Conn, path string, data []byte)
ckp/storage_zookeeper.go:84
↓ 1 callersMethoddispatch
()
sink/kafka/client/go/decoder.go:202
↓ 1 callersMethodfeed
(arg *InputArg)
sink/kafka/client/go/decoder.go:146
↓ 1 callersMethodhandleRowsEvent
(e *replication.BinlogEvent)
canal/sync.go:263
↓ 1 callersMethodhandleUnsigned
()
canal/rows.go:58
↓ 1 callersMethodinitCanal
Init canal library, and start from min progress among all sinks
cmd/dolphinbeat/app.go:220
↓ 1 callersMethodinitCkpManager
Init checkpoint manager, which saves binlog progress into to file or zookeeper
cmd/dolphinbeat/app.go:136
↓ 1 callersMethodinitConfig
()
cmd/dolphinbeat/config.go:98
↓ 1 callersMethodinitElection
()
cmd/dolphinbeat/app.go:116
↓ 1 callersMethodinitHttpServer
()
cmd/dolphinbeat/app.go:103
↓ 1 callersMethodinitLog
()
cmd/dolphinbeat/log.go:22
↓ 1 callersMethodinitMetrics
()
cmd/dolphinbeat/metrics.go:29
↓ 1 callersMethodinitSinks
Init each sink, and register it into checkpoint manager, so that checkpoint manager will save sink's progress periodcally.
cmd/dolphinbeat/app.go:161
↓ 1 callersFunctionmakeBeginOp
(h *replication.EventHeader)
sink/stdout/operation.go:167
↓ 1 callersFunctionmakeBeginOp
(h *replication.EventHeader)
sink/kafka/operation.go:101
↓ 1 callersFunctionmakeColumnDef
(c *executor.ColumnDef)
schema/definition.go:81
↓ 1 callersFunctionmakeCommitOp
(h *replication.EventHeader, p prog.Progress)
sink/stdout/operation.go:174
↓ 1 callersFunctionmakeCommitOp
(h *replication.EventHeader, p prog.Progress)
sink/kafka/operation.go:109
↓ 1 callersFunctionmakeDDLOp
(h *replication.EventHeader, e *replication.QueryEvent, p prog.Progress)
sink/stdout/operation.go:151
↓ 1 callersFunctionmakeDDLOp
(h *replication.EventHeader, e *replication.QueryEvent, p prog.Progress)
sink/kafka/operation.go:84
↓ 1 callersFunctionmakeDeleteOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/stdout/operation.go:114
↓ 1 callersFunctionmakeDeleteOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/kafka/operation.go:47
↓ 1 callersFunctionmakeGtidOp
(h *replication.EventHeader, e *canal.GtidEvent)
sink/stdout/operation.go:160
↓ 1 callersFunctionmakeGtidOp
(h *replication.EventHeader, e *canal.GtidEvent)
sink/kafka/operation.go:93
↓ 1 callersFunctionmakeInsertOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/stdout/operation.go:99
↓ 1 callersFunctionmakeInsertOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/kafka/operation.go:33
↓ 1 callersFunctionmakeKey
Make a sortable bytes slice, used as key of blotdb key-value
schema/storage_boltdb.go:257
↓ 1 callersMethodmakeMockCkp
()
ckp/checkpoint.go:138
↓ 1 callersFunctionmakeMockData
()
ckp/storage_file_test.go:27
↓ 1 callersMethodmakeProgress
(p *protocol.Progress)
sink/kafka/kafka.go:520
↓ 1 callersFunctionmakeQueryOp
(h *replication.EventHeader, e *replication.QueryEvent)
sink/stdout/operation.go:144
↓ 1 callersFunctionmakeQueryOp
(h *replication.EventHeader, e *replication.QueryEvent)
sink/kafka/operation.go:76
↓ 1 callersFunctionmakeRotateOp
(h *replication.EventHeader, e *replication.RotateEvent)
sink/stdout/operation.go:183
↓ 1 callersFunctionmakeRotateOp
(h *replication.EventHeader, e *replication.RotateEvent)
sink/kafka/operation.go:118
↓ 1 callersFunctionmakeTableDef
(t *executor.TableDef)
schema/definition.go:93
↓ 1 callersFunctionmakeUpdateOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/stdout/operation.go:128
↓ 1 callersFunctionmakeUpdateOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/kafka/operation.go:61
↓ 1 callersFunctionmakeValue
(value interface{})
sink/kafka/operation.go:158
↓ 1 callersFunctionmakeValue
(snapshot []byte, db string, statement string, pos mysql.Position)
schema/storage_boltdb.go:240
↓ 1 callersMethodmarshalOps
Return the bytes of protocol.Payload
sink/kafka/kafka.go:491
↓ 1 callersMethodmergeSinksErr
()
cmd/dolphinbeat/app.go:271
↓ 1 callersMethodneedTriggerSnapshot
()
schema/tracker.go:229
↓ 1 callersFunctionnewKafkaSink
(name string, cfg *Config, l sink.Logger)
sink/kafka/kafka.go:82
↓ 1 callersFunctionnewRowsEvent
(table *schema.TableDef, action string, rows [][]interface{})
canal/rows.go:46
↓ 1 callersFunctionnewServeMux
(app *Application)
cmd/dolphinbeat/http.go:30
↓ 1 callersFunctionnewStdoutSink
(name string, cfg *Config, l sink.Logger)
sink/stdout/stdout.go:49
↓ 1 callersMethodprepareDumper
()
canal/canal.go:146
↓ 1 callersMethodprepareSyncer
()
canal/canal.go:379
↓ 1 callersMethodprepareTracker
()
canal/canal.go:200
↓ 1 callersMethodproduce
(ops []*protocol.Operation, p *prog.Progress)
sink/kafka/kafka.go:386
← previousnext →101–200 of 510, ranked by callers