MCPcopy
hub / github.com/github/gh-ost / Hooks

Interface Hooks

go/base/hooks.go:9–24  ·  view source on GitHub ↗

Hooks is the set of lifecycle callbacks gh-ost invokes during a migration.

Source from the content-addressed store, hash-verified

7
8// Hooks is the set of lifecycle callbacks gh-ost invokes during a migration.
9type Hooks interface {
10 OnStartup() error
11 OnValidated() error
12 OnRowCountComplete() error
13 OnBeforeRowCopy() error
14 OnRowCopyComplete() error
15 OnBeginPostponed() error
16 OnBeforeCutOver() error
17 OnInteractiveCommand(command string) error
18 OnSuccess(instantDDL bool) error
19 OnFailure() error
20 OnBatchCopyRetry(errorMessage string) error
21 OnStatus(statusMessage string) error
22 OnStopReplication() error
23 OnStartReplication() error
24}

Callers 33

MigrateMethod · 0.65
RevertMethod · 0.65
OnStartupMethod · 0.65
MigrateMethod · 0.65
RevertMethod · 0.65
OnValidatedMethod · 0.65
countTableRowsMethod · 0.65
OnRowCountCompleteMethod · 0.65
MigrateMethod · 0.65
OnBeforeRowCopyMethod · 0.65
MigrateMethod · 0.65

Implementers 2

recordingHooksgo/logic/hooks_test.go
HooksExecutorgo/logic/hooks.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…