package
5.0.0-rc+incompatible
Repository: https://github.com/pingcap/tidb-lightning.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
FetchPDVersion get pd version.
GetJSON fetches a page and parses it as JSON.
GetRawInfo do what its name tells.
IsContextCanceledError returns whether the error is caused by context cancellation.
IsDirExists checks if dir exists.
IsEmptyDir checks if dir is empty.
IsRetryableError returns whether the error is transient (e.g.
KillMySelf sends sigint to current process, used in integration test only
Only works on Unix.
NewPauser returns an initialized pauser.
NewTLS constructs a new HTTP client with TLS configured with the CA, certificate and key paths.
NewTLSFromMockServer constructs a new TLS instance from the certificates of an *httptest.Server.
PrintInfo prints some information of the app, like git hash, binary build time, etc.
Retry is shared by SQLWithRetry.perform, implementation of GlueCheckpointsDB and TiDB's glue implementation.
StringSliceEqual checks if two string slices are equal.
TableHasAutoRowID return whether table has auto generated row id.
ToTLSConfig constructs a `*tls.Config` from the CA, certification and key paths.
UniqueTable returns an unique table name.
Writes a MySQL identifier into the string builder.
# Variables
Version information.
Version information.
Version information.
Version information.
Version information.
# Structs
KvPair is a pair of key and value.
MySQLConnectParam records the parameters needed to connect to a MySQL database.
OnceError is an error value which will can be assigned once.
Pauser is a type which could allow multiple goroutines to wait on demand, similar to a gate or traffic light.
SQLWithRetry constructs a retryable transaction.
TLS.