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
↓ 104 callers
Method
Errorf
(format string, args ...interface{})
sink/logger.go:22
↓ 31 callers
Method
String
()
canal/handler.go:39
↓ 29 callers
Method
Infof
(format string, args ...interface{})
sink/logger.go:23
↓ 24 callers
Method
Warnf
(format string, args ...interface{})
sink/logger.go:24
↓ 19 callers
Method
Execute
Execute a SQL
canal/canal.go:411
↓ 16 callers
Method
Close
()
ckp/storage.go:28
↓ 12 callers
Method
Close
()
sink/sink.go:39
↓ 12 callers
Method
IsZero
()
canal/prog/progress.go:54
↓ 12 callers
Method
Position
()
canal/master.go:63
↓ 11 callers
Method
Err
You need to report error by this channel.
sink/sink.go:37
↓ 9 callers
Method
Output
()
sink/kafka/client/go/decoder.go:105
↓ 9 callers
Function
makeHeader
(tp OperationType, h *replication.EventHeader)
sink/stdout/operation.go:231
↓ 9 callers
Function
makeHeader
(tp protocol.OperationType, h *replication.EventHeader)
sink/kafka/operation.go:149
↓ 8 callers
Method
Compare
Use file&pos to compare, can not use gtid_set, because gtid_set may not contain each other
canal/prog/progress.go:72
↓ 8 callers
Method
Printf
(string, ...interface{})
sink/kafka/client/go/logger.go:23
↓ 7 callers
Method
Exec
Exec ddl statement, but don't persistent the schema info
schema/tracker.go:153
↓ 7 callers
Method
GetTableDef
(db string, table string)
canal/canal.go:328
↓ 7 callers
Method
Update
(pos prog.Position)
canal/master.go:46
↓ 7 callers
Method
execute
(c *C, query string, args ...interface{})
canal/canal_test.go:102
↓ 7 callers
Function
writeData
(w http.ResponseWriter, v interface{})
cmd/dolphinbeat/http_handler.go:48
↓ 6 callers
Method
Panicf
(format string, args ...interface{})
sink/logger.go:19
↓ 6 callers
Function
writeError
(w http.ResponseWriter, err error)
cmd/dolphinbeat/http_handler.go:40
↓ 5 callers
Method
GTIDSet
()
canal/master.go:69
↓ 5 callers
Method
IsEventDuplicated
IsEventDuplicated tell whether this handler has received the event at sometime before
canal/handler_mux.go:81
↓ 5 callers
Method
Reset
Reset will be called to get a empty storage
schema/storage.go:32
↓ 5 callers
Method
SetProgress
(p prog.Progress)
ckp/checkpoint.go:32
↓ 5 callers
Method
TrxCount
()
canal/canal.go:442
↓ 4 callers
Method
AddDatabases
(dbs ...string)
dump/dump.go:118
↓ 4 callers
Method
Debugf
(format string, args ...interface{})
sink/logger.go:21
↓ 4 callers
Method
Dump
(w io.Writer)
dump/dump.go:145
↓ 4 callers
Method
GetProgress
()
ckp/checkpoint.go:51
↓ 4 callers
Function
NewCheckpoint
()
ckp/checkpoint.go:72
↓ 4 callers
Method
Progress
()
canal/master.go:34
↓ 4 callers
Method
RegisterCheckpointer
(name string, ckper Checkpointer)
ckp/manager.go:264
↓ 4 callers
Method
Save
Save syncs data into storage
ckp/storage.go:25
↓ 4 callers
Method
UpdateGTIDSet
(gset mysql.GTIDSet)
canal/master.go:55
↓ 4 callers
Function
makeColumns
(values []interface{})
sink/kafka/operation.go:165
↓ 4 callers
Function
makeMockProgress
(name string, pos uint32)
ckp/manager_test.go:23
↓ 4 callers
Function
parseValues
(str string)
dump/parser.go:147
↓ 4 callers
Method
serializeData
()
ckp/manager.go:211
↓ 3 callers
Method
AddIgnoreTables
(db string, tables ...string)
dump/dump.go:131
↓ 3 callers
Method
AddTables
(db string, tables ...string)
dump/dump.go:122
↓ 3 callers
Method
Checkpoint
()
ckp/checkpoint.go:79
↓ 3 callers
Method
GetCheckpoint
(name string)
ckp/manager.go:198
↓ 3 callers
Function
NewCkpManager
(cfg *Config)
ckp/manager.go:52
↓ 3 callers
Function
NewDefaultConfig
()
ckp/config.go:32
↓ 3 callers
Function
NewFileStorage
(path string)
ckp/storage_file.go:37
↓ 3 callers
Function
NewMockCheckpointer
(p prog.Progress)
ckp/checkpoint.go:144
↓ 3 callers
Method
OnCommit
(h *replication.EventHeader, p prog.Progress)
canal/handler.go:29
↓ 3 callers
Method
OnGTID
(h *replication.EventHeader, e *GtidEvent)
canal/handler.go:35
↓ 3 callers
Method
SetErrOut
(o io.Writer)
dump/dump.go:97
↓ 3 callers
Method
SetIntCtx
(key string, value int64)
ckp/checkpoint.go:87
↓ 3 callers
Method
Update
(pos Position)
canal/prog/progress.go:26
↓ 3 callers
Method
UpdateGTIDSet
(gset mysql.GTIDSet)
canal/prog/progress.go:30
↓ 3 callers
Function
makeTableDef
(t *schema.TableDef)
sink/stdout/operation.go:214
↓ 3 callers
Function
makeTableDef
(t *schema.TableDef)
sink/kafka/operation.go:180
↓ 3 callers
Method
newMessage
(groupId uint64, payload []byte)
sink/kafka/kafka.go:421
↓ 2 callers
Method
Clone
()
canal/prog/progress.go:45
↓ 2 callers
Method
Err
()
sink/kafka/client/go/decoder.go:109
↓ 2 callers
Method
GetMasterPos
()
canal/sync.go:322
↓ 2 callers
Method
GetMasterServerID
()
canal/sync.go:371
↓ 2 callers
Method
GetMinProgress
()
ckp/manager.go:160
↓ 2 callers
Method
GetProgress
()
sink/kafka/protocol/protocol.pb.go:820
↓ 2 callers
Method
Load
Load read data from all two files, and return newer one, return nil data when read empty content and no error happened.
ckp/storage_file.go:108
↓ 2 callers
Function
NewCanal
(cfg *Config)
canal/canal.go:85
↓ 2 callers
Function
NewDefaultConfig
()
canal/config.go:135
↓ 2 callers
Function
NewDumper
(executionPath string, addr string, user string, password string)
dump/dump.go:63
↓ 2 callers
Method
OnBegin
(h *replication.EventHeader)
canal/handler.go:28
↓ 2 callers
Method
OnDDL
(h *replication.EventHeader, e *replication.QueryEvent, p prog.Progress)
canal/handler.go:32
↓ 2 callers
Method
OnRotate
(h *replication.EventHeader, e *replication.RotateEvent)
canal/handler.go:37
↓ 2 callers
Method
OnRow
(h *replication.EventHeader, e *RowsEvent)
canal/handler.go:33
↓ 2 callers
Function
Parse
Parse the dump data with Dumper generate. It can not parse all the data formats with mysqldump outputs
dump/parser.go:64
↓ 2 callers
Function
PrimitiveDecode
(primCfg PrimitiveConfig, v interface{})
sink/config.go:23
↓ 2 callers
Function
RegisterSink
(tp string, f Factory)
sink/sink.go:46
↓ 2 callers
Method
Run
()
cmd/dolphinbeat/app.go:296
↓ 2 callers
Method
SaveSnapshot
SaveSnapshot will be called when schema tracker decides to save a snapshot
schema/storage.go:23
↓ 2 callers
Method
SetCharset
(charset string)
dump/dump.go:89
↓ 2 callers
Method
SetEventHandler
`SetEventHandler` registers the sync handler, you must register your own handler before starting Canal.
canal/handler.go:44
↓ 2 callers
Method
Start
Start will first try to dump all data from MySQL master `mysqldump`, then sync from the binlog position in the dump data. It will run forever until me
canal/canal.go:221
↓ 2 callers
Method
SyncedProgress
()
canal/canal.go:438
↓ 2 callers
Function
TrimStatement
(statement string)
canal/sync.go:388
↓ 2 callers
Method
UpdateProgress
(progress prog.Progress)
canal/master.go:40
↓ 2 callers
Method
Usage
()
cmd/dolphinbeat/app.go:78
↓ 2 callers
Method
Version
()
cmd/dolphinbeat/app.go:74
↓ 2 callers
Method
WaitUntil
WaitUntil wait all sinks to reach a specified progress
ckp/manager.go:224
↓ 2 callers
Method
doProduce
doProduce send payload of bytes to kafka. If payload is too large to send, doProduce will make fragments, like IPv4 fragments.
sink/kafka/kafka.go:434
↓ 2 callers
Method
dump
()
canal/dump.go:95
↓ 2 callers
Function
makeProgress
(p prog.Progress)
sink/stdout/operation.go:192
↓ 2 callers
Function
makeProgress
(p prog.Progress)
sink/kafka/operation.go:127
↓ 2 callers
Method
run
()
canal/canal.go:237
↓ 2 callers
Function
unescapeString
unescapeString un-escapes the string. mysqldump will escape the string when dumps, Refer http://dev.mysql.com/doc/refman/5.7/en/string-literals.html
dump/parser.go:205
↓ 2 callers
Method
writeBuffer
(buf []byte)
sink/stdout/stdout.go:135
↓ 1 callers
Method
BinLog
Parse CHANGE MASTER TO MASTER_LOG_FILE=name, MASTER_LOG_POS=pos;
dump/parser.go:40
↓ 1 callers
Method
CatchMasterPos
(timeout time.Duration)
canal/sync.go:362
↓ 1 callers
Method
Checkpoint
()
ckp/checkpoint.go:148
↓ 1 callers
Method
Close
()
sink/kafka/client/go/decoder.go:96
↓ 1 callers
Method
Close
()
cmd/dolphinbeat/app.go:96
↓ 1 callers
Method
Compare
(o Position)
canal/prog/position.go:32
↓ 1 callers
Method
DDL
(schema string, statement string)
dump/parser.go:42
↓ 1 callers
Method
Data
(schema string, table string, values []string)
dump/parser.go:43
next →
1–100 of 510, ranked by callers