restore

package
v1.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBatchWriteRowCount = 200

Variables

This section is empty.

Functions

func ShouldSleep

func ShouldSleep(err error) bool

Types

type BinaryRecordReplayRequest

type BinaryRecordReplayRequest struct {
	Record             []byte
	Timestamp          int64
	TableName          string
	DiscardDataVersion bool
}

type BinaryRecordReplayResponse

type BinaryRecordReplayResponse struct {
	RecordRestoreCount int
	HasTimeoutRecord   bool
	ResponseInfo
}

type RecordReplayRequest

type RecordReplayRequest struct {
	Record []*tunnel.Record
	//stream record end timestamp, if the record exceeds this timestamp, it won't be replayed.
	//when timestamp is 0, all records will be replayed.
	Timestamp          int64
	TableName          string
	DiscardDataVersion bool //whether to discard data version
}

type RecordReplayResponse

type RecordReplayResponse struct {
	RecordRestoreCount int
	HasTimeoutRecord   bool //whether to include record that exceeds timestamp in recordReplayRequest
	ResponseInfo
}

type ResponseInfo

type ResponseInfo struct {
	RequestId string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL