Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Get(relativeURI string) (*httpc.Response, error)
- func (c *Client) OpenSQLConn(user string, pass string) (*gorm.DB, error)
- func (c *Client) SendGetRequest(relativeURI string) ([]byte, error)
- func (c Client) WithEnforcedStatusAPIAddress(host string, statusPort int) *Client
- func (c Client) WithSQLAPIAddress(host string, sqlPort int) *Client
- func (c Client) WithStatusAPIAddress(host string, statusPort int) *Client
- func (c Client) WithStatusAPITimeout(timeout time.Duration) *Client
- type Forwarder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTiDBConnFailed = ErrNS.NewType("tidb_conn_failed") ErrTiDBAuthFailed = ErrNS.NewType("tidb_auth_failed") ErrTiDBClientRequestFailed = ErrNS.NewType("client_request_failed") )
View Source
var ErrNS = errorx.NewNamespace("error.tidb")
View Source
var ErrNoAliveTiDB = ErrNS.NewType("no_alive_tidb")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewTiDBClient ¶
func (*Client) OpenSQLConn ¶
func (*Client) SendGetRequest ¶
FIXME: SendGetRequest should be extracted, as a common method.
func (Client) WithEnforcedStatusAPIAddress ¶
func (Client) WithSQLAPIAddress ¶
func (Client) WithStatusAPIAddress ¶
Click to show internal directories.
Click to hide internal directories.