ticdc

package
v0.0.0-...-0119d12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNS = errorx.NewNamespace("error.ticdc")
View Source
var ErrTiCDCClientRequestFailed = ErrNS.NewType("client_request_failed")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewTiCDCClient

func NewTiCDCClient(lc fx.Lifecycle, httpClient *httpc.Client, config *config.Config) *Client

func (Client) AddRequestHeader

func (c Client) AddRequestHeader(key, value string) *Client

func (*Client) Get

func (c *Client) Get(host string, statusPort int, relativeURI string) (*httpc.Response, error)

func (*Client) SendGetRequest

func (c *Client) SendGetRequest(host string, statusPort int, relativeURI string) ([]byte, error)

func (*Client) SendPostRequest

func (c *Client) SendPostRequest(host string, statusPort int, relativeURI string, body io.Reader) ([]byte, error)

func (Client) WithTimeout

func (c Client) WithTimeout(timeout time.Duration) *Client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL