Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-mysql-org/go-mysql-elasticsearch
/ functions
Functions
84 in github.com/go-mysql-org/go-mysql-elasticsearch
⨍
Functions
84
◇
Types & classes
19
↓ 41 callers
Method
testExecute
(c *C, query string, args ...interface{})
river/river_test.go:212
↓ 16 callers
Method
testElasticGet
(c *C, id string)
river/river_test.go:240
↓ 13 callers
Method
String
()
river/sync.go:104
↓ 10 callers
Method
Do
Do sends the request with body to ES.
elastic/client.go:203
↓ 8 callers
Function
ruleKey
(schema string, table string)
river/river.go:285
↓ 7 callers
Method
Close
Close closes the River
river/river.go:311
↓ 5 callers
Method
makeReqColumnData
(col *schema.TableColumn, value interface{})
river/sync.go:273
↓ 5 callers
Function
testWaitSyncDone
(c *C, r *River)
river/river_test.go:263
↓ 3 callers
Method
DoBulk
DoBulk sends the bulk request to the ES.
elastic/client.go:237
↓ 3 callers
Method
DoRequest
DoRequest sends a request with body to ES.
elastic/client.go:188
↓ 3 callers
Method
IndexTypeBulk
IndexTypeBulk sends the bulk request for index and doc type.
elastic/client.go:423
↓ 3 callers
Function
NewRiver
NewRiver creates the River from config
river/river.go:42
↓ 3 callers
Method
Run
Run syncs the data from MySQL and inserts to ES.
river/river.go:290
↓ 3 callers
Function
buildTable
(table string)
river/river.go:334
↓ 3 callers
Method
getDocID
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 callers
Method
getParentID
(rule *Rule, row []interface{}, columnName string)
river/sync.go:459
↓ 3 callers
Function
isValidTables
(tables []string)
river/river.go:323
↓ 3 callers
Method
makeInsertReqData
(req *elastic.BulkRequest, rule *Rule, values []interface{})
river/sync.go:369
↓ 3 callers
Function
makeTestData
(arg1 string, arg2 string)
elastic/client_test.go:36
↓ 2 callers
Method
Bulk
Bulk sends the bulk request. only support parent in 'Bulk' related apis
elastic/client.go:408
↓ 2 callers
Method
CheckFilter
CheckFilter checkers whether the field needs to be filtered.
river/rule.go:74
↓ 2 callers
Method
CreateMapping
CreateMapping creates a ES mapping.
elastic/client.go:269
↓ 2 callers
Method
Ctx
Ctx returns the internal context for outside use.
river/river.go:306
↓ 2 callers
Method
Exists
Exists checks whether id exists or not.
elastic/client.go:373
↓ 2 callers
Method
Get
Get gets the item by id.
elastic/client.go:344
↓ 2 callers
Function
NewClient
NewClient creates the Cient with configuration.
elastic/client.go:36
↓ 2 callers
Function
NewConfig
NewConfig creates a Config from data.
river/config.go:61
↓ 2 callers
Method
Position
()
river/master.go:85
↓ 2 callers
Method
Save
(pos mysql.Position)
river/master.go:53
↓ 2 callers
Method
getFieldParts
(k string, v string)
river/sync.go:352
↓ 2 callers
Method
getFieldValue
get mysql field value and convert it to specific value to es
river/sync.go:491
↓ 2 callers
Method
makeRequest
for insert and delete
river/sync.go:174
↓ 2 callers
Method
newRule
(schema, table string)
river/river.go:136
↓ 2 callers
Method
prepare
()
river/rule.go:52
↓ 2 callers
Method
testElasticExtraExists
(c *C, id string, parent string, exist bool)
river/river_extra_test.go:91
↓ 1 callers
Method
Close
()
river/master.go:95
↓ 1 callers
Method
Delete
Delete deletes the item by id.
elastic/client.go:388
↓ 1 callers
Method
DeleteIndex
DeleteIndex deletes the index.
elastic/client.go:327
↓ 1 callers
Method
GetMapping
GetMapping gets the mapping.
elastic/client.go:298
↓ 1 callers
Function
InitStatus
(addr string, path string)
river/metrics.go:51
↓ 1 callers
Function
NewConfigWithFile
NewConfigWithFile creates a Config from file.
river/config.go:51
↓ 1 callers
Method
Update
Update creates or updates the data
elastic/client.go:354
↓ 1 callers
Method
bulk
(buf *bytes.Buffer)
elastic/client.go:93
↓ 1 callers
Method
doBulk
(reqs []*elastic.BulkRequest)
river/sync.go:468
↓ 1 callers
Function
loadMasterInfo
(dataDir string)
river/master.go:27
↓ 1 callers
Method
makeDeleteRequest
(rule *Rule, rows [][]interface{})
river/sync.go:210
↓ 1 callers
Method
makeInsertRequest
(rule *Rule, rows [][]interface{})
river/sync.go:206
↓ 1 callers
Method
makeUpdateReqData
(req *elastic.BulkRequest, rule *Rule, beforeValues []interface{}, afterValues []interface{})
river/sync.go:391
↓ 1 callers
Method
makeUpdateRequest
(rule *Rule, rows [][]interface{})
river/sync.go:214
↓ 1 callers
Method
newCanal
()
river/river.go:84
↓ 1 callers
Function
newDefaultRule
(schema string, table string)
river/rule.go:37
↓ 1 callers
Method
parseSource
()
river/river.go:163
↓ 1 callers
Method
prepareCanal
()
river/river.go:108
↓ 1 callers
Method
prepareRule
()
river/river.go:219
↓ 1 callers
Method
setupExtra
(c *C)
river/river_extra_test.go:13
↓ 1 callers
Method
syncLoop
()
river/sync.go:108
↓ 1 callers
Method
testElasticMapping
(c *C)
river/river_test.go:250
↓ 1 callers
Method
testPrepareData
(c *C)
river/river_test.go:218
↓ 1 callers
Method
testPrepareExtraData
(c *C)
river/river_extra_test.go:83
↓ 1 callers
Method
updateRule
(schema, table string)
river/river.go:147
Method
IndexBulk
IndexBulk sends the bulk request for index.
elastic/client.go:415
Method
OnDDL
(nextPos mysql.Position, _ *replication.QueryEvent)
river/sync.go:57
Method
OnGTID
(gtid mysql.GTIDSet)
river/sync.go:96
Method
OnPosSynced
(pos mysql.Position, set mysql.GTIDSet, force bool)
river/sync.go:100
Method
OnRotate
(e *replication.RotateEvent)
river/sync.go:38
Method
OnRow
(e *canal.RowsEvent)
river/sync.go:67
Method
OnTableChanged
(schema, table string)
river/sync.go:49
Method
OnXID
(nextPos mysql.Position)
river/sync.go:62
Method
SetUpSuite
(c *C)
elastic/client_test.go:24
Method
SetUpSuite
(c *C)
river/river_test.go:32
Method
TearDownSuite
(c *C)
elastic/client_test.go:32
Method
TearDownSuite
(c *C)
river/river_test.go:135
Function
Test
(t *testing.T)
elastic/client_test.go:14
Function
Test
(t *testing.T)
river/river_test.go:21
Function
TestBuildTable
(t *testing.T)
river/river_test.go:421
Method
TestConfig
(c *C)
river/river_test.go:145
Method
TestParent
this requires a parent setting in _mapping
elastic/client_test.go:101
Method
TestRiver
(c *C)
river/river_test.go:280
Method
TestRiverWithParent
(c *C)
river/river_extra_test.go:111
Method
TestSimple
(c *C)
elastic/client_test.go:44
Function
TestTableValidation
(t *testing.T)
river/river_test.go:404
Method
UnmarshalText
UnmarshalText implementes TOML UnmarshalText
river/config.go:78
Method
collectMetrics
()
river/metrics.go:45
Function
main
()
cmd/go-mysql-elasticsearch/main.go:26