Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImporter ¶
func NewImporter(ctx context.Context, tls *common.TLS, importServerAddr string, pdAddr string) (backend.Backend, error)
NewImporter creates a new connection to tikv-importer. A single connection per tidb-lightning instance is enough.
func NewMockImporter ¶
func NewMockImporter(cli import_kvpb.ImportKVClient, pdAddr string) backend.Backend
NewMockImporter creates an *unconnected* importer based on a custom ImportKVClient. This is provided for testing only. Do not use this function outside of tests.
Types ¶
type ImporterWriter ¶
type ImporterWriter struct {
// contains filtered or unexported fields
}
func (*ImporterWriter) AppendRows ¶
func (*ImporterWriter) Close ¶
func (w *ImporterWriter) Close() error
Click to show internal directories.
Click to hide internal directories.