Documentation ¶
Index ¶
- Variables
- type Client
- func (c Client) AddRequestHeader(key, value string) *Client
- func (c *Client) Get(host string, statusPort int, relativeURI string) (*httpc.Response, error)
- func (c *Client) SendGetRequest(host string, statusPort int, relativeURI string) ([]byte, error)
- func (c *Client) SendPostRequest(host string, statusPort int, relativeURI string, body io.Reader) ([]byte, error)
- func (c Client) WithTimeout(timeout time.Duration) *Client
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFlashClientRequestFailed = ErrNS.NewType("client_request_failed")
View Source
var ErrNS = errorx.NewNamespace("error.tiflash")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewTiFlashClient ¶
func (Client) AddRequestHeader ¶
func (*Client) SendGetRequest ¶
func (*Client) SendPostRequest ¶
Click to show internal directories.
Click to hide internal directories.