Versions in this module Expand all Collapse all v1 v1.0.1 Mar 15, 2020 v1.0.0 Mar 15, 2020 Changes in this version + var ErrNoAliveTiDB = ErrorNS.NewType("no_alive_tidb") + var ErrPDAccessFailed = ErrorNS.NewType("pd_access_failed") + var ErrTiDBAuthFailed = ErrorNS.NewType("tidb_auth_failed") + var ErrTiDBConnFailed = ErrorNS.NewType("tidb_conn_failed") + var ErrorNS = errorx.NewNamespace("error.tidb") + type Forwarder struct + func NewForwarder(config *ForwarderConfig, etcdProvider pd.EtcdProvider) *Forwarder + func (f *Forwarder) Close() error + func (f *Forwarder) GetDBConnProps() (host string, port int, err error) + func (f *Forwarder) Open() error + func (f *Forwarder) OpenTiDB(user string, pass string) (*gorm.DB, error) + type ForwarderConfig struct + TLSConfig *tls.Config + TiDBRetrieveTimeout time.Duration + func NewForwarderConfig(tlsConfig *tls.Config) *ForwarderConfig