# Functions
GetJSON fetches a page and parses it as JSON.
GetStorageSize gets storage's capacity and available size.
No description provided by the author
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.
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.
# 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.
StorageSize represents the storage's capacity and available size Learn from tidb-binlog source code.
TLS.