MCPcopy Create free account

hub / github.com/go-mysql-org/go-mysql-elasticsearch / functions

Functions84 in github.com/go-mysql-org/go-mysql-elasticsearch

↓ 41 callersMethodtestExecute
(c *C, query string, args ...interface{})
river/river_test.go:212
↓ 16 callersMethodtestElasticGet
(c *C, id string)
river/river_test.go:240
↓ 13 callersMethodString
()
river/sync.go:104
↓ 10 callersMethodDo
Do sends the request with body to ES.
elastic/client.go:203
↓ 8 callersFunctionruleKey
(schema string, table string)
river/river.go:285
↓ 7 callersMethodClose
Close closes the River
river/river.go:311
↓ 5 callersMethodmakeReqColumnData
(col *schema.TableColumn, value interface{})
river/sync.go:273
↓ 5 callersFunctiontestWaitSyncDone
(c *C, r *River)
river/river_test.go:263
↓ 3 callersMethodDoBulk
DoBulk sends the bulk request to the ES.
elastic/client.go:237
↓ 3 callersMethodDoRequest
DoRequest sends a request with body to ES.
elastic/client.go:188
↓ 3 callersMethodIndexTypeBulk
IndexTypeBulk sends the bulk request for index and doc type.
elastic/client.go:423
↓ 3 callersFunctionNewRiver
NewRiver creates the River from config
river/river.go:42
↓ 3 callersMethodRun
Run syncs the data from MySQL and inserts to ES.
river/river.go:290
↓ 3 callersFunctionbuildTable
(table string)
river/river.go:334
↓ 3 callersMethodgetDocID
If id in toml file is none, get primary keys in one row and format them into a string, and PK must not be nil Else get the ID's column in one row and
river/sync.go:423
↓ 3 callersMethodgetParentID
(rule *Rule, row []interface{}, columnName string)
river/sync.go:459
↓ 3 callersFunctionisValidTables
(tables []string)
river/river.go:323
↓ 3 callersMethodmakeInsertReqData
(req *elastic.BulkRequest, rule *Rule, values []interface{})
river/sync.go:369
↓ 3 callersFunctionmakeTestData
(arg1 string, arg2 string)
elastic/client_test.go:36
↓ 2 callersMethodBulk
Bulk sends the bulk request. only support parent in 'Bulk' related apis
elastic/client.go:408
↓ 2 callersMethodCheckFilter
CheckFilter checkers whether the field needs to be filtered.
river/rule.go:74
↓ 2 callersMethodCreateMapping
CreateMapping creates a ES mapping.
elastic/client.go:269
↓ 2 callersMethodCtx
Ctx returns the internal context for outside use.
river/river.go:306
↓ 2 callersMethodExists
Exists checks whether id exists or not.
elastic/client.go:373
↓ 2 callersMethodGet
Get gets the item by id.
elastic/client.go:344
↓ 2 callersFunctionNewClient
NewClient creates the Cient with configuration.
elastic/client.go:36
↓ 2 callersFunctionNewConfig
NewConfig creates a Config from data.
river/config.go:61
↓ 2 callersMethodPosition
()
river/master.go:85
↓ 2 callersMethodSave
(pos mysql.Position)
river/master.go:53
↓ 2 callersMethodgetFieldParts
(k string, v string)
river/sync.go:352
↓ 2 callersMethodgetFieldValue
get mysql field value and convert it to specific value to es
river/sync.go:491
↓ 2 callersMethodmakeRequest
for insert and delete
river/sync.go:174
↓ 2 callersMethodnewRule
(schema, table string)
river/river.go:136
↓ 2 callersMethodprepare
()
river/rule.go:52
↓ 2 callersMethodtestElasticExtraExists
(c *C, id string, parent string, exist bool)
river/river_extra_test.go:91
↓ 1 callersMethodClose
()
river/master.go:95
↓ 1 callersMethodDelete
Delete deletes the item by id.
elastic/client.go:388
↓ 1 callersMethodDeleteIndex
DeleteIndex deletes the index.
elastic/client.go:327
↓ 1 callersMethodGetMapping
GetMapping gets the mapping.
elastic/client.go:298
↓ 1 callersFunctionInitStatus
(addr string, path string)
river/metrics.go:51
↓ 1 callersFunctionNewConfigWithFile
NewConfigWithFile creates a Config from file.
river/config.go:51
↓ 1 callersMethodUpdate
Update creates or updates the data
elastic/client.go:354
↓ 1 callersMethodbulk
(buf *bytes.Buffer)
elastic/client.go:93
↓ 1 callersMethoddoBulk
(reqs []*elastic.BulkRequest)
river/sync.go:468
↓ 1 callersFunctionloadMasterInfo
(dataDir string)
river/master.go:27
↓ 1 callersMethodmakeDeleteRequest
(rule *Rule, rows [][]interface{})
river/sync.go:210
↓ 1 callersMethodmakeInsertRequest
(rule *Rule, rows [][]interface{})
river/sync.go:206
↓ 1 callersMethodmakeUpdateReqData
(req *elastic.BulkRequest, rule *Rule, beforeValues []interface{}, afterValues []interface{})
river/sync.go:391
↓ 1 callersMethodmakeUpdateRequest
(rule *Rule, rows [][]interface{})
river/sync.go:214
↓ 1 callersMethodnewCanal
()
river/river.go:84
↓ 1 callersFunctionnewDefaultRule
(schema string, table string)
river/rule.go:37
↓ 1 callersMethodparseSource
()
river/river.go:163
↓ 1 callersMethodprepareCanal
()
river/river.go:108
↓ 1 callersMethodprepareRule
()
river/river.go:219
↓ 1 callersMethodsetupExtra
(c *C)
river/river_extra_test.go:13
↓ 1 callersMethodsyncLoop
()
river/sync.go:108
↓ 1 callersMethodtestElasticMapping
(c *C)
river/river_test.go:250
↓ 1 callersMethodtestPrepareData
(c *C)
river/river_test.go:218
↓ 1 callersMethodtestPrepareExtraData
(c *C)
river/river_extra_test.go:83
↓ 1 callersMethodupdateRule
(schema, table string)
river/river.go:147
MethodIndexBulk
IndexBulk sends the bulk request for index.
elastic/client.go:415
MethodOnDDL
(nextPos mysql.Position, _ *replication.QueryEvent)
river/sync.go:57
MethodOnGTID
(gtid mysql.GTIDSet)
river/sync.go:96
MethodOnPosSynced
(pos mysql.Position, set mysql.GTIDSet, force bool)
river/sync.go:100
MethodOnRotate
(e *replication.RotateEvent)
river/sync.go:38
MethodOnRow
(e *canal.RowsEvent)
river/sync.go:67
MethodOnTableChanged
(schema, table string)
river/sync.go:49
MethodOnXID
(nextPos mysql.Position)
river/sync.go:62
MethodSetUpSuite
(c *C)
elastic/client_test.go:24
MethodSetUpSuite
(c *C)
river/river_test.go:32
MethodTearDownSuite
(c *C)
elastic/client_test.go:32
MethodTearDownSuite
(c *C)
river/river_test.go:135
FunctionTest
(t *testing.T)
elastic/client_test.go:14
FunctionTest
(t *testing.T)
river/river_test.go:21
FunctionTestBuildTable
(t *testing.T)
river/river_test.go:421
MethodTestConfig
(c *C)
river/river_test.go:145
MethodTestParent
this requires a parent setting in _mapping
elastic/client_test.go:101
MethodTestRiver
(c *C)
river/river_test.go:280
MethodTestRiverWithParent
(c *C)
river/river_extra_test.go:111
MethodTestSimple
(c *C)
elastic/client_test.go:44
FunctionTestTableValidation
(t *testing.T)
river/river_test.go:404
MethodUnmarshalText
UnmarshalText implementes TOML UnmarshalText
river/config.go:78
MethodcollectMetrics
()
river/metrics.go:45
Functionmain
()
cmd/go-mysql-elasticsearch/main.go:26