Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CheckLevelNone means no integrity check, the default value. CheckLevelNone string = "none" // CheckLevelCorrectness means check each row data correctness. CheckLevelCorrectness string = "correctness" )
View Source
const ( // CorruptionHandleLevelWarn is the default value, // log the corrupted event, and mark it as corrupted and send it to the downstream. CorruptionHandleLevelWarn string = "warn" // CorruptionHandleLevelError means log the corrupted event, and then stopped the changefeed. CorruptionHandleLevelError string = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IntegrityCheckLevel string `toml:"integrity-check-level" json:"integrity-check-level"` CorruptionHandleLevel string `toml:"corruption-handle-level" json:"corruption-handle-level"` }
Config represents integrity check config for a changefeed.
func (*Config) ErrorHandle ¶
ErrorHandle returns true if the corruption handle level is error.
Click to show internal directories.
Click to hide internal directories.