Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytewatch/dolphinbeat
/ functions
Functions
510 in github.com/bytewatch/dolphinbeat
⨍
Functions
510
◇
Types & classes
94
↓ 1 callers
Method
DumpAndParse
Dump MySQL and parse immediately
dump/dump.go:226
↓ 1 callers
Method
ExecAndPersist
Exec ddl statement, and persistent the schema info into storage
schema/tracker.go:110
↓ 1 callers
Method
ExecDDL
(db string, statement string)
canal/canal.go:345
↓ 1 callers
Method
Fatalf
(format string, args ...interface{})
sink/logger.go:18
↓ 1 callers
Method
FlushBinlog
()
canal/sync.go:294
↓ 1 callers
Method
GetDatabases
()
canal/canal.go:337
↓ 1 callers
Method
GetIntCtx
(key string, defValue int64)
ckp/checkpoint.go:92
↓ 1 callers
Method
GetMasterGTIDSet
()
canal/sync.go:339
↓ 1 callers
Method
GetTables
(db string)
canal/canal.go:341
↓ 1 callers
Method
GetUintCtx
(key string, defValue uint64)
ckp/checkpoint.go:109
↓ 1 callers
Method
Gtid
(gtid string)
dump/parser.go:41
↓ 1 callers
Method
Initialize
Initialize will be called at process start, you need to recover state from the point that checkpointed last time
sink/sink.go:34
↓ 1 callers
Method
IsDdl
Check whether the SQL statement is DDL, means not DML/DCL
schema/tracker.go:85
↓ 1 callers
Function
IsDdlOrDclStatement
(statement string)
canal/sync.go:400
↓ 1 callers
Method
IsDdlStatement
(statement string)
canal/sync.go:384
↓ 1 callers
Method
IsIgnored
IsIgnored tells whether this handler need to ignore the data of specified table
canal/handler_mux.go:49
↓ 1 callers
Method
Load
Load read data from storage, return nil data when read empty content and no error happened
ckp/storage.go:27
↓ 1 callers
Method
LoadLastSnapshot
LoadLastSnapshot will be called when schema tracker need to restore snapshot, as base data
schema/storage.go:29
↓ 1 callers
Function
NewApplication
()
cmd/dolphinbeat/app.go:67
↓ 1 callers
Function
NewBoltdbStorage
(path string)
schema/storage_boltdb.go:44
↓ 1 callers
Function
NewConfig
(data string)
canal/config.go:124
↓ 1 callers
Function
NewHandlerMux
()
canal/handler_mux.go:112
↓ 1 callers
Function
NewHttpServer
(cfg *HttpServerConfig, app *Application)
cmd/dolphinbeat/http.go:56
↓ 1 callers
Function
NewMockStorage
()
ckp/storage_mock.go:26
↓ 1 callers
Function
NewMysqlStorage
(addr string, user string, password string, database string)
schema/storage_mysql.go:43
↓ 1 callers
Function
NewSchemaTracker
New a schema tracker that can track DDL statements, making a schema mirror.
schema/tracker.go:37
↓ 1 callers
Function
NewSinkLogger
(name string, logger *log.Logger)
cmd/dolphinbeat/sink_logger.go:28
↓ 1 callers
Function
NewZookeeperStorage
(hosts string, path string)
ckp/storage_zookeeper.go:30
↓ 1 callers
Method
OnQuery
(h *replication.EventHeader, e *replication.QueryEvent)
canal/handler.go:31
↓ 1 callers
Method
Persist
Persistent the schema info into storage. Before Persist is called, must ensure the binlog DML events previous is synced.
schema/tracker.go:91
↓ 1 callers
Method
RegisterBeforeSchemaChangeHook
Register a hook that will be called before schema change
canal/hook.go:24
↓ 1 callers
Method
RegisterBeforeServerIDChangeHook
Register a hook that will be called before server_id change
canal/hook.go:34
↓ 1 callers
Method
RegisterEventHandler
(h EventHandler, cfg EventHandlerConfig)
canal/handler_mux.go:118
↓ 1 callers
Method
RegisterOnSchemaChangeFailedHook
Register a hook that will be called on DDL failed
canal/hook.go:29
↓ 1 callers
Method
Save
Save syncs data into one of two file, alternately.
ckp/storage_file.go:70
↓ 1 callers
Method
SaveStatement
SaveSnapshot will be called when schema tracker decides to save a ddl statement
schema/storage.go:26
↓ 1 callers
Method
SetAlignedProgress
(p prog.Progress)
ckp/manager.go:143
↓ 1 callers
Method
SetGtidEnabled
(v bool)
dump/dump.go:101
↓ 1 callers
Method
SetHexBlob
(v bool)
dump/dump.go:114
↓ 1 callers
Method
SetMaxAllowedPacket
(i int)
dump/dump.go:110
↓ 1 callers
Method
SetOpts
(m map[string]interface{})
cmd/dolphinbeat/app.go:92
↓ 1 callers
Method
SetStringCtx
(key string, value string)
ckp/checkpoint.go:121
↓ 1 callers
Method
SetUintCtx
(key string, value uint64)
ckp/checkpoint.go:104
↓ 1 callers
Method
SetWhere
(where string)
dump/dump.go:93
↓ 1 callers
Method
SkipMasterData
In some cloud MySQL, we have no privilege to use `--master-data`.
dump/dump.go:106
↓ 1 callers
Method
WaitDumpDone
()
canal/canal.go:282
↓ 1 callers
Method
WaitUntilPos
(pos prog.Position, timeout time.Duration)
canal/sync.go:299
↓ 1 callers
Method
checkBinlogRowFormat
()
canal/canal.go:368
↓ 1 callers
Method
checkTableMatch
(key string)
canal/canal.go:290
↓ 1 callers
Method
clean
Clean any ckp in the o.ckps that is not in use
ckp/manager.go:119
↓ 1 callers
Function
createNodeIfNotExists
(conn *zk.Conn, path string, data []byte)
ckp/storage_zookeeper.go:84
↓ 1 callers
Method
dispatch
()
sink/kafka/client/go/decoder.go:202
↓ 1 callers
Method
feed
(arg *InputArg)
sink/kafka/client/go/decoder.go:146
↓ 1 callers
Method
handleRowsEvent
(e *replication.BinlogEvent)
canal/sync.go:263
↓ 1 callers
Method
handleUnsigned
()
canal/rows.go:58
↓ 1 callers
Method
initCanal
Init canal library, and start from min progress among all sinks
cmd/dolphinbeat/app.go:220
↓ 1 callers
Method
initCkpManager
Init checkpoint manager, which saves binlog progress into to file or zookeeper
cmd/dolphinbeat/app.go:136
↓ 1 callers
Method
initConfig
()
cmd/dolphinbeat/config.go:98
↓ 1 callers
Method
initElection
()
cmd/dolphinbeat/app.go:116
↓ 1 callers
Method
initHttpServer
()
cmd/dolphinbeat/app.go:103
↓ 1 callers
Method
initLog
()
cmd/dolphinbeat/log.go:22
↓ 1 callers
Method
initMetrics
()
cmd/dolphinbeat/metrics.go:29
↓ 1 callers
Method
initSinks
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 callers
Function
makeBeginOp
(h *replication.EventHeader)
sink/stdout/operation.go:167
↓ 1 callers
Function
makeBeginOp
(h *replication.EventHeader)
sink/kafka/operation.go:101
↓ 1 callers
Function
makeColumnDef
(c *executor.ColumnDef)
schema/definition.go:81
↓ 1 callers
Function
makeCommitOp
(h *replication.EventHeader, p prog.Progress)
sink/stdout/operation.go:174
↓ 1 callers
Function
makeCommitOp
(h *replication.EventHeader, p prog.Progress)
sink/kafka/operation.go:109
↓ 1 callers
Function
makeDDLOp
(h *replication.EventHeader, e *replication.QueryEvent, p prog.Progress)
sink/stdout/operation.go:151
↓ 1 callers
Function
makeDDLOp
(h *replication.EventHeader, e *replication.QueryEvent, p prog.Progress)
sink/kafka/operation.go:84
↓ 1 callers
Function
makeDeleteOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/stdout/operation.go:114
↓ 1 callers
Function
makeDeleteOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/kafka/operation.go:47
↓ 1 callers
Function
makeGtidOp
(h *replication.EventHeader, e *canal.GtidEvent)
sink/stdout/operation.go:160
↓ 1 callers
Function
makeGtidOp
(h *replication.EventHeader, e *canal.GtidEvent)
sink/kafka/operation.go:93
↓ 1 callers
Function
makeInsertOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/stdout/operation.go:99
↓ 1 callers
Function
makeInsertOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/kafka/operation.go:33
↓ 1 callers
Function
makeKey
Make a sortable bytes slice, used as key of blotdb key-value
schema/storage_boltdb.go:257
↓ 1 callers
Method
makeMockCkp
()
ckp/checkpoint.go:138
↓ 1 callers
Function
makeMockData
()
ckp/storage_file_test.go:27
↓ 1 callers
Method
makeProgress
(p *protocol.Progress)
sink/kafka/kafka.go:520
↓ 1 callers
Function
makeQueryOp
(h *replication.EventHeader, e *replication.QueryEvent)
sink/stdout/operation.go:144
↓ 1 callers
Function
makeQueryOp
(h *replication.EventHeader, e *replication.QueryEvent)
sink/kafka/operation.go:76
↓ 1 callers
Function
makeRotateOp
(h *replication.EventHeader, e *replication.RotateEvent)
sink/stdout/operation.go:183
↓ 1 callers
Function
makeRotateOp
(h *replication.EventHeader, e *replication.RotateEvent)
sink/kafka/operation.go:118
↓ 1 callers
Function
makeTableDef
(t *executor.TableDef)
schema/definition.go:93
↓ 1 callers
Function
makeUpdateOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/stdout/operation.go:128
↓ 1 callers
Function
makeUpdateOp
(h *replication.EventHeader, e *canal.RowsEvent)
sink/kafka/operation.go:61
↓ 1 callers
Function
makeValue
(value interface{})
sink/kafka/operation.go:158
↓ 1 callers
Function
makeValue
(snapshot []byte, db string, statement string, pos mysql.Position)
schema/storage_boltdb.go:240
↓ 1 callers
Method
marshalOps
Return the bytes of protocol.Payload
sink/kafka/kafka.go:491
↓ 1 callers
Method
mergeSinksErr
()
cmd/dolphinbeat/app.go:271
↓ 1 callers
Method
needTriggerSnapshot
()
schema/tracker.go:229
↓ 1 callers
Function
newKafkaSink
(name string, cfg *Config, l sink.Logger)
sink/kafka/kafka.go:82
↓ 1 callers
Function
newRowsEvent
(table *schema.TableDef, action string, rows [][]interface{})
canal/rows.go:46
↓ 1 callers
Function
newServeMux
(app *Application)
cmd/dolphinbeat/http.go:30
↓ 1 callers
Function
newStdoutSink
(name string, cfg *Config, l sink.Logger)
sink/stdout/stdout.go:49
↓ 1 callers
Method
prepareDumper
()
canal/canal.go:146
↓ 1 callers
Method
prepareSyncer
()
canal/canal.go:379
↓ 1 callers
Method
prepareTracker
()
canal/canal.go:200
↓ 1 callers
Method
produce
(ops []*protocol.Operation, p *prog.Progress)
sink/kafka/kafka.go:386
← previous
next →
101–200 of 510, ranked by callers